Class FormBindingGroup
java.lang.Object
com.jformdesigner.model.FormObject
com.jformdesigner.model.FormBindingGroup
- All Implemented Interfaces:
FormSelectable
A form binding represents a group of bindings in the form model.
Usually a
BindingGroup.- Since:
- 5.0
-
Field Summary
FieldsFields inherited from class FormObject
NULL_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(FormBindingVisitor visitor) Accepts the given visitor.voidaddBinding(FormBinding binding) Adds a form binding to the end of this form binding group.voidaddBinding(FormBinding binding, int index) Adds a form binding to this form binding group at the specified position.clone()Clones this form binding group.getBinding(int index) Returns the form binding atindex.intReturns the number of form bindings in this form binding group.Class<?> Returns the binding group class.intgetBindingIndex(FormBinding binding) Returns the index ofbindingin this binding group; or -1 if the binding is not a child of this binding group.Returns all form bindings in this form binding group.getName()Returns the name of this binding group.getRoot()Returns the form root of this form binding group.voidremoveBinding(int index) Removes the form binding at the specified index from this form binding group.voidremoveBinding(FormBinding binding) Removes the specified form binding from this form binding group.toString()Returns a string representation of the object.Methods 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
-
Field Details
-
PROP_NAME
- See Also:
-
PROP_BOUND
- See Also:
-
-
Constructor Details
-
FormBindingGroup
-
-
Method Details
-
clone
-
getBindingGroupClass
Returns the binding group class. -
getName
Returns the name of this binding group. -
getBindingCount
public int getBindingCount()Returns the number of form bindings in this form binding group. -
getBinding
Returns the form binding atindex. -
getBindings
Returns all form bindings in this form binding group. -
getBindingIndex
Returns the index ofbindingin this binding group; or -1 if the binding is not a child of this binding group. -
addBinding
Adds a form binding to the end of this form binding group. -
addBinding
Adds a form binding to this form binding group at the specified position.- Parameters:
binding- The form binding to be added.index- The position in the binding list at which to insert the binding; or -1 to insert at the end
-
removeBinding
Removes the specified form binding from this form binding group. -
removeBinding
public void removeBinding(int index) Removes the form binding at the specified index from this form binding group. -
getRoot
Returns the form root of this form binding group. -
accept
Accepts the given visitor. The visitor'sFormBindingVisitor.visit(FormBinding)is called with all form bindings of this form binding group.- Parameters:
visitor- The visitor.- Returns:
- The result of
FormBindingVisitor.visit(FormBinding).
-
toString
Returns a string representation of the object.- Overrides:
toStringin classFormObject
-