org.netbeans.core/2 3.32

org.netbeans.beaninfo.editors
Class FileArrayEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.netbeans.beaninfo.editors.FileArrayEditor
All Implemented Interfaces:
PropertyChangeListener, PropertyEditor, EventListener, ExPropertyEditor

public class FileArrayEditor
extends PropertyEditorSupport
implements ExPropertyEditor, PropertyChangeListener

PropertyEditor for [java.io.File.


Field Summary
 
Fields inherited from interface org.openide.explorer.propertysheet.ExPropertyEditor
PROP_VALUE_VALID, PROPERTY_HELP_ID
 
Constructor Summary
FileArrayEditor()
           
 
Method Summary
 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.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue
 

Constructor Detail

FileArrayEditor

public FileArrayEditor()
Method Detail

attachEnv

public void attachEnv(PropertyEnv env)
This method is called by the IDE to pass the environment to the property editor.

Specified by:
attachEnv in interface ExPropertyEditor
Parameters:
env - Environment passed by the ide.

getAsText

public String getAsText()
Returns human readable form of the edited value.

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
Returns:
string reprezentation

setAsText

public void setAsText(String str)
               throws IllegalArgumentException
Parses the given string and should create a new instance of the edited object.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
str - string reprezentation of the file (used as a parameter for File).
Throws:
IllegalArgumentException - If the given string cannot be parsed

getCustomEditor

public Component getCustomEditor()
Custon editor.

Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport
Returns:
Returns custom editor component.

supportsCustomEditor

public boolean supportsCustomEditor()
Implements PropertyEditor method.

Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport
Returns:
Returns true.

getJavaInitializationString

public String getJavaInitializationString()
Should create a string insertable to the newly generated source code.

Specified by:
getJavaInitializationString in interface PropertyEditor
Overrides:
getJavaInitializationString in class PropertyEditorSupport
Returns:
initialization string

propertyChange

public void propertyChange(PropertyChangeEvent e)
Property change listaner attached to the JFileChooser chooser.

Specified by:
propertyChange in interface PropertyChangeListener

org.netbeans.core/2 3.32

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.