org.openide.explorer.propertysheet.editors
Class TypeEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.openide.explorer.propertysheet.editors.TypeEditor
- All Implemented Interfaces:
- PropertyEditor, EnhancedPropertyEditor, ExPropertyEditor
public class TypeEditor
- extends PropertyEditorSupport
- implements EnhancedPropertyEditor, ExPropertyEditor
Property editor for the org.netbeans.src.Type
Constructor Summary |
TypeEditor()
Creates new editor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeEditor
public TypeEditor()
- Creates new editor
getAsText
public String getAsText()
- Specified by:
getAsText
in interface PropertyEditor
- Overrides:
getAsText
in class PropertyEditorSupport
- Returns:
- The property value as a human editable string.
Returns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should
be prepared to parse that string back in setAsText().
setAsText
public void setAsText(String string)
throws IllegalArgumentException
- Set the property value by parsing a given String.
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
- Parameters:
string
- The string to be parsed.
- Throws:
IllegalArgumentException
setValue
public void setValue(Object v)
- Specified by:
setValue
in interface PropertyEditor
- Overrides:
setValue
in class PropertyEditorSupport
- Parameters:
v
- new value
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interface PropertyEditor
- Overrides:
getJavaInitializationString
in class PropertyEditorSupport
- Returns:
- A fragment of Java code representing an initializer for the
current value.
getTags
public String[] getTags()
- Specified by:
getTags
in interface PropertyEditor
- Overrides:
getTags
in class PropertyEditorSupport
- Returns:
- The tag values for this property.
getInPlaceCustomEditor
public Component getInPlaceCustomEditor()
- Specified by:
getInPlaceCustomEditor
in interface EnhancedPropertyEditor
- Returns:
- Returns custom property editor to be showen inside the property
sheet.
hasInPlaceCustomEditor
public boolean hasInPlaceCustomEditor()
- Specified by:
hasInPlaceCustomEditor
in interface EnhancedPropertyEditor
- Returns:
- true if this PropertyEditor provides a enhanced in-place custom
property editor, false otherwise
supportsEditingTaggedValues
public boolean supportsEditingTaggedValues()
- Specified by:
supportsEditingTaggedValues
in interface EnhancedPropertyEditor
- Returns:
- true if this property editor provides tagged values and
a custom strings in the choice should be accepted too, false otherwise
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