All Packages Class Hierarchy This Package Previous Next Index
Class ORG.opengroup.beans.PropertyEditorAccess
java.lang.Object
|
+----ORG.opengroup.beans.PropertyEditorAccess
- public class PropertyEditorAccess
- extends Object
Determines if a property is Read/Write and has an associated property editor.
Supports indexed properties.
PropertyEditorAccess(Object)
- Select the object to be edited.
getBeanInfo()
- Returns the BeanInfo of the object to be edited.
getIndexedPropertyEditor()
- Returns the Indexed Property Editor of the selected property, or null.
getPropertyDescriptor()
- Returns the Property Descriptor of the selected property, or null.
getPropertyDescriptors()
- Returns the Property Descriptors of the object to be edited.
getPropertyEditor()
- Returns the Property Editor of the selected property, or null.
getValue()
- Get the current value of the property as a text string.
getValue(int)
- Get the current value of the indexed property as a text string.
selectProperty(int)
- Select a property on the object.
selectProperty(String)
- Select a property on the object.
setValue(int, String)
- Set the current value of the indexed property as a text string.
setValue(String)
- Set the current value of the property as a text string.
PropertyEditorAccess
public PropertyEditorAccess(Object v) throws IntrospectionException, ClassNotFoundException
- Select the object to be edited.
- Throws:
IntrospectionException
- unable to access BeanInfo.
getBeanInfo
public BeanInfo getBeanInfo()
- Returns the BeanInfo of the object to be edited.
getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()
- Returns the Property Descriptors of the object to be edited.
selectProperty
public boolean selectProperty(String v)
- Select a property on the object.
Returns true if the property has an editor.
selectProperty
public boolean selectProperty(int ndx)
- Select a property on the object.
Returns true if the property has an editor.
getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor()
- Returns the Property Descriptor of the selected property, or null.
getPropertyEditor
public PropertyEditor getPropertyEditor()
- Returns the Property Editor of the selected property, or null.
getIndexedPropertyEditor
public PropertyEditor getIndexedPropertyEditor()
- Returns the Indexed Property Editor of the selected property, or null.
getValue
public String getValue() throws IllegalAccessException, InvocationTargetException
- Get the current value of the property as a text string.
If null is returned, then the property can not be edited as a string.
setValue
public void setValue(String v) throws IllegalAccessException, InvocationTargetException
- Set the current value of the property as a text string.
getValue
public String getValue(int n) throws IllegalAccessException, InvocationTargetException, ArrayIndexOutOfBoundsException
- Get the current value of the indexed property as a text string.
If null is returned, then the property can not be edited as a string.
setValue
public void setValue(int n,
String v) throws IllegalAccessException, InvocationTargetException, ArrayIndexOutOfBoundsException
- Set the current value of the indexed property as a text string.
All Packages Class Hierarchy This Package Previous Next Index