org.openide.nodes
Class PropertySupport.Name
java.lang.Object
|
+--java.beans.FeatureDescriptor
|
+--org.openide.nodes.Node.Property
|
+--org.openide.nodes.PropertySupport
|
+--org.openide.nodes.PropertySupport.Name
- Enclosing class:
- PropertySupport
- public static final class PropertySupport.Name
- extends PropertySupport
Support for the name property of a node. Delegates setValue(java.lang.Object)
and getValue()
to Node.setName(java.lang.String)
and FeatureDescriptor.getName()
.
(Final only for performance, can be unfinaled if desired).
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue |
PropertySupport.Name
public PropertySupport.Name(Node node)
- Create the name property for a node with the standard name and hint.
- Parameters:
node
- the node
PropertySupport.Name
public PropertySupport.Name(Node node,
String propName,
String hint)
- Create the name property for a node.
- Parameters:
node
- the nodepropName
- name of the "name" propertyhint
- hint message for the "name" property
getValue
public Object getValue()
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Description copied from class:
Node.Property
- Get the value.
- Overrides:
getValue
in class Node.Property
- Following copied from class:
org.openide.nodes.Node.Property
- Returns:
- the value of the property
- Throws:
IllegalAccessException
- cannot access the called methodInvocationTargetException
- an exception during invocation
setValue
public void setValue(Object val)
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Description copied from class:
Node.Property
- Set the value.
- Overrides:
setValue
in class Node.Property
- Following copied from class:
org.openide.nodes.Node.Property
- Parameters:
val
- the new value of the property- Throws:
IllegalAccessException
- cannot access the called methodIllegalArgumentException
- wrong argumentInvocationTargetException
- an exception during invocation
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.