|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.ui.core.Widget
qx.ui.core.Parent
qx.ui.layout.BoxLayout
qx.ui.layout.HorizontalBoxLayout
qx.ui.menu.Button
qx.ui.menu.CheckBox
public class CheckBox
A checkbox for the menu system.
Field Summary |
---|
Fields inherited from class qx.ui.core.Widget |
---|
AUTO |
Constructor Summary | |
---|---|
CheckBox()
|
|
CheckBox(java.lang.Object vLabel)
|
|
CheckBox(java.lang.Object vLabel,
java.lang.Object vCommand)
|
|
CheckBox(java.lang.Object vLabel,
java.lang.Object vCommand,
java.lang.Object vChecked)
|
Method Summary | |
---|---|
void |
_applyChecked(java.lang.Object value,
java.lang.Object old)
|
void |
_processExecute()
Processes the execute action in calling the toggleChecked() method |
void |
execute()
Calls the protected method _processExecute() to process
the execute action. |
boolean |
getChecked()
Returns the (computed) value of the property checked . |
java.lang.String |
getName()
Returns the (computed) value of the property name . |
java.lang.String |
getValue()
Returns the (computed) value of the property value . |
void |
initChecked(boolean arg)
Calls the apply method and dispatches the change event of the property checked
with the default value defined by the class developer. |
void |
initName(java.lang.String arg)
Calls the apply method and dispatches the change event of the property name
with the default value defined by the class developer. |
void |
initValue(java.lang.String arg)
Calls the apply method and dispatches the change event of the property value
with the default value defined by the class developer. |
boolean |
isChecked()
Check whether the (computed) value of the boolean property checked equals true . |
void |
resetChecked()
Resets the user value of the property checked . |
void |
resetName()
Resets the user value of the property name . |
void |
resetValue()
Resets the user value of the property value . |
void |
setChecked(boolean arg)
Sets the user value of the property checked . |
void |
setName(java.lang.String arg)
Sets the user value of the property name . |
void |
setValue(java.lang.String arg)
Sets the user value of the property value . |
boolean |
toggleChecked()
Toggles the (computed) value of the boolean property checked . |
Methods inherited from class qx.ui.menu.Button |
---|
_applyCommand, _applyIcon, _applyLabel, _applyMenu, _createLayoutImpl, _onmouseup, getArrowObject, getIcon, getIconObject, getLabel, getLabelObject, getMenu, getParentMenu, getShortcutObject, hasIcon, hasLabel, hasMenu, hasShortcut, initIcon, initLabel, initMenu, resetIcon, resetLabel, resetMenu, setIcon, setLabel, setMenu |
Methods inherited from class qx.core.Target |
---|
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckBox()
public CheckBox(java.lang.Object vLabel)
public CheckBox(java.lang.Object vLabel, java.lang.Object vCommand)
public CheckBox(java.lang.Object vLabel, java.lang.Object vCommand, java.lang.Object vChecked)
Method Detail |
---|
public void _applyChecked(java.lang.Object value, java.lang.Object old)
public void _processExecute()
Processes the execute action in calling the toggleChecked()
method
public void execute()
Calls the protected method _processExecute()
to process
the execute action.
execute
in class Widget
public boolean getChecked()
Returns the (computed) value of the property checked
.
For further details take a look at the property definition: checked
.
public java.lang.String getName()
Returns the (computed) value of the property name
.
For further details take a look at the property definition: name
.
public java.lang.String getValue()
Returns the (computed) value of the property value
.
For further details take a look at the property definition: value
.
public void initChecked(boolean arg)
Calls the apply method and dispatches the change event of the property checked
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: checked
.
public void initName(java.lang.String arg)
Calls the apply method and dispatches the change event of the property name
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: name
.
public void initValue(java.lang.String arg)
Calls the apply method and dispatches the change event of the property value
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: value
.
public boolean isChecked()
Check whether the (computed) value of the boolean property checked
equals true
.
For further details take a look at the property definition: checked
.
public void resetChecked()
Resets the user value of the property checked
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: checked
.
public void resetName()
Resets the user value of the property name
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: name
.
public void resetValue()
Resets the user value of the property value
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: value
.
public void setChecked(boolean arg)
Sets the user value of the property checked
.
For further details take a look at the property definition: checked
.
public void setName(java.lang.String arg)
Sets the user value of the property name
.
For further details take a look at the property definition: name
.
public void setValue(java.lang.String arg)
Sets the user value of the property value
.
For further details take a look at the property definition: value
.
public boolean toggleChecked()
Toggles the (computed) value of the boolean property checked
.
For further details take a look at the property definition: checked
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |