|
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.win.swing.component.LyAbstractMessageIconManager
public abstract class LyAbstractMessageIconManager
This class manages a message icon component. This component is composed of a text message and an icon image. An action is triggered when this component is double clicked.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
int |
IMAGE_HEIGHT
Height of the icon image. |
int |
MESSAGE_GAP
Size, in pixels, of the empty border around this message component. |
Constructor Summary | |
---|---|
LyAbstractMessageIconManager(LyEnvironment environment,
java.lang.String text,
java.lang.String image,
LyMessage.Align align,
java.awt.Component comp,
LyActionListener listener)
Creates and initializes a new message icon manager. |
Method Summary | |
---|---|
java.awt.Dimension |
getPreferredSize()
Gets the component preferred size. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Generates an action event for the associated listener when this icon component is double clicked. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Does nothing. |
void |
mouseExited(java.awt.event.MouseEvent e)
Does nothing. |
void |
mousePressed(java.awt.event.MouseEvent e)
Does nothing. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Does nothing. |
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 text)
Sets the text of the message component. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public final int IMAGE_HEIGHT
public final int MESSAGE_GAP
Constructor Detail |
---|
public LyAbstractMessageIconManager(LyEnvironment environment, java.lang.String text, java.lang.String image, LyMessage.Align align, java.awt.Component comp, LyActionListener listener)
environment
- the current environmenttext
- the text of the message componentimage
- the image associated to the iconalign
- the alignment policy. One of the following:
comp
- the associated component for this managerlistener
- the action listener used when double click event is sent.Method Detail |
---|
public void setText(java.lang.String text)
text
- the new text labelpublic void setImage(java.lang.String image)
image
- the new icon imagepublic void setAlign(LyMessage.Align align)
align
- the new alignemnt policy_align
public java.awt.Dimension getPreferredSize()
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
MouseListener.mouseClicked(java.awt.event.MouseEvent)
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
MouseListener.mouseExited(java.awt.event.MouseEvent)
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
MouseListener.mouseReleased(java.awt.event.MouseEvent)
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
MouseListener.mouseEntered(java.awt.event.MouseEvent)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |