Package com.sun.xfilechooser
Class FileModeEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- com.sun.xfilechooser.FileModeEditor
-
- All Implemented Interfaces:
java.beans.PropertyEditor
public class FileModeEditor extends java.beans.PropertyEditorSupportAn editor to set the File Selection Mode of XFileChooser. Used during customization via a bean editor.- See Also:
#XFileChooserBeanInfo
-
-
Constructor Summary
Constructors Constructor Description FileModeEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAsText()Gets the integer value of current selection file mode and returns the corresponding string of file mode.java.lang.String[]getTags()Provides the valid selection file modes: Files, Directories or Files/DirectoriesvoidsetAsText(java.lang.String text)Sets the selected file mode
-
-
-
Method Detail
-
getTags
public java.lang.String[] getTags()
Provides the valid selection file modes: Files, Directories or Files/Directories- Specified by:
getTagsin interfacejava.beans.PropertyEditor- Overrides:
getTagsin classjava.beans.PropertyEditorSupport- Returns:
- String name of the valid file modes
-
getAsText
public java.lang.String getAsText()
Gets the integer value of current selection file mode and returns the corresponding string of file mode.- Specified by:
getAsTextin interfacejava.beans.PropertyEditor- Overrides:
getAsTextin classjava.beans.PropertyEditorSupport- Returns:
- String name of file mode setting
-
setAsText
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentExceptionSets the selected file mode- Specified by:
setAsTextin interfacejava.beans.PropertyEditor- Overrides:
setAsTextin classjava.beans.PropertyEditorSupport- Parameters:
text- name of selected file mode- Throws:
java.lang.IllegalArgumentException
-
-