eu.beesoft.gaia.swing.builder
Class GridBagConstraintsBuilder
java.lang.Object
eu.beesoft.gaia.util.ObjectBuilder<T>
eu.beesoft.gaia.swing.builder.LayoutConstraintsBuilder<java.awt.GridBagConstraints>
eu.beesoft.gaia.swing.builder.GridBagConstraintsBuilder
- Direct Known Subclasses:
- CellConstraintsBuilder
public class GridBagConstraintsBuilder
- extends LayoutConstraintsBuilder<java.awt.GridBagConstraints>
Builder to produce instances of java.awt.GridBagConstraints
. It
supports these properties:
- anchor - enabled value is a constant name from GridBagConstraints
(for example NORTH)
- fill - enabled value is a constant name from GridBagConstraints
(for example HORIZONTAL)
- gridHeight - enabled values are integers
- gridWidth - enabled values are integers
- gridX - enabled values are integers
- gridY - enabled values are integers
- insets - enabled value is four integers separated by comma or
space (for example 4,5,8,1) - these are arguments to
java.awt.Insets
constructor
- weightX - enabled are double values
- weightY - enabled are double values
Method Summary |
protected java.awt.GridBagConstraints |
createObject()
Creates object for this builder. |
protected void |
initAnchor(java.lang.String value)
|
protected void |
initFill(java.lang.String value)
|
protected void |
initGridHeight(java.lang.String value)
|
protected void |
initGridWidth(java.lang.String value)
|
protected void |
initGridX(java.lang.String value)
|
protected void |
initGridY(java.lang.String value)
|
protected void |
initInsets(java.lang.String value)
|
protected void |
initWeightX(java.lang.String value)
|
protected void |
initWeightY(java.lang.String value)
|
Methods inherited from class eu.beesoft.gaia.util.ObjectBuilder |
addChild, createObject, getFactory, getChildren, getId, getObject, getParent, getProperties, getProperty, initClass, initId, 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 |
GridBagConstraintsBuilder
public GridBagConstraintsBuilder()
createObject
protected java.awt.GridBagConstraints 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<java.awt.GridBagConstraints>
- Returns:
- created object
initGridX
protected void initGridX(java.lang.String value)
initGridY
protected void initGridY(java.lang.String value)
initGridWidth
protected void initGridWidth(java.lang.String value)
initGridHeight
protected void initGridHeight(java.lang.String value)
initAnchor
protected void initAnchor(java.lang.String value)
initFill
protected void initFill(java.lang.String value)
initWeightX
protected void initWeightX(java.lang.String value)
initWeightY
protected void initWeightY(java.lang.String value)
initInsets
protected void initInsets(java.lang.String value)