Class FormBindingGroup

  • All Implemented Interfaces:
    FormSelectable

    public class FormBindingGroup
    extends FormObject
    implements FormSelectable
    A form binding represents a group of bindings in the form model. Usually a BindingGroup.
    Since:
    5.0
    • Constructor Detail

      • FormBindingGroup

        public FormBindingGroup​(Class<?> bindingGroupClass)
    • Method Detail

      • clone

        public Object clone()
        Clones this form binding group.
        Overrides:
        clone in class Object
      • getBindingGroupClass

        public Class<?> getBindingGroupClass()
        Returns the binding group class.
      • getName

        public String getName()
        Returns the name of this binding group.
      • getBindingCount

        public int getBindingCount()
        Returns the number of form bindings in this form binding group.
      • getBinding

        public FormBinding getBinding​(int index)
        Returns the form binding at index.
      • getBindings

        public FormBinding[] getBindings()
        Returns all form bindings in this form binding group.
      • getBindingIndex

        public int getBindingIndex​(FormBinding binding)
        Returns the index of binding in this binding group; or -1 if the binding is not a child of this binding group.
      • addBinding

        public void addBinding​(FormBinding binding)
        Adds a form binding to the end of this form binding group.
      • addBinding

        public void addBinding​(FormBinding binding,
                               int index)
        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

        public void removeBinding​(FormBinding binding)
        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

        public FormRoot getRoot()
        Returns the form root of this form binding group.
      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class FormObject