|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.config.ConfigKey<Boolean>
uk.ac.starlink.ttools.plot2.config.BooleanConfigKey
public class BooleanConfigKey
Config key for boolean values.
Constructor Summary | |
---|---|
BooleanConfigKey(ConfigMeta meta)
Constructs a key with a false default. |
|
BooleanConfigKey(ConfigMeta meta,
boolean dflt)
Constructs a key with explicit default. |
Method Summary | |
---|---|
Specifier<Boolean> |
createSpecifier()
Constructs a graphical control with which the user can specify a suitable value for association with this key. |
Boolean |
stringToValue(String txt)
Decodes a string value to the value type of this key. |
String |
valueToString(Boolean value)
Reports a value as a string. |
Methods inherited from class uk.ac.starlink.ttools.plot2.config.ConfigKey |
---|
cast, getDefaultValue, getMeta, getValueClass, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanConfigKey(ConfigMeta meta, boolean dflt)
meta
- metadatadflt
- default valuepublic BooleanConfigKey(ConfigMeta meta)
meta
- metadataMethod Detail |
---|
public Boolean stringToValue(String txt) throws ConfigException
ConfigKey
stringToValue
in class ConfigKey<Boolean>
txt
- string representation of value
ConfigException
public String valueToString(Boolean value)
ConfigKey
stringToValue(valueToString(v)).equals(v)
.
A null value, if permitted, should be represented as an empty string.
valueToString
in class ConfigKey<Boolean>
value
- possible value associated with this key
public Specifier<Boolean> createSpecifier()
ConfigKey
createSpecifier
in class ConfigKey<Boolean>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |