JavaGantt 2011.1 API

eu.beesoft.gaia.swing.builder
Class ContainerBuilder<T extends java.awt.Container>

java.lang.Object
  extended by eu.beesoft.gaia.util.ObjectBuilder<T>
      extended by eu.beesoft.gaia.swing.builder.SwingBuilder<T>
          extended by eu.beesoft.gaia.swing.builder.ComponentBuilder<T>
              extended by eu.beesoft.gaia.swing.builder.ContainerBuilder<T>
Type Parameters:
T - class of object created by this builder
Direct Known Subclasses:
AbstractWindowBuilder, FormBuilder, MenuBarBuilder, PanelBuilder, ScrollPaneBuilder, SectionBuilder, SplitPaneBuilder, TabbedPaneBuilder, ToolBarBuilder

public abstract class ContainerBuilder<T extends java.awt.Container>
extends ComponentBuilder<T>

Abstract superclass of all Swing containers. Supports this property:


Constructor Summary
ContainerBuilder()
           
 
Method Summary
protected  void addSwingChild(ObjectBuilder<?> builder)
          Adds an object (component) of the given builder to the container created by this builder.
protected  java.lang.Object findBoundData(java.lang.String binding, SwingBuilder<?> caller)
          Overriden to redirect this method to the children of this builder.
protected  java.lang.Object getBoundValueFromComponent(java.util.Set<java.lang.Object> changedObjects, java.lang.String fullBinding)
          Forces each child to SwingBuilder.getBoundData(Set, String) and then returns data set to this instance by method setBoundValueToComponent(Object, String).
protected  void initLayout(java.lang.String value)
           
protected  boolean isBindable()
          Overriden to always return true.
protected  void setBoundValueToComponent(java.lang.Object data, java.lang.String fullBinding)
          For given data invokes SwingBuilder.setBoundData(Object, String) method on each bindable child.}
 
Methods inherited from class eu.beesoft.gaia.swing.builder.ComponentBuilder
addChild, convertValue, createBoundData, getLayoutConstraints, initBackground, initBorder, initEnabled, initFont, initForeground, initId, initLayoutConstraint, initName, initOpaque, initSize, initToolTipText, initVisible, parseColor, parseIcon, setLayoutConstraints
 
Methods inherited from class eu.beesoft.gaia.swing.builder.SwingBuilder
getBindableChildren, getBinding, getBoundData, getPropertyFromResourceBundle, getValueFromBoundObject, initBinding, parseDimension, setBoundData, setValueToBoundObject
 
Methods inherited from class eu.beesoft.gaia.util.ObjectBuilder
createObject, createObject, getFactory, getChildren, getId, getObject, getParent, getProperties, getProperty, initClass, initObjectProperties, initObjectProperty, parseBoolean, parseClass, parseConstant, parseConstructor, parseDouble, parseInstance, parseInstance, parseInt, parseInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerBuilder

public ContainerBuilder()
Method Detail

initLayout

protected void initLayout(java.lang.String value)

addSwingChild

protected void addSwingChild(ObjectBuilder<?> builder)
Adds an object (component) of the given builder to the container created by this builder. It is looking for the layout constraints to properly add the component.

Overrides:
addSwingChild in class ComponentBuilder<T extends java.awt.Container>
Parameters:
builder - - a builder of the component to add

isBindable

protected boolean isBindable()
Overriden to always return true.

Overrides:
isBindable in class SwingBuilder<T extends java.awt.Container>
Returns:
true

setBoundValueToComponent

protected void setBoundValueToComponent(java.lang.Object data,
                                        java.lang.String fullBinding)
For given data invokes SwingBuilder.setBoundData(Object, String) method on each bindable child.}

Overrides:
setBoundValueToComponent in class SwingBuilder<T extends java.awt.Container>
Parameters:
data - - data to set
fullBinding - - the binding to given data from root form object

getBoundValueFromComponent

protected java.lang.Object getBoundValueFromComponent(java.util.Set<java.lang.Object> changedObjects,
                                                      java.lang.String fullBinding)
Forces each child to SwingBuilder.getBoundData(Set, String) and then returns data set to this instance by method setBoundValueToComponent(Object, String).

Overrides:
getBoundValueFromComponent in class SwingBuilder<T extends java.awt.Container>
Parameters:
changedObjects - - collection of changed data objects
fullBinding - - binding to component's value from root form object
Returns:
the object that was set by setBoundValueToComponent(Object, String) method

findBoundData

protected java.lang.Object findBoundData(java.lang.String binding,
                                         SwingBuilder<?> caller)
Overriden to redirect this method to the children of this builder.

Overrides:
findBoundData in class ComponentBuilder<T extends java.awt.Container>
Parameters:
binding - - binding for finding of object
caller - - instance of SwingBuilder which invoked this method
Returns:
object for given binding

JavaGantt 2011.1 API