org.openide.nodes
Class IndexedPropertySupport
java.lang.Object
|
+--java.beans.FeatureDescriptor
|
+--org.openide.nodes.Node.Property
|
+--org.openide.nodes.Node.IndexedProperty
|
+--org.openide.nodes.IndexedPropertySupport
- public class IndexedPropertySupport
- extends Node.IndexedProperty
Support for indexed properties.
- See Also:
Node
| Methods inherited from class java.beans.FeatureDescriptor |
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setHidden, setPreferred, setValue |
instance
protected Object instance
- Instance of the bean.
IndexedPropertySupport
public IndexedPropertySupport(Object instance,
Class valueType,
Class elementType,
Method getter,
Method setter,
Method indexedGetter,
Method indexedSetter)
- Constructor.
- Parameters:
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
setDisplayName
public final void setDisplayName(String s)
- Overrides:
setDisplayName in class FeatureDescriptor
setName
public final void setName(String s)
- Overrides:
setName in class FeatureDescriptor
setShortDescription
public final void setShortDescription(String s)
- Overrides:
setShortDescription in class FeatureDescriptor
canRead
public boolean canRead()
- Description copied from class:
Node.Property
- Test whether the property is readable.
- Overrides:
canRead in class Node.Property
- Following copied from class:
org.openide.nodes.Node.Property
- Returns:
true if it is
getValue
public Object getValue()
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Description copied from class:
Node.Property
- Get the value.
- Overrides:
getValue in class Node.Property
- Following copied from class:
org.openide.nodes.Node.Property
- Returns:
- the value of the property
- Throws:
IllegalAccessException - cannot access the called methodInvocationTargetException - an exception during invocation
canWrite
public boolean canWrite()
- Description copied from class:
Node.Property
- Test whether the property is writable.
- Overrides:
canWrite in class Node.Property
- Following copied from class:
org.openide.nodes.Node.Property
- Returns:
true if the read of the value is supported
setValue
public void setValue(Object val)
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Description copied from class:
Node.Property
- Set the value.
- Overrides:
setValue in class Node.Property
- Following copied from class:
org.openide.nodes.Node.Property
- Parameters:
val - the new value of the property- Throws:
IllegalAccessException - cannot access the called methodIllegalArgumentException - wrong argumentInvocationTargetException - an exception during invocation
canIndexedRead
public boolean canIndexedRead()
- Description copied from class:
Node.IndexedProperty
- Test whether the property is readable by index.
- Overrides:
canIndexedRead in class Node.IndexedProperty
- Following copied from class:
org.openide.nodes.Node.IndexedProperty
- Returns:
true if so
getIndexedValue
public Object getIndexedValue(int index)
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Description copied from class:
Node.IndexedProperty
- Get the value of the property at an index.
- Overrides:
getIndexedValue in class Node.IndexedProperty
- Following copied from class:
org.openide.nodes.Node.IndexedProperty
- 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 boolean canIndexedWrite()
- Description copied from class:
Node.IndexedProperty
- Test whether the property is writable by index.
- Overrides:
canIndexedWrite in class Node.IndexedProperty
- Following copied from class:
org.openide.nodes.Node.IndexedProperty
- Returns:
true if so
setIndexedValue
public void setIndexedValue(int index,
Object val)
throws IllegalAccessException,
IllegalArgumentException,
InvocationTargetException
- Description copied from class:
Node.IndexedProperty
- Set the value of the property at an index.
- Overrides:
setIndexedValue in class Node.IndexedProperty
- Following copied from class:
org.openide.nodes.Node.IndexedProperty
- Parameters:
indx - the indexval - the value to set- Throws:
IllegalAccessException - cannot access the called methodIllegalArgumentException - wrong argumentInvocationTargetException - an exception during invocation
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.