org.openbp.jaspira.option
Class PathOption
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
org.openbp.jaspira.option.PathOption
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, javax.swing.tree.TreeNode, Copyable, DescriptionObject, Displayable, DisplayObject, Validatable
public class PathOption
- extends StringOption
A path option holds a file or directory path.
Its ui supports choosing the path using a file chooser dialog.
- 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 |
PathOption(ResourceCollection res,
java.lang.String optionName,
java.lang.String defaultValue,
javax.swing.filechooser.FileFilter filter,
boolean dirSelection)
Resource constructor. |
PathOption(java.lang.String optionName,
java.lang.String displayName,
java.lang.String description,
java.lang.String defaultValue,
Option parent,
int prio,
javax.swing.filechooser.FileFilter filter,
boolean dirSelection)
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 |
PathOption
public PathOption(ResourceCollection res,
java.lang.String optionName,
java.lang.String defaultValue,
javax.swing.filechooser.FileFilter filter,
boolean dirSelection)
- Resource constructor.
- Parameters:
res - Resource defining the optionoptionName - Name of the optiondefaultValue - Default Value of the optionfilter - File name filter for the file selection dialogdirSelection - true Select directories
false Select regular files
PathOption
public PathOption(java.lang.String optionName,
java.lang.String displayName,
java.lang.String description,
java.lang.String defaultValue,
Option parent,
int prio,
javax.swing.filechooser.FileFilter filter,
boolean dirSelection)
- 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 optionfilter - File name filter for the file selection dialogdirSelection - true Select directories
false Select regular files
createOptionWidget
public OptionWidget createOptionWidget()
- Description copied from class:
Option
- Returns the widget for this option.
- Overrides:
createOptionWidget in class StringOption
- Returns:
- The widget
- See Also:
Option.createOptionWidget()
Copyright © 2011. All Rights Reserved.