| |
|
| java.lang.Object com.jeta.forms.gui.beans.BeanProperties
BeanProperties | public class BeanProperties (Code) | | Used for managing a set of JETAProperties. A BeanProperties is only used
during instantiation/initialization of a Java Bean (or more specifically its
JETABean container.) It is passed to a BeanFactory during the instantiation
of the Java Bean. This allows specialized factories to create JETABeans with
customized properties.
author: Jeff Tassin |
Method Summary | |
public DynamicBeanInfo | getBeanInfo() Returns the BeanInfo associated with these properties. | public Collection | getPropertyValues() Returns a collection of JETAProperty objects that define customized
properties to be associated with a Java Bean. | public void | register(JETAProperty prop) Registers a custom property to be associated with a Java Bean. | public void | removeProperty(String propName) Removes the property with the given name. | public void | setPreferred(String propName, boolean pref) Sets the preferred flag for the property with the given name. |
BeanProperties | public BeanProperties(DynamicBeanInfo beaninfo)(Code) | | Creates a BeanProperties instance with the specified
DynamicBeanInfo object.
Parameters: beaninfo - the beaninfo (PropertyDescriptors) associated with theseproperties |
getBeanInfo | public DynamicBeanInfo getBeanInfo()(Code) | | Returns the BeanInfo associated with these properties.
the underyling BeanInfo |
getPropertyValues | public Collection getPropertyValues()(Code) | | Returns a collection of JETAProperty objects that define customized
properties to be associated with a Java Bean.
a collection of JETAProperty values. |
register | public void register(JETAProperty prop)(Code) | | Registers a custom property to be associated with a Java Bean.
Parameters: prop - the custom property to add. |
removeProperty | public void removeProperty(String propName)(Code) | | Removes the property with the given name.
Parameters: propName - the name of the property to remove. |
setPreferred | public void setPreferred(String propName, boolean pref)(Code) | | Sets the preferred flag for the property with the given name.
Parameters: propName - the name of the property to set. Parameters: pref - true if the property should be set to preferred. |
|
|
|