Interface GUIToggleable
- All Superinterfaces:
GUIValueField<Boolean>
- All Known Implementing Classes:
GUICheckbox, GUIRadioButton, GUITogglePanel
Describes a GUI object that can be toggled between two states.
- Author:
- Matthew Tropiano
-
Field Summary
Fields inherited from interface GUIValueField
EVENT_VALUE_CHANGE -
Method Summary
Methods inherited from interface GUIValueField
getValue, setValue
-
Method Details
-
isSet
boolean isSet()Gets the state of this toggleable object.- Returns:
- true if this is in the enabled state, false if not.
-
toggle
GUIToggleable toggle()Changes the state of this toggleable object to the opposite state. If true, calling this sets it to false. If false, calling this sets it to true.- Returns:
- itself, to chain calls.
-
setState
Changes the state of this toggleable object to the specified state. Must fire anGUIValueField.EVENT_VALUE_CHANGEif the state of this object changes.- Parameters:
state- the new state.- Returns:
- itself, to chain calls.
-