org.netbeans.core/2 3.32

org.netbeans.beaninfo.editors
Class ObjectEditor

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

public final class ObjectEditor
extends PropertyEditorSupport
implements ExPropertyEditor

Defines editor for choosing of any object using lookup.


Field Summary
 
Fields inherited from interface org.openide.explorer.propertysheet.ExPropertyEditor
PROP_VALUE_VALID, PROPERTY_HELP_ID
 
Constructor Summary
ObjectEditor()
          Creates new ObjectEditor
 
Method Summary
 void attachEnv(PropertyEnv env)
          This method is called by the IDE to pass the environment to the property editor.
 String getAsText()
           
 Component getCustomEditor()
           
 String[] getTags()
          List of all display names for items.
protected  Lookup lookup()
          A lookup to work on.
 void setAsText(String str)
          Searches between items whether there is one with the same display name.
 boolean supportsCustomEditor()
          Yes we have custom editor.
protected  Lookup.Template<Object> template()
          A template to use.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, 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, getJavaInitializationString, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue
 

Constructor Detail

ObjectEditor

public ObjectEditor()
Creates new ObjectEditor

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

lookup

protected Lookup lookup()
A lookup to work on.

Returns:
a lookup.

template

protected Lookup.Template<Object> template()
A template to use.


getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setAsText

public void setAsText(String str)
               throws IllegalArgumentException
Searches between items whether there is one with the same display name.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
str - item name
Throws:
IllegalArgumentException

getTags

public String[] getTags()
List of all display names for items.

Specified by:
getTags in interface PropertyEditor
Overrides:
getTags in class PropertyEditorSupport
Returns:
array of strings

supportsCustomEditor

public boolean supportsCustomEditor()
Yes we have custom editor.

Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport

getCustomEditor

public Component getCustomEditor()
Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport

org.netbeans.core/2 3.32

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