| java.lang.Object com.jeta.forms.store.AbstractJETAPersistable com.jeta.forms.store.properties.JETAProperty
All known Subclasses: com.jeta.forms.store.properties.ListItemProperty, com.jeta.forms.store.properties.LineProperty, com.jeta.forms.store.properties.ColorProperty, com.jeta.forms.store.properties.TransformOptionsProperty, com.jeta.forms.store.properties.effects.GradientProperty, com.jeta.forms.store.properties.IconProperty, com.jeta.forms.store.properties.TabProperty, com.jeta.forms.store.properties.effects.RadialGradientProperty, com.jeta.forms.store.properties.effects.TextureProperty, com.jeta.forms.store.properties.ItemsProperty, com.jeta.forms.store.properties.TabbedPaneProperties, com.jeta.forms.store.properties.effects.SolidProperty, com.jeta.forms.store.properties.ButtonGroupProperty, com.jeta.forms.store.properties.CompoundLineProperty, com.jeta.forms.store.properties.ScrollBarsProperty, com.jeta.forms.store.properties.effects.PaintProperty, com.jeta.forms.store.properties.BorderProperty,
JETAProperty | abstract public class JETAProperty extends AbstractJETAPersistable (Code) | | A JETAProperty is the base class for all custom
properties for a Java bean. A custom property does more than simply hold a
value. They allow a JETABean to add additional properties to a Java bean that
are not defined in the BeanInfo. JETAProperties can also have custom logic
for setting the value on a bean as well as versionable serialization. For
example, some Swing components such as JTree and JList are generally
contained in a JScrollPane. So a scrollable custom property was
created that allows the user to simply check or uncheck the scrollable
behavior for these components in the designer. This is much easier than
having to create a JScrollPane instance on a form and manually adding a child
component. The scrollable property has the logic necessary to create the
JScrollPane at runtime and add the underlying Java bean.
The following methods are invoked when a JETAProperty value is set on a bean:
1. setValue this updates this property with a new value if necessary. The
property has the option of updating the bean here as well. 2. updateBean If
needed, updates the associated bean with current property values. This is
needed during initialization. Not all properties need to implement this
method. See:
com.jeta.forms.gui.beans.JETABean author: Jeff Tassin |
Method Summary | |
public boolean | equals(Object object) Object equals implementation. | public String | getName() Returns the name of this property. | protected static boolean | isCollectionsEqual(Collection c1, Collection c2) Returns true if both collections have equal size and each object in the
collection equals the corresponding object in the same position in the
other collection. | protected static boolean | isEqual(Object o1, Object o2) Tests if two objects are equal. | public boolean | isPreferred() Returns the flag that indicates if this property is preferred. | public boolean | isTransient() Returns true if this property is not serializable. | public void | postInitialize(FormPanel panel, JETABean jbean) PostInitialize is called once after all components in a form have been
instantiated at runtime (not design time). | public void | read(JETAObjectInput in) | public void | setPreferred(boolean pref) Sets the flag that indicates if this property is preferred. | abstract public void | setValue(Object obj) Sets this property to that of another property. | abstract public void | updateBean(JETABean jbean) Updates the specified bean with the current values of this property. | public void | write(JETAObjectOutput out) |
VERSION | final public static int VERSION(Code) | | The current version number of this class
|
serialVersionUID | final static long serialVersionUID(Code) | | |
JETAProperty | public JETAProperty()(Code) | | Creates an unitialized JETAProperty instance.
|
JETAProperty | public JETAProperty(String name)(Code) | | Creates a JETAProperty with specified name
Parameters: name - the name for this property |
equals | public boolean equals(Object object)(Code) | | Object equals implementation.
|
getName | public String getName()(Code) | | Returns the name of this property.
the name of this property |
isCollectionsEqual | protected static boolean isCollectionsEqual(Collection c1, Collection c2)(Code) | | Returns true if both collections have equal size and each object in the
collection equals the corresponding object in the same position in the
other collection. If both collections are null, true is returned.
|
isEqual | protected static boolean isEqual(Object o1, Object o2)(Code) | | Tests if two objects are equal. If both are null, true is returned.
|
isPreferred | public boolean isPreferred()(Code) | | Returns the flag that indicates if this property is preferred. A
preferred property is shown in the Basic tab in the properties panel in
the designer.
the flag that indicates if this property is preferred |
isTransient | public boolean isTransient()(Code) | | Returns true if this property is not serializable.
true if this object is not serializable |
postInitialize | public void postInitialize(FormPanel panel, JETABean jbean)(Code) | | PostInitialize is called once after all components in a form have been
instantiated at runtime (not design time). This gives each property a
chance to do some last minute initializations that might depend on the
top level parent. An example of this is button groups for radio buttons.
Button groups are global to the top-level parent and not to the nested
form that might contain the radio button.
Parameters: panel - the top level parent that contains the form. Parameters: jbean - the JETABean associated with this property |
setPreferred | public void setPreferred(boolean pref)(Code) | | Sets the flag that indicates if this property is preferred. A preferred
property is shown in the Basic tab in the properties panel in the
designer.
Parameters: pref - the flag that indicates if this property is preferred |
setValue | abstract public void setValue(Object obj)(Code) | | Sets this property to that of another property.
|
updateBean | abstract public void updateBean(JETABean jbean)(Code) | | Updates the specified bean with the current values of this property.
Parameters: jbean - the jetabean to update. |
|
|