eu.beesoft.gaia.swing.builder
Class TableColumnBuilder
java.lang.Object
eu.beesoft.gaia.util.ObjectBuilder<T>
eu.beesoft.gaia.swing.builder.SwingBuilder<javax.swing.table.TableColumn>
eu.beesoft.gaia.swing.builder.TableColumnBuilder
public class TableColumnBuilder
- extends SwingBuilder<javax.swing.table.TableColumn>
Builder to produce instances of javax.swing.table.TableColumn
.
It supports these properties:
- cellRenderer - enabled value is a name of the table cell renderer
class
- headerValue - any string
- maxWidth - enabled value is an integer
- minWidth - enabled value is an integer
- preferredWidth - enabled value is an integer
- resizable - enabled value is true or false
Methods inherited from class eu.beesoft.gaia.swing.builder.SwingBuilder |
convertValue, createBoundData, findBoundData, getBindableChildren, getBinding, getBoundData, getBoundValueFromComponent, getPropertyFromResourceBundle, getValueFromBoundObject, initBinding, isBindable, parseDimension, setBoundData, setValueToBoundObject |
Methods inherited from class eu.beesoft.gaia.util.ObjectBuilder |
addChild, 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 |
TableColumnBuilder
public TableColumnBuilder()
createObject
protected javax.swing.table.TableColumn 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<javax.swing.table.TableColumn>
- Returns:
- created object
initCellRenderer
protected void initCellRenderer(java.lang.String value)
initId
protected void initId(java.lang.String value)
- Description copied from class:
ObjectBuilder
- Initializes property ID for this value. Sets property to instance
variable.
- Overrides:
initId
in class ObjectBuilder<javax.swing.table.TableColumn>
- Parameters:
value
- - id to set
initHeaderValue
protected void initHeaderValue(java.lang.String value)
initMaxWidth
protected void initMaxWidth(java.lang.String value)
initMinWidth
protected void initMinWidth(java.lang.String value)
initPreferredWidth
protected void initPreferredWidth(java.lang.String value)
initResizable
protected void initResizable(java.lang.String value)
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<javax.swing.table.TableColumn>
- Parameters:
data
- - a value to setfullBinding
- - binding to given value from root form object
getBoundColumnValue
public java.lang.Object getBoundColumnValue()