|
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.LySwingOption
public class LySwingOption
This class implements the Option object (as described in the dtd) for swing viewer.
An option represents a possible value in an input field of Choice type. It can be represented by a check box (case of a multiple choice) or else by a radio button (case of a simple choice).
LyOption
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingOption(LyOption option)
Class constructor of an Option object for the Swing target. |
Method Summary | |
---|---|
java.awt.Component |
createCheckBox(java.lang.String label,
boolean isChecked)
Creates an option component. |
java.awt.Component |
getComponent()
(non-Javadoc). |
void |
setChecked(boolean status)
(non-Javadoc). |
void |
setContent()
Sets the content of this component and enables it if necessary. |
void |
setEnabled(boolean status)
Sets the enabled status of this number component. |
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 LySwingOption(LyOption option)
option
- an OPTION component defined for every type of view targets. This number
component is initialized specificaly for the Swing view.Method Detail |
---|
public void setContent()
public java.awt.Component createCheckBox(java.lang.String label, boolean isChecked)
label
- the label of this optionisChecked
- the checked status of this option
public void setChecked(boolean status)
setChecked
in interface LyGraphicalOption
status
- Boolean indicating if attribute checked is set or unset.LyGraphicalOption.setChecked(boolean)
public void setEnabled(boolean status)
setEnabled
in interface LyGraphicalOption
setEnabled
in interface LySetEnabledInterface
status
- Boolean indicating if attribute enabled is set or unset.LyGraphicalOption.setEnabled(boolean)
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 |