eu.beesoft.gaia.swing.form
Class CellConstraintsBuilder
java.lang.Object
eu.beesoft.gaia.util.ObjectBuilder<T>
eu.beesoft.gaia.swing.builder.LayoutConstraintsBuilder<java.awt.GridBagConstraints>
eu.beesoft.gaia.swing.builder.GridBagConstraintsBuilder
eu.beesoft.gaia.swing.form.CellConstraintsBuilder
public class CellConstraintsBuilder
- extends GridBagConstraintsBuilder
Builder to produce instances of CellConstraints
. It supports these properties:
- border - enabled value is one or more constants separated by space or comma. Constants
are: left, top, right, bottom, none. If the name of constant is present, the appropriate border
property is set to true
- bottomBorder - enabled value is true or false
- height - shortcut to gridHeight
- leftBorder - enabled value is true or false
- resizeX - enabled value is true (100%) or false (0%)
- resizeY - enabled value is true (100%) or false (0%)
- rightBorder - enabled value is true or false
- topBorder - enabled value is true or false
- under - enabled value is an
id
of builder (element, component). This
instance of constraints sets its y
property to referenced component's y + 1. Use
this property to save a care with absolute coordinates.
- width - shortcut to gridWidth
- x - shortcut to gridX
- y - shortcut to gridY
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 |
CellConstraintsBuilder
public CellConstraintsBuilder()
createObject
protected CellConstraints 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.
- Overrides:
createObject
in class GridBagConstraintsBuilder
- Returns:
- created object
initX
protected void initX(java.lang.String value)
initY
protected void initY(java.lang.String value)
initWidth
protected void initWidth(java.lang.String value)
initHeight
protected void initHeight(java.lang.String value)
initResizeX
protected void initResizeX(java.lang.String value)
initResizeY
protected void initResizeY(java.lang.String value)
initUnder
protected void initUnder(java.lang.String value)
initLeftBorder
protected void initLeftBorder(java.lang.String value)
initTopBorder
protected void initTopBorder(java.lang.String value)
initRightBorder
protected void initRightBorder(java.lang.String value)
initBottomBorder
protected void initBottomBorder(java.lang.String value)
initBorder
protected void initBorder(java.lang.String value)