| |
|
| java.lang.Object com.jeta.forms.store.AbstractJETAPersistable com.jeta.forms.store.memento.PropertiesMemento
PropertiesMemento | public class PropertiesMemento extends AbstractJETAPersistable (Code) | | This class is used to store properties for a Java Bean. This class stores
both standard and custom properties.
author: Jeff Tassin |
Constructor Summary | |
public | PropertiesMemento() Creates an uninitialized PropertiesMemento instance. | public | PropertiesMemento(String className) Creates a PropertiesMemento instance with the given Java
bean class name. |
VERSION | final public static int VERSION(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
PropertiesMemento | public PropertiesMemento()(Code) | | Creates an uninitialized PropertiesMemento instance.
|
PropertiesMemento | public PropertiesMemento(String className)(Code) | | Creates a PropertiesMemento instance with the given Java
bean class name.
Parameters: className - the name of the Java bean class associated with this memento. |
addProperty | public void addProperty(String name, Serializable value)(Code) | | Adds a property value to this memento.
Parameters: name - the name of the property to add to this memento. Parameters: value - the property value. |
containsProperty | public boolean containsProperty(String propName)(Code) | | Return true if this memento contains a value for the given property name.
Parameters: propName - the name of the property true if this object contains a value for the property with thegiven name. |
getBeanClassName | public String getBeanClassName()(Code) | | Returns the class name of the Java Bean component associated with this
memento.
the Java bean class name associated with this memento. |
getComponentName | public String getComponentName()(Code) | | Return the value associated with the standard property name. If
the name property is not contained by this memento, null is
returned.
the value of the name property. |
getPropertyNames | public Collection getPropertyNames()(Code) | | Return the names of the properties contained by this memento.
|
getPropertyValue | public Object getPropertyValue(String propName)(Code) | | Returns the value for the given property
Parameters: propName - the name of the property the value for the property. Null if the property is not containedby this memento. |
print | public void print()(Code) | | Prints this object to the console
|
setBeanClassName | public void setBeanClassName(String cname)(Code) | | Sets the class name of the Java Bean associated with this memento.
Parameters: cname - the class name of the Java Bean to set. |
|
|
|