站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

PropertySupport.Name (Nodes API) - NetBeans API Javadoc (Current Development Version)

org.openide.nodes 7.0

org.openide.nodes
Class PropertySupport.Name

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by org.openide.nodes.Node.Property<T>
          extended by org.openide.nodes.PropertySupport<String>
              extended by org.openide.nodes.PropertySupport.Name
Enclosing class:
PropertySupport<T>

public static final class PropertySupport.Name
extends PropertySupport<String>

Support for the name property of a node. Delegates setValue(java.lang.String) and getValue() to Node.setName(java.lang.String) and FeatureDescriptor.getName().


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.nodes.PropertySupport
PropertySupport.Name, PropertySupport.ReadOnly<T>, PropertySupport.ReadWrite<T>, PropertySupport.Reflection<T>, PropertySupport.WriteOnly<T>
 
Constructor Summary
PropertySupport.Name(Node node)
          Create the name property for a node with the standard name and hint.
PropertySupport.Name(Node node, String propName, String hint)
          Create the name property for a node.
 
Method Summary
 String getValue()
          Get the value.
 void setValue(String val)
          Set the value.
 
Methods inherited from class org.openide.nodes.PropertySupport
canRead, canWrite
 
Methods inherited from class org.openide.nodes.Node.Property
equals, getHtmlDisplayName, getPropertyEditor, getValueType, hashCode, isDefaultValue, restoreDefaultValue, supportsDefaultValue
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 node
propName - name of the "name" property
hint - hint message for the "name" property
Method Detail

getValue

public String getValue()
                throws IllegalAccessException,
                       IllegalArgumentException,
                       InvocationTargetException
Description copied from class: Node.Property
Get the value.

Specified by:
getValue in class Node.Property<String>
Returns:
the value of the property
Throws:
IllegalAccessException - cannot access the called method
InvocationTargetException - an exception during invocation
IllegalArgumentException

setValue

public void setValue(String val)
              throws IllegalAccessException,
                     IllegalArgumentException,
                     InvocationTargetException
Description copied from class: Node.Property
Set the value.

Specified by:
setValue in class Node.Property<String>
Parameters:
val - the new value of the property
Throws:
IllegalAccessException - cannot access the called method
IllegalArgumentException - wrong argument
InvocationTargetException - an exception during invocation

org.openide.nodes 7.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.