|
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.LySwingFieldItem
leon.view.win.swing.LySwingHRef
public class LySwingHRef
This class implements the HRef object (as described in the dtd) for swing viewer.
An input field of Hyperlink type allows to display a graphical component containing an hyperlink. This link allows to launch an action by a simple click. It does not contain any element.
LyLabel
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingHRef(LyHRef hRef)
Class constructor of a HRef object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
java.awt.Component |
createHRefComponent(java.lang.String label,
java.awt.Image image,
java.awt.Font font,
boolean isVisited,
boolean isSensitive,
LyHRef hRef,
java.awt.Color disable,
java.awt.Color color,
java.awt.Color highlight,
java.awt.Color visited)
Creates and configures a Hyper Text Reference component with the specified parameters. |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
java.awt.Component |
getComponent()
(non-Javadoc). |
LySelectionTransmitter |
getSelectionTransmitter()
This HRef link doesn't handle selection events, so it has no selection transmitter. |
void |
setContent()
Builds the component and registers its events. |
void |
setImage(java.lang.String image)
Sets the new image. |
void |
setLabel(java.lang.String label)
Sets the label of the HRef link. |
void |
setSensitive(boolean sensitive)
(non-Javadoc). |
void |
setVisited(boolean visited)
(Modification) Accessor (LySetVisitedInterface interface). |
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 LySwingHRef(LyHRef hRef)
hRef
- a HREF component defined for every type of view targets. This component is
initialized with the href requesites.Method Detail |
---|
public java.awt.Component createHRefComponent(java.lang.String label, java.awt.Image image, java.awt.Font font, boolean isVisited, boolean isSensitive, LyHRef hRef, java.awt.Color disable, java.awt.Color color, java.awt.Color highlight, java.awt.Color visited)
label
- the text displayed by this referenceimage
- the image displayed by this referencefont
- the font used to display the labelisVisited
- true if the link has already been visitedisSensitive
- the sensitive property of the linkhRef
- the underlying data used to properly configure this referencedisable
- the disable colorcolor
- the normal colorhighlight
- the color used to display text when cursor is over the referencevisited
- the visited color
public void setContent()
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
getActionTransmitter
in class LySwingFieldItem
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
getSelectionTransmitter
in class LySwingFieldItem
null
LyEventTransmitter.getSelectionTransmitter()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalHRef
setLabel
in interface LySetLabelInterface
label
- new labelLySetLabelInterface.setLabel(String)
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalHRef
setImage
in interface LySetImageInterface
image
- the new imageLySetImageInterface.setImage(String)
public void setSensitive(boolean sensitive)
setSensitive
in interface LyGraphicalHRef
setSensitive
in interface LySetSensitiveInterface
sensitive
- Boolean indicating if attribute sensitive is set or unset.LySetSensitiveInterface.setSensitive(boolean)
public void setVisited(boolean visited)
setVisited
in interface LyGraphicalHRef
setVisited
in interface LySetVisitedInterface
visited
- Boolean indicating if attribute visited is set or unset.public 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 |