|
|||||||||||
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 org.openide.nodes.IndexedPropertySupport
Support for indexed properties.
Node
Field Summary | |
protected Object |
instance
Instance of the bean. |
Constructor Summary | |
IndexedPropertySupport(Object instance,
Class valueType,
Class elementType,
Method getter,
Method setter,
Method indexedGetter,
Method indexedSetter)
Constructor. |
Method Summary | |
boolean |
canIndexedRead()
Test whether the property is readable by index. |
boolean |
canIndexedWrite()
Test whether the property is writable by index. |
boolean |
canRead()
Test whether the property is readable. |
boolean |
canWrite()
Test whether the property is writable. |
Object |
getIndexedValue(int index)
Get the value of the property at an index. |
Object |
getValue()
Get the value. |
void |
setDisplayName(String s)
|
void |
setIndexedValue(int index,
Object val)
Set the value of the property at an index. |
void |
setName(String s)
|
void |
setShortDescription(String s)
|
void |
setValue(Object val)
Set the value. |
Methods inherited from class org.openide.nodes.Node.IndexedProperty |
equals, getElementType, getIndexedPropertyEditor, hashCode |
Methods inherited from class org.openide.nodes.Node.Property |
getHtmlDisplayName, getPropertyEditor, getValueType, isDefaultValue, restoreDefaultValue, supportsDefaultValue |
Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setHidden, setPreferred, setValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Object instance
Constructor Detail |
public IndexedPropertySupport(Object instance, Class valueType, Class elementType, Method getter, Method setter, Method indexedGetter, Method indexedSetter)
instance
- the bean for which these properties existvalueType
- type of the entire propertyelementType
- type of one element of the propertygetter
- get method for the entire propertysetter
- set method for the entire propertyindexedGetter
- get method for one elementindexedSetter
- set method for one elementMethod Detail |
public final void setDisplayName(String s)
public final void setName(String s)
public final void setShortDescription(String s)
public boolean canRead()
Node.Property
canRead
in class Node.Property
true
if it ispublic Object getValue() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.Property
getValue
in class Node.Property
IllegalAccessException
- cannot access the called method
InvocationTargetException
- an exception during invocation
IllegalArgumentException
public boolean canWrite()
Node.Property
canWrite
in class Node.Property
true
if the read of the value is supportedpublic void setValue(Object val) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.Property
setValue
in class Node.Property
val
- the new value of the property
InvocationTargetException
- an exception during invocation
IllegalAccessException
- cannot access the called method
IllegalArgumentException
- wrong argumentpublic boolean canIndexedRead()
Node.IndexedProperty
canIndexedRead
in class Node.IndexedProperty
true
if sopublic Object getIndexedValue(int index) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.IndexedProperty
getIndexedValue
in class Node.IndexedProperty
index
- the index
IllegalAccessException
- cannot access the called method
InvocationTargetException
- an exception during invocation
IllegalArgumentException
- wrong argumentpublic boolean canIndexedWrite()
Node.IndexedProperty
canIndexedWrite
in class Node.IndexedProperty
true
if sopublic void setIndexedValue(int index, Object val) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.IndexedProperty
setIndexedValue
in class Node.IndexedProperty
index
- the indexval
- the value to set
InvocationTargetException
- an exception during invocation
IllegalArgumentException
- wrong argument
IllegalAccessException
- cannot access the called method
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |