JFormDesigner 5.0.4 Runtime API

com.jformdesigner.model
Class FormBindingGroup

java.lang.Object
  extended by com.jformdesigner.model.FormObject
      extended by com.jformdesigner.model.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 org.jdesktop.beansbinding.BindingGroup.

Since:
5.0

Field Summary
static java.lang.String PROP_BOUND
           
static java.lang.String PROP_NAME
           
 
Fields inherited from class com.jformdesigner.model.FormObject
NULL_VALUE
 
Constructor Summary
FormBindingGroup(java.lang.Class<?> bindingGroupClass)
           
 
Method Summary
 boolean accept(FormBindingVisitor visitor)
          Accepts the given visitor.
 void addBinding(FormBinding binding)
          Adds a form binding to the end of this form binding group.
 void addBinding(FormBinding binding, int index)
          Adds a form binding to this form binding group at the specified position.
 java.lang.Object clone()
          Clones this form binding group.
 FormBinding getBinding(int index)
          Returns the form binding at index.
 int getBindingCount()
          Returns the number of form bindings in this form binding group.
 java.lang.Class<?> getBindingGroupClass()
          Returns the binding group class.
 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.
 FormBinding[] getBindings()
          Returns all form bindings in this form binding group.
 java.lang.String getName()
          Returns the name of this binding group.
 FormRoot getRoot()
          Returns the form root of this form binding group.
 void removeBinding(FormBinding binding)
          Removes the specified form binding from this form binding group.
 void removeBinding(int index)
          Removes the form binding at the specified index from this form binding group.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class com.jformdesigner.model.FormObject
getProperties, getProperty, getProperty, getPropertyBoolean, getPropertyBoolean, getPropertyCount, getPropertyDouble, getPropertyDouble, getPropertyInt, getPropertyInt, getPropertyNames, getPropertyString, getPropertyString, getReferenceCount, properties, propertyNames, setProperty, setProperty, setProperty, setPropertyBoolean, setPropertyBoolean, setPropertyDouble, setPropertyDouble, setPropertyInt, setPropertyInt, setPropertyString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_NAME

public static final java.lang.String PROP_NAME
See Also:
Constant Field Values

PROP_BOUND

public static final java.lang.String PROP_BOUND
See Also:
Constant Field Values
Constructor Detail

FormBindingGroup

public FormBindingGroup(java.lang.Class<?> bindingGroupClass)
Method Detail

clone

public java.lang.Object clone()
Clones this form binding group.

Overrides:
clone in class java.lang.Object

getBindingGroupClass

public java.lang.Class<?> getBindingGroupClass()
Returns the binding group class.


getName

public java.lang.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.


accept

public boolean accept(FormBindingVisitor visitor)
Accepts the given visitor. The visitor's FormBindingVisitor.visit(com.jformdesigner.model.FormBinding) is called with all form bindings of this form binding group.

Parameters:
visitor - The visitor.
Returns:
The result of FormBindingVisitor.visit(com.jformdesigner.model.FormBinding).

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class FormObject

JFormDesigner 5.0.4 Runtime API

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.