Package com.sun.xfilechooser
Class FileModeEditor
java.lang.Object
java.beans.PropertyEditorSupport
com.sun.xfilechooser.FileModeEditor
- All Implemented Interfaces:
PropertyEditor
An editor to set the File Selection Mode of XFileChooser. Used during
customization via a bean editor.
- See Also:
-
#XFileChooserBeanInfo
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
FileModeEditor
public FileModeEditor()
-
-
Method Details
-
getTags
Provides the valid selection file modes: Files, Directories or Files/Directories- Specified by:
getTags
in interfacePropertyEditor
- Overrides:
getTags
in classPropertyEditorSupport
- Returns:
- String name of the valid file modes
-
getAsText
Gets the integer value of current selection file mode and returns the corresponding string of file mode.- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
- Returns:
- String name of file mode setting
-
setAsText
Sets the selected file mode- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Parameters:
text
- name of selected file mode- Throws:
IllegalArgumentException
-