|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.beans.FeatureDescriptor org.openide.nodes.Node.Property org.openide.nodes.Node.IndexedProperty
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 |
public Node.IndexedProperty(Class valueType, Class elementType)
valueType
- type of the propertyMethod Detail |
public abstract boolean canIndexedRead()
true
if sopublic Class getElementType()
public abstract Object getIndexedValue(int index) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
index
- the index
IllegalAccessException
- cannot access the called method
IllegalArgumentException
- wrong argument
InvocationTargetException
- an exception during invocationpublic abstract boolean canIndexedWrite()
true
if sopublic abstract void setIndexedValue(int indx, Object val) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
indx
- the indexval
- the value to set
IllegalAccessException
- cannot access the called method
IllegalArgumentException
- wrong argument
InvocationTargetException
- an exception during invocationpublic PropertyEditor getIndexedPropertyEditor()
public boolean equals(Object property)
equals
in class Node.Property
public int hashCode()
hashCode
in class Node.Property
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |