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

PropertySupport.ReadOnly (NetBeans Nodes API) - NetBeans API Javadoc 5.5.1

org.openide.nodes 6.7.31

org.openide.nodes
Class PropertySupport.ReadOnly

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by org.openide.nodes.Node.Property
          extended by org.openide.nodes.PropertySupport
              extended by org.openide.nodes.PropertySupport.ReadOnly
Enclosing class:
PropertySupport

public abstract static class PropertySupport.ReadOnly
extends PropertySupport

A simple read-only property. Subclasses should implement Node.Property.getValue().


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.nodes.PropertySupport
PropertySupport.Name, PropertySupport.ReadOnly, PropertySupport.ReadWrite, PropertySupport.Reflection, PropertySupport.WriteOnly
 
Constructor Summary
PropertySupport.ReadOnly(String name, Class type, String displayName, String shortDescription)
          Construct a new support.
 
Method Summary
 void setValue(Object 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, getValue, 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.ReadOnly

public PropertySupport.ReadOnly(String name,
                                Class type,
                                String displayName,
                                String shortDescription)
Construct a new support.

Parameters:
name - the name of the property
type - the class type of the property
displayName - the display name of the property
shortDescription - a short description of the property
Method Detail

setValue

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

Specified by:
setValue in class Node.Property
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 6.7.31

Built on March 26 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.