JavaGantt 2011.1 API

eu.beesoft.gaia.swing.builder
Class TableBuilder

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<JZebraTable>
              extended by eu.beesoft.gaia.swing.builder.TableBuilder
Direct Known Subclasses:
TreeTableBuilder

public class TableBuilder
extends ComponentBuilder<JZebraTable>

Builder to produce instances of JZebraTable. It supports these properties:


Constructor Summary
TableBuilder()
           
 
Method Summary
protected  void addSwingChild(ObjectBuilder<?> child)
          This implementation processes just instances of LayoutConstraintsBuilder to remember layout constraints for component of this builder.
protected  JZebraTable createObject()
          Creates object for this builder.
protected  java.lang.Object getBoundValueFromComponent(java.util.Set<java.lang.Object> changedObjects, java.lang.String fullBinding)
          Gets data value from the component created by this builder.
 TableColumnBuilder getColumnBuilder(int index)
           
 void initAutoCreateColumnsFromModel(java.lang.String value)
           
 void initAutoResizeMode(java.lang.String value)
           
 void initCellSelectionEnabled(java.lang.String value)
           
 void initColumnSelectionAllowed(java.lang.String value)
           
 void initDragEnabled(java.lang.String value)
           
 void initGridColor(java.lang.String value)
           
 void initIntercellSpacing(java.lang.String value)
           
 void initModel(java.lang.String value)
           
 void initPreferredScrollableViewportSize(java.lang.String value)
           
 void initRowHeight(java.lang.String value)
           
 void initRowMargin(java.lang.String value)
           
 void initRowSelectionAllowed(java.lang.String value)
           
 void initSelectionBackground(java.lang.String value)
           
 void initSelectionForeground(java.lang.String value)
           
 void initSelectionMode(java.lang.String value)
           
 void initSelectionModel(java.lang.String value)
           
 void initShowGrid(java.lang.String value)
           
 void initShowHorizontalLines(java.lang.String value)
           
 void initShowVerticalLines(java.lang.String value)
           
 void initSurrendersFocusOnKeystroke(java.lang.String value)
           
 void initVisibleRowCount(java.lang.String value)
           
protected  boolean isBindable()
          Returns true if binding !
protected  void setBoundValueToComponent(java.lang.Object data, java.lang.String fullBinding)
          Sets given data value to the component created by this builder.
 
Methods inherited from class eu.beesoft.gaia.swing.builder.ComponentBuilder
addChild, convertValue, createBoundData, findBoundData, 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, 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

TableBuilder

public TableBuilder()
Method Detail

createObject

protected JZebraTable createObject()
Description copied from class: ObjectBuilder
Creates object for this builder. This method is invoked only once, when properties for builder and the builder's parent (but not children) are set.

Specified by:
createObject in class ObjectBuilder<JZebraTable>
Returns:
created object

initAutoCreateColumnsFromModel

public void initAutoCreateColumnsFromModel(java.lang.String value)

initAutoResizeMode

public void initAutoResizeMode(java.lang.String value)

initCellSelectionEnabled

public void initCellSelectionEnabled(java.lang.String value)

initColumnSelectionAllowed

public void initColumnSelectionAllowed(java.lang.String value)

initDragEnabled

public void initDragEnabled(java.lang.String value)

initGridColor

public void initGridColor(java.lang.String value)

initIntercellSpacing

public void initIntercellSpacing(java.lang.String value)

initModel

public void initModel(java.lang.String value)

initPreferredScrollableViewportSize

public void initPreferredScrollableViewportSize(java.lang.String value)

initRowHeight

public void initRowHeight(java.lang.String value)

initRowMargin

public void initRowMargin(java.lang.String value)

initRowSelectionAllowed

public void initRowSelectionAllowed(java.lang.String value)

initSelectionBackground

public void initSelectionBackground(java.lang.String value)

initSelectionForeground

public void initSelectionForeground(java.lang.String value)

initSelectionMode

public void initSelectionMode(java.lang.String value)

initSelectionModel

public void initSelectionModel(java.lang.String value)

initShowGrid

public void initShowGrid(java.lang.String value)

initShowHorizontalLines

public void initShowHorizontalLines(java.lang.String value)

initShowVerticalLines

public void initShowVerticalLines(java.lang.String value)

initSurrendersFocusOnKeystroke

public void initSurrendersFocusOnKeystroke(java.lang.String value)

initVisibleRowCount

public void initVisibleRowCount(java.lang.String value)

addSwingChild

protected void addSwingChild(ObjectBuilder<?> child)
Description copied from class: ComponentBuilder
This implementation processes just instances of LayoutConstraintsBuilder to remember layout constraints for component of this builder.

Overrides:
addSwingChild in class ComponentBuilder<JZebraTable>
Parameters:
child - - the builder which object should be added to swing component

getColumnBuilder

public TableColumnBuilder getColumnBuilder(int index)

isBindable

protected boolean isBindable()
Description copied from class: SwingBuilder
Returns true if binding != null.

Overrides:
isBindable in class SwingBuilder<JZebraTable>
Returns:
true if binding != null

setBoundValueToComponent

protected void setBoundValueToComponent(java.lang.Object data,
                                        java.lang.String fullBinding)
Description copied from class: SwingBuilder
Sets given data value to the component created by this builder. Override this method for specific component. This implementation simply throws RuntimeException to notify programmer about a necessity to override this method.

Overrides:
setBoundValueToComponent in class SwingBuilder<JZebraTable>
Parameters:
data - - a value to set
fullBinding - - binding to given value from root form object

getBoundValueFromComponent

protected java.lang.Object getBoundValueFromComponent(java.util.Set<java.lang.Object> changedObjects,
                                                      java.lang.String fullBinding)
Description copied from class: SwingBuilder
Gets data value from the component created by this builder. Override this method for specific component. This implementation simply throws RuntimeException to notify programmer about a necessity to override this method.

Overrides:
getBoundValueFromComponent in class SwingBuilder<JZebraTable>
Parameters:
changedObjects - - collection of changed data objects, add your data object to this if your component's value was changed by user
fullBinding - - binding to component's value from root form object
Returns:
value from component's object

JavaGantt 2011.1 API