public class FileArrayEditor extends PropertyEditorSupport implements ExPropertyEditor, PropertyChangeListener
[java.io.File.PROP_VALUE_VALID, PROPERTY_HELP_ID| Constructor and Description |
|---|
FileArrayEditor() |
| Modifier and Type | Method and Description |
|---|---|
void |
attachEnv(PropertyEnv env)
This method is called by the IDE to pass
the environment to the property editor.
|
String |
getAsText()
Returns human readable form of the edited value.
|
Component |
getCustomEditor()
Custon editor.
|
String |
getJavaInitializationString()
Should create a string insertable to the newly generated source code.
|
void |
propertyChange(PropertyChangeEvent e)
Property change listaner attached to the JFileChooser chooser.
|
void |
setAsText(String str)
Parses the given string and should create a new instance of the
edited object.
|
boolean |
supportsCustomEditor()
Implements PropertyEditor method.
|
addPropertyChangeListener, firePropertyChange, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValuepublic void attachEnv(PropertyEnv env)
attachEnv in interface ExPropertyEditorenv - Environment passed by the ide.public String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportpublic void setAsText(String str) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportstr - string reprezentation of the file (used as a parameter for File).IllegalArgumentException - If the given string cannot be parsedpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorgetCustomEditor in class PropertyEditorSupportpublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorsupportsCustomEditor in class PropertyEditorSupportpublic String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorgetJavaInitializationString in class PropertyEditorSupportpublic void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerBuilt on May 24 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.