com.sun.xfilechooser
Class FileModeEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--com.sun.xfilechooser.FileModeEditor

public class FileModeEditor
extends java.beans.PropertyEditorSupport

An editor to set the File Selection Mode of XFileChooser. Used during customization via a bean editor.

See Also:
#XFileChooserBeanInfo

Constructor Summary
FileModeEditor()
           
 
Method Summary
 java.lang.String getAsText()
          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/Directories
 void setAsText(java.lang.String text)
          Sets the selected file mode
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileModeEditor

public FileModeEditor()
Method Detail

getTags

public java.lang.String[] getTags()
Provides the valid selection file modes: Files, Directories or Files/Directories
Returns:
String name of the valid file modes
Overrides:
getTags in class java.beans.PropertyEditorSupport

getAsText

public java.lang.String getAsText()
Gets the integer value of current selection file mode and returns the corresponding string of file mode.
Returns:
String name of file mode setting
Overrides:
getAsText in class java.beans.PropertyEditorSupport

setAsText

public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
Sets the selected file mode
Parameters:
text - name of selected file mode
Overrides:
setAsText in class java.beans.PropertyEditorSupport