leon.view.win.swing.component
Class LyJMessageIcon._LyJMessageIconManager
java.lang.Object
leon.view.win.swing.component.LyAbstractMessageIconManager
leon.view.win.swing.component.LyJMessageIcon._LyJMessageIconManager
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.util.EventListener
- Enclosing class:
- LyJMessageIcon
public class LyJMessageIcon._LyJMessageIconManager
- extends LyAbstractMessageIconManager
Swing customization of the message icon manager.
Method Summary |
void |
setAlign(LyMessage.Align align)
Sets the alignment policy of the message text. |
void |
setImage(java.lang.String image)
Sets the image icon of the message component. |
void |
setText(java.lang.String label)
Sets the text of the message component. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LyJMessageIcon._LyJMessageIconManager
public LyJMessageIcon._LyJMessageIconManager(LyEnvironment environment,
java.lang.String text,
java.lang.String image,
LyMessage.Align align,
java.awt.Component comp,
LyActionListener listener)
- Creates a message icon manager with the specified attributes then sets the default values
for the font and the foreground color.
- Parameters:
environment
- the current environmenttext
- the text messageimage
- the icon imagealign
- the alignment policy. One of the following:
- LyMessage.Align.LEFT
- LyMessage.Align.RIGHT
- LyMessage.Align.CENTER
comp
- the component to managelistener
- the associated action listener
setText
public void setText(java.lang.String label)
- Description copied from class:
LyAbstractMessageIconManager
- Sets the text of the message component.
- Overrides:
setText
in class LyAbstractMessageIconManager
- Parameters:
label
- the new text label
setImage
public void setImage(java.lang.String image)
- Description copied from class:
LyAbstractMessageIconManager
- Sets the image icon of the message component.
- Overrides:
setImage
in class LyAbstractMessageIconManager
- Parameters:
image
- the new icon image
setAlign
public void setAlign(LyMessage.Align align)
- Description copied from class:
LyAbstractMessageIconManager
- Sets the alignment policy of the message text.
- Overrides:
setAlign
in class LyAbstractMessageIconManager
- Parameters:
align
- the new alignemnt policy- See Also:
LyAbstractMessageIconManager._align
Website: W4 S.A., contact us: support@w4global.com