Class FormRoot
java.lang.Object
com.jformdesigner.model.FormObject
com.jformdesigner.model.FormComponent
com.jformdesigner.model.FormContainer
com.jformdesigner.model.FormRoot
- All Implemented Interfaces:
FormSelectable
A form root is a container for all top-level components in a form model.
-
Field Summary
Fields inherited from class FormContainer
FIELD_MENU_BARFields inherited from class FormComponent
FIELD_CLASS_NAME, FIELD_NAMEFields inherited from class FormObject
NULL_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(FormBindingVisitor visitor) Accepts the given visitor.voidaddBindingGroup(FormBindingGroup bindingGroup) Adds a form binding group to the end of this form root.voidaddBindingGroup(FormBindingGroup bindingGroup, int index) Adds a form binding group to this form root at the specified position.clone()Clones this form root.getBindingGroup(int index) Returns the form binding group atindex.getBindingGroup(String name) Returns the form binding group for the givenname.intReturns the number of form binding groups in this form root.intgetBindingGroupIndex(FormBindingGroup bindingGroup) Returns the index ofbindingGroupin this form; or -1 if the binding group is not a child of this form.Returns all form binding groups in this form root.voidremoveBindingGroup(int index) Removes the form binding group at the specified index from this form root.voidremoveBindingGroup(FormBindingGroup bindingGroup) Removes the specified form binding group from this form root.Methods inherited from class FormContainer
accept, add, add, add, add, getComponent, getComponentCount, getComponentIndex, getComponents, getLayout, getMenuBar, getMenuBarAndComponents, getMenuBarOwner, remove, remove, remove, removeAll, replace, setLayout, setMenuBarMethods inherited from class FormComponent
addEvent, addEvent, auxiliary, getAuxiliaryPropertyBoolean, getAuxiliaryPropertyInt, getAuxiliaryPropertyString, getClassName, getConstraints, getEvent, getEventCount, getEvents, getModel, getName, getParent, hasAuxiliary, removeEvent, removeEvent, setClassName, setName, toStringMethods inherited from class FormObject
equals, getClientProperty, getProperties, getProperty, getProperty, getPropertyBoolean, getPropertyBoolean, getPropertyCount, getPropertyDouble, getPropertyDouble, getPropertyInt, getPropertyInt, getPropertyNames, getPropertyString, getPropertyString, getReferenceCount, hashCode, properties, propertyNames, putClientProperty, setProperty, setProperty, setProperty, setPropertyBoolean, setPropertyBoolean, setPropertyDouble, setPropertyDouble, setPropertyInt, setPropertyInt, setPropertyString
-
Constructor Details
-
FormRoot
public FormRoot()Constructs a form root.
-
-
Method Details
-
clone
-
getBindingGroupCount
public int getBindingGroupCount()Returns the number of form binding groups in this form root.- Since:
- 5.0
-
getBindingGroup
Returns the form binding group atindex.- Since:
- 5.0
-
getBindingGroup
Returns the form binding group for the givenname.- Since:
- 5.0
-
getBindingGroups
Returns all form binding groups in this form root.- Since:
- 5.0
-
getBindingGroupIndex
Returns the index ofbindingGroupin this form; or -1 if the binding group is not a child of this form. -
addBindingGroup
Adds a form binding group to the end of this form root.- Since:
- 5.0
-
addBindingGroup
Adds a form binding group to this form root at the specified position.- Parameters:
bindingGroup- The form binding group to be added.index- The position in the binding group list at which to insert the binding group; or -1 to insert at the end- Since:
- 5.0
-
removeBindingGroup
Removes the specified form binding group from this form root.- Since:
- 5.0
-
removeBindingGroup
public void removeBindingGroup(int index) Removes the form binding group at the specified index from this form root.- Since:
- 5.0
-
accept
Accepts the given visitor. The visitor'sFormBindingVisitor.visit(FormBinding)is called with all form bindings of this form root.- Parameters:
visitor- The visitor.- Returns:
- The result of
FormBindingVisitor.visit(FormBinding). - Since:
- 5.0
-