|
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.LySwingLabel
public class LySwingLabel
This class implements a text shown as a label (as described in the dtd) for swing viewer.
An input field of label type allows to display a simple, non-editable label inside a form. It is used in the consultation forms to show different types of fields (date, number, choice,...). It can be made up of one or several lines. It does not comprise any element.
LyLabel
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
LABEL_BORDER
Number of pixels of the border. |
Constructor Summary | |
---|---|
LySwingLabel(LyLabel label)
Class constructor of a Label object for the Swing target. |
Method Summary | |
---|---|
java.awt.Component |
createLabel(java.lang.String label,
LyLabel.HAlign align)
Creates the swing label component. |
java.awt.Component |
getComponent()
(non-Javadoc). |
void |
setContent()
Builds the component with the default properties of a label. |
void |
setFont(java.lang.String fontValue)
Sets the font of the label component. |
void |
setImage(java.lang.String key)
Sets the image of the component. |
void |
setLabel(java.lang.String label)
Sets the text label. |
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
public static int LABEL_BORDER
Constructor Detail |
---|
public LySwingLabel(LyLabel label)
label
- a LABEL component defined for every type of view targets. This label is
initialized with the default values.Method Detail |
---|
public java.awt.Component createLabel(java.lang.String label, LyLabel.HAlign align)
label
- the text displayed by this labelalign
- an int specifying the alignment of this label (LyLabel#H_Align.LEFT
,
LyLabel#H_Align.RIGHT
or LyLabel#H_Align.CENTER
)
public void setContent()
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalLabel
setLabel
in interface LySetLabelInterface
label
- new labelLySetLabelInterface.setLabel(String)
public void setFont(java.lang.String fontValue)
setFont
in interface LyGraphicalLabel
setFont
in interface LySetFontInterface
fontValue
- new font valueLySetFontInterface.setFont(String)
public void setImage(java.lang.String key)
setImage
in interface LyGraphicalLabel
setImage
in interface LySetImageInterface
key
- new image keyLySetImageInterface.setImage(String)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |