Package VASSAL.preferences
Class BooleanPreference
java.lang.Object
VASSAL.build.AbstractBuildable
VASSAL.build.AbstractConfigurable
VASSAL.preferences.BasicPreference
VASSAL.preferences.BooleanPreference
- All Implemented Interfaces:
AutoConfigurable
,Buildable
,Configurable
,PropertyNameSource
,ValidityChecker
,Translatable
public class BooleanPreference extends BasicPreference
A Checkbox Module Preference.
-
Nested Class Summary
Nested classes/interfaces inherited from class VASSAL.preferences.BasicPreference
BasicPreference.NoteConfig
Nested classes/interfaces inherited from interface VASSAL.build.AutoConfigurable
AutoConfigurable.Util
-
Field Summary
Fields Modifier and Type Field Description protected BooleanConfigurer
config
protected boolean
defaultValue
Fields inherited from class VASSAL.preferences.BasicPreference
DEFAULT, DESC, NAME, property, TAB, tabName, variableName
Fields inherited from class VASSAL.build.AbstractConfigurable
changeSupport, localizedName, myI18nData, name
Fields inherited from class VASSAL.build.AbstractBuildable
buildComponents, validator
Fields inherited from interface VASSAL.build.Configurable
NAME_PROPERTY
-
Constructor Summary
Constructors Constructor Description BooleanPreference()
-
Method Summary
Modifier and Type Method Description static String
getConfigureTypeName()
Class<?>
getDefaultClass()
String
getDefaultValue()
Configurer
getPreferenceConfigurer()
void
setDefaultValue(Object value)
Methods inherited from class VASSAL.preferences.BasicPreference
addTo, getAllowableConfigureComponents, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getDescription, getHelpFile, getVariableName, removeFrom, setAttribute, updateGlobalProperty
Methods inherited from class VASSAL.build.AbstractConfigurable
add, addPropertyChangeListener, getAttributeVisibility, getConfigureComponents, getConfigureName, getConfigurer, getI18nData, getI18nPrefix, getLocalizedConfigureName, remove, removePropertyChangeListener, setAllAttributesUntranslatable, setAttributeTranslatable, setConfigureName
Methods inherited from class VASSAL.build.AbstractBuildable
build, getAllDescendantComponents, getAllDescendantComponentsOf, getBuildables, getBuildComponents, getBuildElement, getComponents, getComponentsOf, getPropertyNames, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface VASSAL.build.Buildable
build, getBuildElement
-
Field Details
-
defaultValue
protected boolean defaultValue -
config
-
-
Constructor Details
-
BooleanPreference
public BooleanPreference()
-
-
Method Details
-
getConfigureTypeName
-
getDefaultClass
- Specified by:
getDefaultClass
in classBasicPreference
-
getDefaultValue
- Specified by:
getDefaultValue
in classBasicPreference
-
setDefaultValue
- Specified by:
setDefaultValue
in classBasicPreference
-
getPreferenceConfigurer
- Specified by:
getPreferenceConfigurer
in classBasicPreference
-