| |
|
| java.lang.Object com.jeta.forms.store.AbstractJETAPersistable com.jeta.forms.store.memento.FormGroupSet
FormGroupSet | public class FormGroupSet extends AbstractJETAPersistable (Code) | | Defines a set of FormGroup objects that define the column or row groups for a
given form. For a given form, you should have two FormGroupSet objects: one
for the row groups and one for the column groups.
author: Jeff Tassin |
Constructor Summary | |
public | FormGroupSet() Creates an unitialized FormGroupSet instance. |
Method Summary | |
public void | assignToGroup(Integer groupKey, int index) Assigns a row /column to a group with the given key. | public FormGroup | getGroup(int index) Returns the group that the given column or row is assigned to.
Parameters: index - the 1-based row or column the group that the given column/row is assigned to. | public Integer | getGroupId(int index) Returns the group id that the given row or column is assigned to.
Parameters: index - the 1-based row or column. | public void | read(JETAObjectInput in) | public void | removeAssignment(int index) Removes a row or column from the group it is assigned to. | public int[][] | toArray() Returns this group definition as an array that is suitable for the
FormLayout.
this group definition as an array that is suitable for theFormLayout. | public void | write(JETAObjectOutput out) |
VERSION | final public static int VERSION(Code) | | The version for this class.
|
serialVersionUID | final static long serialVersionUID(Code) | | |
FormGroupSet | public FormGroupSet()(Code) | | Creates an unitialized FormGroupSet instance.
|
assignToGroup | public void assignToGroup(Integer groupKey, int index)(Code) | | Assigns a row /column to a group with the given key. If no group exists,
then a new group is created.
Parameters: groupKey - the key number for the group. This is the group index. Parameters: index - the 1-based row or column. |
getGroup | public FormGroup getGroup(int index)(Code) | | Returns the group that the given column or row is assigned to.
Parameters: index - the 1-based row or column the group that the given column/row is assigned to. Null isreturned if no group is found. |
getGroupId | public Integer getGroupId(int index)(Code) | | Returns the group id that the given row or column is assigned to.
Parameters: index - the 1-based row or column. the group that the given column/row is assigned to. Null isreturned if no group is found. |
removeAssignment | public void removeAssignment(int index)(Code) | | Removes a row or column from the group it is assigned to.
Parameters: index - the 1-based row or column |
toArray | public int[][] toArray()(Code) | | Returns this group definition as an array that is suitable for the
FormLayout.
this group definition as an array that is suitable for theFormLayout. See:com.jgoodies.forms.layout.FormLayout.setColumnGroups See:com.jgoodies.forms.layout.FormLayout.setRowGroups |
|
|
|