|
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.LySwingIcon
public class LySwingIcon
This class implements the Icon object (as described in the dtd) for swing viewer.
An icon allows to define an image to which a text can be associated.
LyIcon
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingIcon(LyIcon icon)
Class constructor of an Icon object for the Swing target. |
Method Summary | |
---|---|
java.awt.Component |
createIcon()
Creates the swing icon. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.awt.Image |
getImage()
Gets the image displayed by this icon. |
void |
setImage(java.awt.Image image)
Sets the image displayed by this icon. |
void |
setImage(java.lang.String image)
Sets the new image of this icon from an image on the filesystem or in the resources. |
Methods inherited from class leon.view.win.swing.LySwingFieldItem |
---|
getActionTransmitter, getSelectionTransmitter |
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 LySwingIcon(LyIcon icon)
icon
- a ICON component defined for every type of view targets. This icon is initialized
for the Swing view specificaly.Method Detail |
---|
public java.awt.Component createIcon()
public void setImage(java.awt.Image image)
image
- the image to use for the icongetImage()
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public java.awt.Image getImage()
setImage(Image)
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalIcon
setImage
in interface LySetImageInterface
image
- the new imagegetImage()
,
LySetImageInterface.setImage(String)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |