|
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.LySwingBoolean
public class LySwingBoolean
This class implements the Boolean object (as described in the dtd) for swing viewer.
An input field of boolean type allows to display a graphical component with a three status checkbox : not specified (empty), true (checked with a green sign), false (with a red cross). It is possible to specify a label for each of these statuss and to make a negation of the boolean value.
LyBoolean
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingBoolean(LyBoolean booleanViewComp)
Class constructor of a Boolean object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
(non-Javadoc). |
java.lang.Boolean |
computeBooleanValue()
Computes the value of this boolean component. |
java.awt.Component |
createBooleanComponent()
Returns a new Swing boolean component. |
LyAbstractBooleanPanelManager |
getBooleanManager()
Returns the boolean manager. |
java.lang.Boolean |
getBooleanValue()
Returns the boolean value. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.lang.String |
getValue()
Returns the boolean internal status as a string. |
void |
initialize()
Initializes the Boolean object by creating the associated Swing boolean component. |
void |
setBooleanValue(java.lang.Boolean value)
Sets the new boolean value of this component. |
void |
setContent()
Sets the content of this component. |
void |
setEditable(boolean status)
(non-Javadoc). |
void |
setEnabled(boolean status)
(non-Javadoc). |
void |
setImages(java.awt.Image back,
java.awt.Image hoover,
java.awt.Image empty,
java.awt.Image falseV,
java.awt.Image trueV)
Sets the images of this component. |
void |
setLabels(java.lang.String labelEmpty,
java.lang.String labelChecked,
java.lang.String labelUnchecked)
Sets the labels of this component. |
void |
setOptional(boolean optional)
(non-Javadoc). |
void |
setStatus(LyBoolean.Status status)
(non-Javadoc). |
void |
setValue(java.lang.Boolean value)
Sets the value of this swing boolean component. |
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 LySwingBoolean(LyBoolean booleanViewComp)
booleanViewComp
- a BOOLEAN component defined for every type of view targets. This
boolean is initialized specificaly for the Swing view.Method Detail |
---|
public void initialize()
public LyAbstractBooleanPanelManager getBooleanManager()
public java.awt.Component createBooleanComponent()
public void setOptional(boolean optional)
setOptional
in interface LySetOptionalInterface
optional
- the new status of the optional attributeLySetOptionalInterface.setOptional(boolean)
public java.lang.Boolean getBooleanValue()
null
if this component is empty.
setBooleanValue(Boolean)
public void setBooleanValue(java.lang.Boolean value)
null
if the value is empty.
value
- the new boolean valuegetBooleanValue()
public void setImages(java.awt.Image back, java.awt.Image hoover, java.awt.Image empty, java.awt.Image falseV, java.awt.Image trueV)
back
- the background imagehoover
- the hoover imageempty
- the image used when BOOLEAN_EMPTY status is selectedfalseV
- the image used when BOOLEAN_FALSE status is selectedtrueV
- the image used when BOOLEAN_TRUE status is selectedLyAbstractBooleanPanelManager.setImages(Image, Image, Image, Image, Image)
public void setLabels(java.lang.String labelEmpty, java.lang.String labelChecked, java.lang.String labelUnchecked)
labelEmpty
- label displayed when the selection is emptylabelChecked
- label displayed when the selection is checkedlabelUnchecked
- label displayed when the selection is uncheckedLyAbstractBooleanPanelManager.setLabels(String, String, String)
public void setContent()
public void setEditable(boolean status)
setEditable
in interface LySetEditableInterface
LySetEditableInterface.setEditable(boolean)
public void setEnabled(boolean status)
setEnabled
in interface LySetEnabledInterface
LySetEnabledInterface.setEnabled(boolean)
public void setStatus(LyBoolean.Status status)
setStatus
in interface LyGraphicalBoolean
setStatus
in interface LySetStatusInterface
status
- New value of status.leon.view.setinterface.LySetstatusInterface#setstatus(short)
public java.lang.Boolean computeBooleanValue()
LyBoolean.isNot()
is set. If
there is no value, null
is returned.
null
if
there is no value for this component.public java.lang.String getValue()
getValue
in interface LyGetValueInterface
setValue(Boolean)
,
LyGetValueInterface.getValue()
public void setValue(java.lang.Boolean value)
Boolean.TRUE
Boolean.FALSE
null
if the component is empty
value
- the new boolean valuegetValue()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
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 |