org.das2.beans.BeansUtil

Utilities for JavaBeans conventions, allowing custom editors to be used to edit JavaBeans with set/get properties.


asAccessLevelBeanInfo

asAccessLevelBeanInfo( java.beans.BeanInfo beanInfo, java.lang.Class beanClass ) → AccessLevelBeanInfo

Returns an AccessLevelBeanInfo for the BeanInfo class, implementing the logic of how to handle implicit properties.

Returns:

org.das2.beans.AccessLevelBeanInfo

search for examples view on GitHub view source


findEditor

findEditor( java.lang.Class propertyClass ) → PropertyEditor

Returns:

java.beans.PropertyEditor

search for examples view on GitHub view source


getBeanInfo

getBeanInfo( java.lang.Class c ) → BeanInfo

Returns:

java.beans.BeanInfo

search for examples view on GitHub view source


getEditor

getEditor( java.beans.PropertyDescriptor pd ) → PropertyEditor

One-stop place to get the editor for the given propertyDescriptor.

Parameters

pd - the property descriptor

Returns:

the editor

search for examples view on GitHub view source


getPropertyDescriptors

getPropertyDescriptors( java.lang.Class c ) → PropertyDescriptor

Use reflection to get a list of all the property names for the class. The properties are returned in the order specified, and put inherited properties at the end of the list. Implement the include/exclude logic. This will not return write-only descriptors!!!

Returns:

java.beans.PropertyDescriptor[]

search for examples view on GitHub view source


getPropertyNames

getPropertyNames( java.beans.PropertyDescriptor[] propertyList ) → String

Returns:

java.lang.String[]

search for examples view on GitHub view source


registerEditor

registerEditor( java.lang.Class beanClass, java.lang.Class editorClass ) → void

see BeanBindingDemo2.java

Parameters

beanClass - the bean class, e.g. Datum.class
editorClass - the editor class, e.g. DatumEditor.class

Returns:

void (returns nothing)

search for examples view on GitHub view source