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.


Constructor Index

 o PropertyEditorAccess(Object)
Select the object to be edited.

Method Index

 o getBeanInfo()
Returns the BeanInfo of the object to be edited.
 o getIndexedPropertyEditor()
Returns the Indexed Property Editor of the selected property, or null.
 o getPropertyDescriptor()
Returns the Property Descriptor of the selected property, or null.
 o getPropertyDescriptors()
Returns the Property Descriptors of the object to be edited.
 o getPropertyEditor()
Returns the Property Editor of the selected property, or null.
 o getValue()
Get the current value of the property as a text string.
 o getValue(int)
Get the current value of the indexed property as a text string.
 o selectProperty(int)
Select a property on the object.
 o selectProperty(String)
Select a property on the object.
 o setValue(int, String)
Set the current value of the indexed property as a text string.
 o setValue(String)
Set the current value of the property as a text string.

Constructors

 o PropertyEditorAccess
public PropertyEditorAccess(Object v) throws IntrospectionException, ClassNotFoundException
Select the object to be edited.

Throws: IntrospectionException
unable to access BeanInfo.

Methods

 o getBeanInfo
public BeanInfo getBeanInfo()
Returns the BeanInfo of the object to be edited.

 o getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()
Returns the Property Descriptors of the object to be edited.

 o selectProperty
public boolean selectProperty(String v)
Select a property on the object. Returns true if the property has an editor.

 o selectProperty
public boolean selectProperty(int ndx)
Select a property on the object. Returns true if the property has an editor.

 o getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor()
Returns the Property Descriptor of the selected property, or null.

 o getPropertyEditor
public PropertyEditor getPropertyEditor()
Returns the Property Editor of the selected property, or null.

 o getIndexedPropertyEditor
public PropertyEditor getIndexedPropertyEditor()
Returns the Indexed Property Editor of the selected property, or null.

 o 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.

 o setValue
public void setValue(String v) throws IllegalAccessException, InvocationTargetException
Set the current value of the property as a text string.

 o 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.

 o 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