public class BooleanOption extends AbstractOption
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
value |
| Constructor and Description |
|---|
BooleanOption(java.lang.String id,
java.lang.String label,
java.lang.String defaultValue,
OptionMaster.OptionPlatform optionPlatform,
OptionMaster.Visibility optionVisibility) |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.JCheckBox |
getComponent()
Returns the GUI component that represents the option.
|
java.lang.String |
getValue()
Returns the value of the option.
|
void |
setValue(java.lang.String newValue)
Forces the value of the option to the data specified.
|
java.lang.String |
toString()
Friendly string representation of the option.
|
fromPrefsFormat, getLabel, getOptionId, getOptionPlatform, getOptionType, getOptionVisibility, isValidPrefFormat, onValidPlatform, toPrefsFormatprivate java.lang.String value
public BooleanOption(java.lang.String id, java.lang.String label, java.lang.String defaultValue, OptionMaster.OptionPlatform optionPlatform, OptionMaster.Visibility optionVisibility)
public javax.swing.JCheckBox getComponent()
AbstractOptionBooleanOptions are represented by a
JCheckBox, while TextOptions appear as a
JTextField.getComponent in interface OptiongetComponent in class AbstractOptionpublic java.lang.String getValue()
AbstractOptionBooleanOptions return either "0" or
"1".getValue in interface OptiongetValue in class AbstractOptionpublic void setValue(java.lang.String newValue)
AbstractOptionBooleanOptions accept either "0", or
"1".setValue in interface OptionsetValue in class AbstractOptionnewValue - New value to use.public java.lang.String toString()
AbstractOptiontoString in interface OptiontoString in class AbstractOptionString containing relevant info about the option.TextOption.toString(),
toString()