public class DeviceCheckBox extends Device
Device.ActionSet
Modifier and Type | Field | Description |
---|---|---|
protected ModifyBooleanAction |
modifyAction |
controller, unit
Constructor | Description |
---|---|
DeviceCheckBox(ModifierBoolean modifier) |
|
DeviceCheckBox(java.lang.String label,
ModifierBoolean modifier) |
Modifier and Type | Method | Description |
---|---|---|
javax.swing.JCheckBox |
getCheckBox() |
|
ModifierBoolean |
getModifier() |
Specifies the boolean modifier that is set between true and false by the button.
|
boolean |
getState() |
Returns the currents true/false state of the button.
|
java.awt.Component |
graphic() |
Returns the GUI box element for display in the simulation.
|
void |
setModifier(ModifierBoolean newModifier) |
Returns the boolean modifier set by this button.
|
void |
setState(boolean b) |
Sets the button to the given state.
|
void |
toggle() |
Toggles the state of the button (true to false, false to true).
|
doAction, getController, getDimension, getPostAction, getPreAction, getUnit, setController, setPostAction, setPreAction, setUnit
protected ModifyBooleanAction modifyAction
public DeviceCheckBox(ModifierBoolean modifier)
public DeviceCheckBox(java.lang.String label, ModifierBoolean modifier)
public void setState(boolean b)
public boolean getState()
public void toggle()
public ModifierBoolean getModifier()
public void setModifier(ModifierBoolean newModifier)
public java.awt.Component graphic()
public javax.swing.JCheckBox getCheckBox()