|
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.LySwingCaption
public class LySwingCaption
This class implements the Label object (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
|
int |
LABEL_BORDER
Number of pixels of the border. |
Constructor Summary | |
---|---|
LySwingCaption(LyCaption caption)
Class constructor of a caption object for the Swing target. |
Method Summary | |
---|---|
java.awt.Component |
createCaption(java.lang.String label)
Creates and initializes a caption. |
java.awt.Component |
createCheckCaption(java.lang.String label,
boolean checked)
Creates and configures a captionned check box. |
java.awt.Container |
createPanelForTippedCaption()
Creates and configures a new panel used to display a tooltip. |
java.awt.Component |
getCaptionLabel()
Returns the label of this caption. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.awt.Component |
getTipCaptionBlank()
Returns a new blank JPanel for spaces on tooltips. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setContent()
Sets the content of this caption. |
void |
setEnabled(boolean status)
Updates attribute enabled to the given value. |
void |
setLabel(java.lang.String label)
Updates attribute label to the given value. |
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 int LABEL_BORDER
Constructor Detail |
---|
public LySwingCaption(LyCaption caption)
caption
- a CAPTION component defined for every type of view targets. The caption border
is initialized if its value is negative, then the content of the caption is
filled.Method Detail |
---|
public java.awt.Component createCaption(java.lang.String label)
label
- the text displayed by the caption
public java.awt.Component createCheckCaption(java.lang.String label, boolean checked)
label
- the text displayed around the check boxchecked
- indicates if check box is checked or not.
public java.awt.Container createPanelForTippedCaption()
public java.awt.Component getTipCaptionBlank()
JPanel
for spaces on tooltips.
getComponent()
public void setLabel(java.lang.String label)
LyGraphicalCaption
setLabel
in interface LyGraphicalCaption
setLabel
in interface LySetLabelInterface
label
- New value of label.public void setEnabled(boolean status)
LyGraphicalCaption
setEnabled
in interface LyGraphicalCaption
setEnabled
in interface LySetEnabledInterface
status
- Boolean indicating if attribute enabled is set or unset.public void setContent()
public java.awt.Component getCaptionLabel()
public java.awt.Component getComponent()
LySwingObject
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |