|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.config.AbstractReflectedChoice
org.crosswire.common.config.StringOptionsChoice
public class StringOptionsChoice
A class to convert between strings and objects of a type.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private String[] |
array
The options that we are presenting the user with |
Constructor Summary | |
---|---|
StringOptionsChoice()
|
Method Summary | |
---|---|
Object |
convertToObject(String orig)
Convert from a stored string to an object to use with reflection |
String |
convertToString(Object orig)
Convert from a reflection return value to a String for storage |
Class<String> |
getConversionClass()
The class that this Choice works on. |
String[] |
getOptions()
The available alternative values to be presented as options to the user where the user interface allows presentation of alternatives. |
void |
init(org.jdom2.Element option,
ResourceBundle configResources)
String value to associate with the name (key) |
Methods inherited from class org.crosswire.common.config.AbstractReflectedChoice |
---|
getFullPath, getHelpText, getKey, getString, getType, isHidden, isIgnored, isSaveable, requiresRestart, setFullPath, setHelpText, setString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.crosswire.common.config.Choice |
---|
getFullPath, getHelpText, getKey, getString, getType, isHidden, isIgnored, isSaveable, requiresRestart, setFullPath, setHelpText, setString |
Field Detail |
---|
private String[] array
Constructor Detail |
---|
public StringOptionsChoice()
Method Detail |
---|
public void init(org.jdom2.Element option, ResourceBundle configResources) throws StartupException
Choice
init
in interface Choice
init
in class AbstractReflectedChoice
StartupException
public String[] getOptions()
MultipleChoice
getOptions
in interface MultipleChoice
public Class<String> getConversionClass()
Choice
getConversionClass
in interface Choice
public String convertToString(Object orig)
AbstractReflectedChoice
convertToString
in class AbstractReflectedChoice
public Object convertToObject(String orig)
AbstractReflectedChoice
convertToObject
in class AbstractReflectedChoice
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |