| com.jeta.forms.store.properties.JETAProperty com.jeta.forms.store.properties.TransformOptionsProperty
TransformOptionsProperty | public class TransformOptionsProperty extends JETAProperty implements TransformProperty(Code) | | This class is used to manage a set if integer options for a bean property -
for example, the options to set the horizontal alignment for the text in a
JLabel. In the designer we don't want to display integer values to the user,
instead we provide table of String descriptions that map to an associated
integer value. The user is shown the strings in a combo. When the user makes
a selection, the corresponding integer value is set in the bean.
author: Jeff Tassin |
Constructor Summary | |
public | TransformOptionsProperty() | public | TransformOptionsProperty(String propName, String getMethod, String setMethod, Object[][] options) Creates a TransformOptionsProperty with the specified
property name and methods.
Parameters: propName - the name of the property associated with this transform. Parameters: getMethod - the name of the bean method to get the property value Parameters: setMethdo - the name of the bean method to set the property value Parameters: options - an Nx2 array of options for this transform. |
VERSION | final public static int VERSION(Code) | | The version of this class
|
serialVersionUID | final static long serialVersionUID(Code) | | |
TransformOptionsProperty | public TransformOptionsProperty()(Code) | | Creates an uninitialized TransformOptionsProperty
|
TransformOptionsProperty | public TransformOptionsProperty(String propName, String getMethod, String setMethod, Object[][] options)(Code) | | Creates a TransformOptionsProperty with the specified
property name and methods.
Parameters: propName - the name of the property associated with this transform. Parameters: getMethod - the name of the bean method to get the property value Parameters: setMethdo - the name of the bean method to set the property value Parameters: options - an Nx2 array of options for this transform. The first columnis the integer value for the property. The second column is ahuman readable name that will be displayed in the designerproperties table. |
equals | public boolean equals(Object obj)(Code) | | Returns true if this property equals the given object.
|
getBean | public JETABean getBean()(Code) | | Returns the JETABean associated with this property. The JETABean contains
the underlying Java bean.
the bean this property is bound to. |
getCurrentItem | public Object getCurrentItem()(Code) | | Returns the human readable string for the current property value of the
Java bean associated with this object.
the selected value |
getOptions | public Collection getOptions()(Code) | | Return a collection of human readable options (Strings) for the
associated property.
the set of options available to the user |
getPropertyValue | public int getPropertyValue()(Code) | | Returns the current property value of the Java bean associated with this
property
the current property value. |
getWriteMethod | public Method getWriteMethod()(Code) | | Returns the setter method for this property
the setter method for the property |
isTransient | public boolean isTransient()(Code) | | Returns true if this object is not serialiable.
true if this object is not serializable |
setBean | public void setBean(JETABean bean)(Code) | | Sets the bean this property is bound to. This must be called right after
initalization or de-serialization because the bean cannot get/set the
properties on the bean without a reference to it.
|
setValue | public void setValue(Object option)(Code) | | Sets this property to the specified value. If required, the value is
first transformed to an integer. The associated Java bean is updated.
|
size | public int size()(Code) | | Return the number of options in this property.
the number of options in this property |
updateBean | public void updateBean(JETABean jbean)(Code) | | Updates the given bean with the latest value of this property.
|
Fields inherited from com.jeta.forms.store.properties.JETAProperty | final public static int VERSION(Code)(Java Doc) final static long serialVersionUID(Code)(Java Doc)
|
|
|