|
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.LySwingMessage
public class LySwingMessage
This class implements the Message object (as described in the dtd) for swing viewer.
A message is placed inside a message bar. It allows to display a text and an image.
LySwingMessage
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingMessage(LyMessage message)
Class constructor of a Message object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
java.awt.Container |
createBorderPanel(LyMessages.Border border)
Creates a bordered panel used to contain this message. |
java.awt.Component |
createMessageIcon(LyEnvironment env,
java.lang.String label,
java.lang.String image,
LyMessage.Align align,
LyActionListener listener)
Creates the icon associated with this message. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.awt.Component |
getMessage()
Returns message component. |
void |
setContent()
Sets the content of this message component. |
void |
setImage(java.lang.String image)
Sets the new message icon. |
void |
setLabel(java.lang.String label)
Sets the text of the this message icon panel. |
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 LySwingMessage(LyMessage message)
message
- a MESSAGE component defined for every type of view targets. This message
component is initialized specificaly for the Swing view.Method Detail |
---|
public java.awt.Container createBorderPanel(LyMessages.Border border)
border
- the type of the border. One of the following:
LyMessages#Border.NONE
LyMessages#Border.SOLID
LyMessages#Border.IN
LyMessages#Border.OUT
LyMessages#Border.RAISED
LyMessages#Border.LOWERED
public java.awt.Component createMessageIcon(LyEnvironment env, java.lang.String label, java.lang.String image, LyMessage.Align align, LyActionListener listener)
env
- the current environmentlabel
- message of the componentimage
- image name of the iconalign
- alignment of the iconlistener
- action listener to use on the component
public void setContent()
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalMessage
setLabel
in interface LySetLabelInterface
label
- new labelLySetLabelInterface.setLabel(java.lang.String)
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalMessage
setImage
in interface LySetImageInterface
image
- the new imageLyGraphicalMessage.setImage(String)
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public java.awt.Component getMessage()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |