public class IndexedPropertySupport<T,E> extends Node.IndexedProperty<T,E>
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.Object |
instance |
Instance of the bean.
|
| Constructor | Description |
|---|---|
IndexedPropertySupport(java.lang.Object instance,
java.lang.Class<T> valueType,
java.lang.Class<E> elementType,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
java.lang.reflect.Method indexedGetter,
java.lang.reflect.Method indexedSetter) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
E |
getIndexedValue(int index) |
Get the value of the property at an index.
|
T |
getValue() |
Get the value.
|
void |
setDisplayName(java.lang.String s) |
|
void |
setIndexedValue(int index,
E val) |
Set the value of the property at an index.
|
void |
setName(java.lang.String s) |
|
void |
setShortDescription(java.lang.String s) |
|
void |
setValue(T val) |
Set the value.
|
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setExpert, setHidden, setPreferred, setValue, toStringequals, getElementType, getIndexedPropertyEditor, hashCodegetHtmlDisplayName, getPropertyEditor, getValueType, isDefaultValue, restoreDefaultValue, supportsDefaultValuepublic IndexedPropertySupport(java.lang.Object instance,
java.lang.Class<T> valueType,
java.lang.Class<E> elementType,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
java.lang.reflect.Method indexedGetter,
java.lang.reflect.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 elementpublic final void setDisplayName(java.lang.String s)
setDisplayName in class java.beans.FeatureDescriptorpublic final void setName(java.lang.String s)
setName in class java.beans.FeatureDescriptorpublic final void setShortDescription(java.lang.String s)
setShortDescription in class java.beans.FeatureDescriptorpublic boolean canRead()
Node.PropertycanRead in class Node.Property<T>true if it ispublic T getValue() throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
Node.PropertygetValue in class Node.Property<T>java.lang.IllegalAccessException - cannot access the called methodjava.lang.reflect.InvocationTargetException - an exception during invocationjava.lang.IllegalArgumentExceptionpublic boolean canWrite()
Node.PropertycanWrite in class Node.Property<T>true if the read of the value is supportedpublic void setValue(T val) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
Node.PropertysetValue in class Node.Property<T>val - the new value of the propertyjava.lang.IllegalAccessException - cannot access the called methodjava.lang.IllegalArgumentException - wrong argumentjava.lang.reflect.InvocationTargetException - an exception during invocationpublic boolean canIndexedRead()
Node.IndexedPropertycanIndexedRead in class Node.IndexedProperty<T,E>true if sopublic E getIndexedValue(int index) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
Node.IndexedPropertygetIndexedValue in class Node.IndexedProperty<T,E>index - the indexjava.lang.IllegalAccessException - cannot access the called methodjava.lang.IllegalArgumentException - wrong argumentjava.lang.reflect.InvocationTargetException - an exception during invocationpublic boolean canIndexedWrite()
Node.IndexedPropertycanIndexedWrite in class Node.IndexedProperty<T,E>true if sopublic void setIndexedValue(int index,
E val)
throws java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
Node.IndexedPropertysetIndexedValue in class Node.IndexedProperty<T,E>index - the indexval - the value to setjava.lang.IllegalAccessException - cannot access the called methodjava.lang.IllegalArgumentException - wrong argumentjava.lang.reflect.InvocationTargetException - an exception during invocationBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.