com.jgoodies.forms.builder
public abstract class AbstractButtonPanelBuilder extends Object
TODO: Mention the ButtonStackBuilder2 subclass as soon as it is available.
Since: 1.2
Version: $Revision: 1.3 $
Constructor Summary | |
---|---|
protected | AbstractButtonPanelBuilder(FormLayout layout, JPanel container)
Constructs a AbstractFormBuilder
for the given FormLayout and layout container.
|
Method Summary | |
---|---|
protected Component | add(Component component)
Adds a component to the container using the default cell constraints.
|
protected void | appendColumn(ColumnSpec columnSpec)
Appends the given column specification to the builder's layout.
|
protected void | appendGlueColumn()
Appends a glue column.
|
protected void | appendGlueRow()
Appends a glue row.
|
protected void | appendRelatedComponentsGapColumn()
Appends a column that is the default gap for related components.
|
protected void | appendRelatedComponentsGapRow()
Appends a row that is the default gap for related components.
|
protected void | appendRow(RowSpec rowSpec)
Appends the given row specification to the builder's layout.
|
protected void | appendUnrelatedComponentsGapColumn()
Appends a column that is the default gap for unrelated components.
|
protected void | appendUnrelatedComponentsGapRow()
Appends a row that is the default gap for unrelated components.
|
JPanel | getContainer()
Returns the container used to build the form.
|
FormLayout | getLayout()
Returns the instance of FormLayout used to build this form.
|
JPanel | getPanel()
Returns the panel used to build the form.
|
boolean | isLeftToRight()
Returns whether this builder fills the form left-to-right
or right-to-left. |
protected void | nextColumn()
Moves to the next column, does the same as #nextColumn(1). |
protected void | nextRow()
Increases the row by one; does the same as #nextRow(1). |
void | setBackground(Color background)
Sets the panel's background color.
|
void | setBorder(Border border)
Sets the panel's border.
|
void | setLeftToRight(boolean b)
Sets the form fill direction to left-to-right or right-to-left.
|
void | setOpaque(boolean b)
Sets the panel's opaque state.
|
AbstractFormBuilder
for the given FormLayout and layout container.
Parameters: layout the FormLayout to use container the layout container
Throws: NullPointerException if the layout or container is null
Parameters: component the component to add
Returns: the added component
Parameters: columnSpec the column specification object to append
See Also: appendRelatedComponentsGapColumn appendUnrelatedComponentsGapColumn
See Also: appendRelatedComponentsGapRow appendUnrelatedComponentsGapRow
See Also: appendGlueColumn appendUnrelatedComponentsGapColumn
See Also: appendGlueRow appendUnrelatedComponentsGapRow
Parameters: rowSpec the row specification object to append
See Also: appendGlueRow appendRelatedComponentsGapRow
Returns: the layout container, a {code JPanel}.
Returns: the FormLayout
Returns: the panel used by this builder to build the form
componentOrientation
property.
Returns: true indicates left-to-right, false indicates right-to-left
See Also: AbstractButtonPanelBuilder ComponentOrientation
Parameters: background the color to set as new background
See Also: JComponent#setBackground(Color)
Parameters: border the border to set
See Also: JComponent#setBorder(Border)
componentOrientation
property.
Parameters: b true indicates left-to-right, false right-to-left
See Also: isLeftToRight ComponentOrientation
Parameters: b true for opaque, false for non-opaque
Since: 1.1
See Also: JComponent#setOpaque(boolean)