Package org.moeaframework.util.mvc
Class Toggle
A setting representing a binary state (on/off, true/false, enabled/disabled).
-
Constructor Summary
ConstructorDescriptionToggle
(boolean defaultValue) Constructs a toggle setting with the default value. -
Method Summary
Methods inherited from class org.moeaframework.util.mvc.Setting
addSettingChangedListener, get, getDefaultValue, removeSettingChangedListener, set
-
Constructor Details
-
Toggle
public Toggle(boolean defaultValue) Constructs a toggle setting with the default value.- Parameters:
defaultValue
- the default value
-
-
Method Details
-
flip
public void flip()Flips the value of this toggle.
-