|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFormGroup
This interface defines a container that can hold several form elements. For example a label and it's input field or a group of radio buttons
| Method Summary | |
|---|---|
void |
add(IFormElement element)
Add an element to the group |
java.util.List<IFormElement> |
elements()
Retrieve a list of all elements of this group |
IFormGroup |
findGroup(java.lang.String groupName)
Retrieve the group with the name groupName. |
java.util.List<IFormElement> |
flatten()
Flatten all elements of the group into a list |
java.lang.String |
getName()
Retrieve the name of the group |
int |
internHashCode()
This method returns a hashCode that does not recurse through the elements since this may cause endless ricurrsion. |
void |
printTree(int level)
Print the tree of a group element |
void |
setName(java.lang.String name)
Set the name of the group |
| Methods inherited from interface ch.sahits.model.gui.IFormElement |
|---|
getId, getTooltip, setId, setTooltip |
| Method Detail |
|---|
java.util.List<IFormElement> elements()
IFormElementsvoid add(IFormElement element)
element - to be addedjava.lang.String getName()
getName in interface IFormElementvoid setName(java.lang.String name)
setName in interface IFormElementname - of the groupIFormGroup findGroup(java.lang.String groupName)
groupName.
The group is searched in the elements of the group.
groupName - name of the group
IFormGroup element or null if nothing is foundvoid printTree(int level)
level - indention level is the depth of the nodejava.util.List<IFormElement> flatten()
int internHashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||