This class represents the state of a FormComponent including all of its Java
bean components and nested forms. A FormMemento can be safely serialized to
an i/o stream. You can get the state of a FormComponent by calling:
com.jeta.forms.gui.form.FormComponent.getState Likewise, you can set
the state of a FormComponent by calling:
com.jeta.forms.gui.form.FormComponent.setState Once you have a
FormMemento object, you can create and initialize multiple FormComponents
from the memento.
// assume you have a given form component
FormComponent fc1 = ...;
FormMemento memento = fc1.getState();
FormComponent fc2 = new FormComponent();
fc2.setState( memento );
FormComponent fc3 = new FormComponent();
fc3.setState( memento );
// fc2 and fc3 are copies of fc1
Adds a child component's state to the list of states owned by this
memento.
Parameters: memento - the state of a Java Bean (BeanComponent) or nested form thatis contained by this form.
Return an encoded string of column specs for this form. Each column spec
is separated by a comma.
the encoded ColumnSpecs used by the FormLayout for this form.
Returns properties memento for this form. The PropertiesMemento stores
the Java Bean properties and custom properties for a component.
the properties memento to associated with this form.
Returns the relative path where this form is located. This is the same as
the package that contains the form.
the relative path where this form is located.
Sets the properties memento for this form. The PropertiesMemento stores
standard Java bean properties and custom properties.
Parameters: pm - the properties memento to associated with this form.
Sets the relative path where this form is located. This is the same as
the package that contains the form.
Parameters: path - the relative path to set for the form.