|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.config.ConfigKey<String>
uk.ac.starlink.ttools.plot2.config.StringConfigKey
public class StringConfigKey
Config key for use with String values.
Constructor Summary | |
---|---|
StringConfigKey(ConfigMeta meta,
String dflt)
Constructor. |
Method Summary | |
---|---|
Specifier<String> |
createSpecifier()
Constructs a graphical control with which the user can specify a suitable value for association with this key. |
String |
stringToValue(String txt)
Decodes a string value to the value type of this key. |
String |
valueToString(String 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 StringConfigKey(ConfigMeta meta, String dflt)
meta
- metadatadflt
- default valueMethod Detail |
---|
public String stringToValue(String txt)
ConfigKey
stringToValue
in class ConfigKey<String>
txt
- string representation of value
public String valueToString(String value)
ConfigKey
stringToValue(valueToString(v)).equals(v)
.
A null value, if permitted, should be represented as an empty string.
valueToString
in class ConfigKey<String>
value
- possible value associated with this key
public Specifier<String> createSpecifier()
ConfigKey
createSpecifier
in class ConfigKey<String>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |