|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Choice
Choice is the fundamental building block of the config system. Every Choice must be able to:
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
static int |
PRIORITY_ACCESSOR
The priority level for configuring previously created items |
static int |
PRIORITY_CTOR
The priority level for creating items for later configuring |
static int |
PRIORITY_EXTENDER
The priority level for important but non system level stuff |
static int |
PRIORITY_HIGHEST
The priority level for important but non system level stuff |
static int |
PRIORITY_LOWEST
The lowest level priority generally for system level stuff |
static int |
PRIORITY_NORMAL
The priority level for normal use |
static int |
PRIORITY_SYSTEM
The highest level priority generally for system level stuff |
Method Summary | |
---|---|
Class |
getConversionClass()
The class that this Choice works on. |
String |
getFullPath()
The full path of the option. |
String |
getHelpText()
Gets a brief description of what is going on |
int |
getPriority()
Sometimes we need to ensure that we configure items in a certain order, the config package moves the changes to the application starting with the highest priority, moving to the lowest. |
String |
getString()
String value to associate with the name (key) |
String |
getType()
The type by which UIs can pick an appropriate editor |
void |
init(org.jdom.Element option,
ResourceBundle configResources)
String value to associate with the name (key) |
boolean |
isSaveable()
Is this Choice OK to write out to a file, or should we use settings in this run of the program, but forget them for next time. |
boolean |
requiresRestart()
Do we need to restart the program in order for this change to have effect? |
void |
setFullPath(String fullPath)
Sets the full path of the option. |
void |
setHelpText(String helptext)
Sets a brief description of what is going on |
void |
setString(String value)
String value to associate with this Field. |
Field Detail |
---|
static final int PRIORITY_SYSTEM
static final int PRIORITY_EXTENDER
static final int PRIORITY_HIGHEST
static final int PRIORITY_NORMAL
static final int PRIORITY_CTOR
static final int PRIORITY_ACCESSOR
static final int PRIORITY_LOWEST
Method Detail |
---|
void init(org.jdom.Element option, ResourceBundle configResources) throws StartupException
StartupException
String getFullPath()
void setFullPath(String fullPath)
fullPath
- The path string as supplied in config.propertiesString getType()
Class getConversionClass()
String getString()
void setString(String value) throws ConfigException
value
- The new value for this Choice
ConfigException
String getHelpText()
void setHelpText(String helptext)
helptext
- Some help textboolean isSaveable()
int getPriority()
boolean requiresRestart()
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |