|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingMessages
public class LySwingMessages
This class implements the Messages object (as described in the dtd) for swing viewer.
A message bar can be used in a main window to provide the user with information about the displayed data (number of objects, printing in progress...).
LyMessages
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingMessages(LyMessages messages)
Class constructor of a Message bar object for the Swing target. |
Method Summary | |
---|---|
void |
addMessage(java.awt.Component message,
int size)
Adds a message at the end of the panel with the specified size. |
void |
addMessage(LyMessage message,
int pos)
Adds a message to this message bar at its end. |
java.awt.Container |
createPanel()
Creates the panel used to place all the messages. |
java.awt.Component |
getComponent()
(non-Javadoc). |
void |
initialize()
Initializes the graphic component and sets its background color. |
void |
removeMessage(java.awt.Component message)
Removes a message from panel. |
void |
removeMessage(LyMessage message)
Removes the specified message from this message bar. |
void |
setContent()
Fills the panel with its messages. |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, free, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySwingMessages(LyMessages messages)
messages
- a MESSAGE component defined for every type of view targets. This message bar
component is initialized specificaly for the Swing view.Method Detail |
---|
public java.awt.Container createPanel()
public void initialize()
public void setContent()
public void removeMessage(java.awt.Component message)
message
- the message to removepublic void addMessage(LyMessage message, int pos)
addMessage
in interface LyGraphicalMessages
message
- the message to addpos
- the position is not usedLyGraphicalMessages.addMessage(leon.view.LyMessage, int)
public void removeMessage(LyMessage message)
removeMessage
in interface LyGraphicalMessages
message
- the message to removeLyGraphicalMessages.removeMessage(leon.view.LyMessage)
public void addMessage(java.awt.Component message, int size)
message
- the message to addsize
- the size of the message on the panelpublic java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |