LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJMessageIcon._LyJMessageIconManager

java.lang.Object
  extended by leon.view.win.swing.component.LyAbstractMessageIconManager
      extended by 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.


Field Summary
 
Fields inherited from class leon.view.win.swing.component.LyAbstractMessageIconManager
__VERSION, IMAGE_HEIGHT, MESSAGE_GAP
 
Constructor Summary
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.
 
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 leon.view.win.swing.component.LyAbstractMessageIconManager
getPreferredSize, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 environment
text - the text message
image - the icon image
align - the alignment policy. One of the following:
  • LyMessage.Align.LEFT
  • LyMessage.Align.RIGHT
  • LyMessage.Align.CENTER
comp - the component to manage
listener - the associated action listener
Method Detail

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

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com