org.openbp.jaspira.option
Class StringOption
java.lang.Object
org.openbp.common.generic.description.DescriptionObjectImpl
org.openbp.common.generic.description.DisplayObjectImpl
org.openbp.jaspira.option.Option
org.openbp.jaspira.option.StringOption
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, javax.swing.tree.TreeNode, Copyable, DescriptionObject, Displayable, DisplayObject, Validatable
- Direct Known Subclasses:
- DebuggerOptionModule.DebuggerIdOption, DisplayObjectPlugin.RoleOptionModule.TitleOption, PathOption
public class StringOption
- extends Option
A string option is a text option represented by a text field.
- Author:
- Jens Ferchland
- See Also:
- Serialized Form
| Fields inherited from class org.openbp.jaspira.option.Option |
DFLT_PRIORITY, priorityComparator, PROPERTY_CONDITION, PROPERTY_HEADING, PROPERTY_ICON, PROPERTY_OPTION_PARENT, PROPERTY_PRIO, PROPERTY_TYPE, TYPE_GROUP, TYPE_OPTION, TYPE_SUB_GROUP |
|
Constructor Summary |
StringOption(ResourceCollection res,
java.lang.String optionName,
java.lang.String defaultValue)
Resource constructor. |
StringOption(java.lang.String optionName,
java.lang.String displayName,
java.lang.String description,
java.lang.String defaultValue,
Option parent,
int prio)
Value constructor. |
| Methods inherited from class org.openbp.jaspira.option.Option |
addOptionChild, children, getAllowsChildren, getCachedOptionWidget, getChildAt, getChildCount, getCondition, getDefaultValue, getHeading, getIcon, getIndex, getOptionChildren, getParent, getPriority, getType, getValue, install, isLeaf, loadOptionValue, removeOptionChild, resetCachedOptionWidget, saveOptionValue, setValue, toString, uninstall |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
StringOption
public StringOption(ResourceCollection res,
java.lang.String optionName,
java.lang.String defaultValue)
- Resource constructor.
- Parameters:
res - Resource defining the optionoptionName - Name of the optiondefaultValue - Default Value of the option
StringOption
public StringOption(java.lang.String optionName,
java.lang.String displayName,
java.lang.String description,
java.lang.String defaultValue,
Option parent,
int prio)
- Value constructor.
- Parameters:
optionName - Name of the optiondisplayName - Display name of the optiondescription - Description of the optiondefaultValue - Default Value of the optionparent - Option parent or nullprio - Priority of the option
createOptionWidget
public OptionWidget createOptionWidget()
- Description copied from class:
Option
- Returns the widget for this option.
- Specified by:
createOptionWidget in class Option
- Returns:
- The widget
- See Also:
Option.createOptionWidget()
saveToString
public java.lang.String saveToString()
- Description copied from class:
Option
- Serializes the option value to a string.
This string value will be used to save the option using the
SettingUtil class.
- Specified by:
saveToString in class Option
- Returns:
- A string representing the option value
This value corresponds to the value expected by Option.loadFromString(java.lang.String). - See Also:
Option.saveToString()
loadFromString
public java.lang.Object loadFromString(java.lang.String cryptString)
- Description copied from class:
Option
- Deserializes the option value from a string.
This string value will be used to save the option using the
SettingUtil class.
- Specified by:
loadFromString in class Option
- Parameters:
cryptString - A string representing the option value or null
This value corresponds to the value returned by Option.saveToString().
- Returns:
- The option value
- See Also:
Option.loadFromString(String)
Copyright © 2011. All Rights Reserved.