|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.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 element| Method 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.Propertytrue if it ispublic Object getValue() throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.Property
getValue in class Node.PropertyIllegalAccessException - cannot access the called method
InvocationTargetException - an exception during invocation
IllegalArgumentExceptionpublic boolean canWrite()
Node.Property
canWrite in class Node.Propertytrue if the read of the value is supportedpublic void setValue(Object val) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.Property
setValue in class Node.Propertyval - the new value of the property
InvocationTargetException - an exception during invocation
IllegalArgumentException - wrong argument
IllegalAccessException - cannot access the called methodpublic boolean canIndexedRead()
Node.IndexedProperty
canIndexedRead in class Node.IndexedPropertytrue if sopublic Object getIndexedValue(int index) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Node.IndexedProperty
getIndexedValue in class Node.IndexedPropertyindex - the index
InvocationTargetException - an exception during invocation
IllegalArgumentException - wrong argument
IllegalAccessException - cannot access the called methodpublic boolean canIndexedWrite()
Node.IndexedProperty
canIndexedWrite in class Node.IndexedPropertytrue if so
public void setIndexedValue(int index,
Object val)
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
Node.IndexedProperty
setIndexedValue in class Node.IndexedPropertyindex - the indexval - the value to set
IllegalArgumentException - wrong argument
IllegalAccessException - cannot access the called method
InvocationTargetException - an exception during invocation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||