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

Node.IndexedProperty (NetBeans Nodes API) - NetBeans API Javadoc 5.0.0

 

org.openide.nodes
Class Node.IndexedProperty

java.lang.Object
  extended byjava.beans.FeatureDescriptor
      extended byorg.openide.nodes.Node.Property
          extended byorg.openide.nodes.Node.IndexedProperty
Direct Known Subclasses:
IndexedPropertySupport
Enclosing class:
Node

public abstract static class Node.IndexedProperty
extends Node.Property

Description of an indexed property and operations on it.


Constructor Summary
Node.IndexedProperty(Class valueType, Class elementType)
          Constructor.
 
Method Summary
abstract  boolean canIndexedRead()
          Test whether the property is readable by index.
abstract  boolean canIndexedWrite()
          Test whether the property is writable by index.
 boolean equals(Object property)
           
 Class getElementType()
          Get the element type of the property (not the type of the whole property).
 PropertyEditor getIndexedPropertyEditor()
          Get a property editor for individual elements in this property.
abstract  Object getIndexedValue(int index)
          Get the value of the property at an index.
 int hashCode()
           
abstract  void setIndexedValue(int indx, Object val)
          Set the value of the property at an index.
 
Methods inherited from class org.openide.nodes.Node.Property
canRead, canWrite, getHtmlDisplayName, getPropertyEditor, getValue, getValueType, isDefaultValue, restoreDefaultValue, setValue, 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

Node.IndexedProperty

public Node.IndexedProperty(Class valueType,
                            Class elementType)
Constructor.

Parameters:
valueType - type of the property
Method Detail

canIndexedRead

public abstract boolean canIndexedRead()
Test whether the property is readable by index.

Returns:
true if so

getElementType

public Class getElementType()
Get the element type of the property (not the type of the whole property).

Returns:
the type

getIndexedValue

public abstract Object getIndexedValue(int index)
                                throws IllegalAccessException,
                                       IllegalArgumentException,
                                       InvocationTargetException
Get the value of the property at an index.

Parameters:
index - the index
Returns:
the value at that index
Throws:
IllegalAccessException - cannot access the called method
IllegalArgumentException - wrong argument
InvocationTargetException - an exception during invocation

canIndexedWrite

public abstract boolean canIndexedWrite()
Test whether the property is writable by index.

Returns:
true if so

setIndexedValue

public abstract void setIndexedValue(int indx,
                                     Object val)
                              throws IllegalAccessException,
                                     IllegalArgumentException,
                                     InvocationTargetException
Set the value of the property at an index.

Parameters:
indx - the index
val - the value to set
Throws:
IllegalAccessException - cannot access the called method
IllegalArgumentException - wrong argument
InvocationTargetException - an exception during invocation

getIndexedPropertyEditor

public PropertyEditor getIndexedPropertyEditor()
Get a property editor for individual elements in this property.

Returns:
the property editor for elements

equals

public boolean equals(Object property)
Overrides:
equals in class Node.Property

hashCode

public int hashCode()
Overrides:
hashCode in class Node.Property

 

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