org.crosswire.common.config
Class NumberChoice
java.lang.Object
org.crosswire.common.config.AbstractReflectedChoice
org.crosswire.common.config.NumberChoice
- All Implemented Interfaces:
- Choice
public class NumberChoice
- extends AbstractReflectedChoice
A class to convert between strings and objects of a type.
- Author:
- Joe Walker [joe at eireneh dot com]
- See Also:
for license details.
The copyright to this program is held by it's authors.
Methods inherited from class org.crosswire.common.config.AbstractReflectedChoice |
getFullPath, getHelpText, getKey, getPriority, getString, getType, init, isHidden, isSaveable, requiresRestart, setFullPath, setHelpText, setPriority, setString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberChoice
public NumberChoice()
getConversionClass
public Class getConversionClass()
- Description copied from interface:
Choice
- The class that this Choice works on. Used to decide how to display the
choice to the user.
- Returns:
- The Class that this Choice works using.
convertToString
public String convertToString(Object orig)
- Description copied from class:
AbstractReflectedChoice
- Convert from a reflection return value to a String for storage
- Specified by:
convertToString
in class AbstractReflectedChoice
convertToObject
public Object convertToObject(String orig)
- Description copied from class:
AbstractReflectedChoice
- Convert from a stored string to an object to use with relfection
- Specified by:
convertToObject
in class AbstractReflectedChoice