org.openide.nodes
Class Node.IndexedProperty
java.lang.Object
|
+--java.beans.FeatureDescriptor
|
+--org.openide.nodes.Node.Property
|
+--org.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.
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue |
Node.IndexedProperty
public Node.IndexedProperty(Class valueType,
Class elementType)
- Constructor.
- Parameters:
valueType
- type of the property
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:
indx
- the index- Returns:
- the value at that index
- Throws:
IllegalAccessException
- cannot access the called methodIllegalArgumentException
- wrong argumentInvocationTargetException
- 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 indexval
- the value to set- Throws:
IllegalAccessException
- cannot access the called methodIllegalArgumentException
- wrong argumentInvocationTargetException
- an exception during invocation
getIndexedPropertyEditor
public PropertyEditor getIndexedPropertyEditor()
- Get a property editor for individual elements in this property.
- Returns:
- the property editor for elements
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.