|
||||||||||
| 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 |
| Fields inherited from interface org.crosswire.common.config.Choice |
|---|
PRIORITY_ACCESSOR, PRIORITY_CTOR, PRIORITY_EXTENDER, PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_NORMAL, PRIORITY_SYSTEM |
| Constructor Summary | |
|---|---|
StringOptionsChoice()
|
|
| Method Summary | |
|---|---|
Object |
convertToObject(String orig)
Convert from a stored string to an object to use with relfection |
String |
convertToString(Object orig)
Convert from a reflection return value to a String for storage |
Class |
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.jdom.Element option,
ResourceBundle configResources)
String value to associate with the name (key) |
| Methods inherited from class org.crosswire.common.config.AbstractReflectedChoice |
|---|
getFullPath, getHelpText, getPriority, getString, getType, isSaveable, requiresRestart, setFullPath, setHelpText, setPriority, 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, getPriority, getString, getType, isSaveable, requiresRestart, setFullPath, setHelpText, setString |
| Field Detail |
|---|
private String[] array
| Constructor Detail |
|---|
public StringOptionsChoice()
| Method Detail |
|---|
public void init(org.jdom.Element option,
ResourceBundle configResources)
throws StartupException
Choice
init in interface Choiceinit in class AbstractReflectedChoiceStartupExceptionpublic String[] getOptions()
MultipleChoice
getOptions in interface MultipleChoicepublic Class getConversionClass()
Choice
getConversionClass in interface Choicepublic String convertToString(Object orig)
AbstractReflectedChoice
convertToString in class AbstractReflectedChoicepublic Object convertToObject(String orig)
AbstractReflectedChoice
convertToObject in class AbstractReflectedChoice
|
Copyright ยจ 2003-2006 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||