Package | Description |
---|---|
com.jgoodies.forms.builder |
Contains optional builder classes of the Forms framework.
|
Modifier and Type | Field and Description |
---|---|
protected FormBuilder |
FormBuilder.ComponentAdder.builder |
Modifier and Type | Method and Description |
---|---|
protected FormBuilder |
FormBuilder.ComponentAdder.add(CellConstraints constraints) |
FormBuilder |
FormBuilder.appendColumns(String encodedColumnSpecs,
Object... args)
Appends the given columns to this builder's layout.
|
FormBuilder |
FormBuilder.appendRows(String encodedRowSpecs,
Object... args)
Appends the given rows to this builder's layout.
|
FormBuilder |
FormBuilder.ComponentAdder.at(CellConstraints constraints)
Sets the given cell constraints.
|
FormBuilder |
FormBuilder.background(Color background)
Sets the panel's background color and the panel to be opaque.
|
FormBuilder |
FormBuilder.border(Border border)
Sets the panel's border.
|
FormBuilder |
FormBuilder.border(String paddingSpec)
Deprecated.
Use
padding(String, Object...) instead |
FormBuilder |
FormBuilder.columnGroup(int... columnIndices)
Configures this builder's layout to group (make equally wide)
the columns with the given indices.
|
FormBuilder |
FormBuilder.columnGroups(int[]... multipleColumnGroups)
Configures this builder's layout to group (make equally wide)
the columns per array of column indices.
|
FormBuilder |
FormBuilder.columns(String encodedColumnSpecs,
Object... args)
Configures this builder's layout columns using a comma-separated
string of column specifications.
|
static FormBuilder |
FormBuilder.create()
Creates and return a new FormBuilder instance.
|
FormBuilder |
FormBuilder.debug(boolean b)
Enables or disables the display of layout debug information.
|
FormBuilder |
FormBuilder.defaultLabelType(FormBuilder.LabelType newValue)
Sets a new value for the default label type that is used to determine
whether
add(String, Object...) delegates to
addLabel(String, Object...) |
FormBuilder |
FormBuilder.factory(ComponentFactory factory)
Sets
factory as this builder's new component factory
that is used when adding implicitly created components such as
labels, titles, or titled separators. |
FormBuilder |
FormBuilder.focusGroup(AbstractButton... buttons)
Tries to build a focus group for the given buttons.
|
FormBuilder |
FormBuilder.focusTraversalPolicy(FocusTraversalPolicy policy)
Sets the panel's focus traversal policy and sets the panel
as focus traversal policy provider.
|
FormBuilder |
FormBuilder.focusTraversalType(FocusTraversalType focusTraversalType)
Sets either a layout or container order focus traversal policy.
|
FormBuilder |
FormBuilder.honorsVisibility(boolean b)
Specifies whether invisible components shall be taken into account by
this builder for computing the layout size and setting component bounds.
|
FormBuilder |
FormBuilder.honorsVisibility(JComponent c,
boolean b)
Configures how this builder's layout shall handle the visibility
of the given component.
|
FormBuilder |
FormBuilder.initialComponent(JComponent initialComponent)
Sets a component that should receive the focus when a Window is
made visible for the first time.
|
FormBuilder |
FormBuilder.labelForFeatureEnabled(boolean b)
Enables or disables the setLabelFor feature for this builder.
|
FormBuilder |
FormBuilder.layout(FormLayout layout)
Sets
layout as the layout to use by this builder. |
FormBuilder |
FormBuilder.layoutMap(LayoutMap layoutMap)
Configures this builder's FormLayout to use the given layout map
for expanding layout variables.
|
FormBuilder |
FormBuilder.name(String panelName)
Sets the name of the panel this builder works with.
|
FormBuilder |
FormBuilder.offset(int offsetX,
int offsetY)
When adding components, the cell constraints origin are moved
along the X and Y axis using an offset
as specified by
offsetX and offsetY respectively. |
FormBuilder |
FormBuilder.opaque(boolean b)
Sets the panel's opaque state.
|
FormBuilder |
FormBuilder.padding(EmptyBorder padding)
Sets the panel's padding, an empty border.
|
FormBuilder |
FormBuilder.padding(String paddingSpec,
Object... args)
Sets the panel's padding as an EmptyBorder using the given specification
for the top, left, bottom, right margins in DLU.
|
FormBuilder |
FormBuilder.panel(JPanel panel)
Sets
panel as the panel that this builder shall work with. |
FormBuilder |
FormBuilder.ComponentAdder.rc(int row,
int col)
Sets row and column origins; sets height and width to 1;
uses the default alignments.
|
FormBuilder |
FormBuilder.ComponentAdder.rc(int row,
int col,
CellConstraints.Alignment rowAlign,
CellConstraints.Alignment colAlign)
Sets the row and column origins; sets width and height to 1;
set horizontal and vertical alignment using the specified objects.
|
FormBuilder |
FormBuilder.ComponentAdder.rc(int row,
int col,
String encodedAlignments)
Sets row and column origins; sets height and width to 1;
decodes vertical and horizontal alignments from the given string.
|
FormBuilder |
FormBuilder.ComponentAdder.rchw(int row,
int col,
int rowSpan,
int colSpan)
Sets the row, column, height, and width; uses default alignments.
|
FormBuilder |
FormBuilder.ComponentAdder.rchw(int row,
int col,
int rowSpan,
int colSpan,
CellConstraints.Alignment rowAlign,
CellConstraints.Alignment colAlign)
Sets the row, column, height, and width; sets the vertical and
horizontal alignment using the specified alignment objects.
|
FormBuilder |
FormBuilder.ComponentAdder.rchw(int row,
int col,
int rowSpan,
int colSpan,
String encodedAlignments)
Sets the row, column, height, and width;
decodes the vertical and horizontal alignments from the given string.
|
FormBuilder |
FormBuilder.ComponentAdder.rcw(int row,
int col,
int colSpan)
Sets the row, column, height, and width; uses a height (row span) of 1
and the vertical and horizontal default alignments.
|
FormBuilder |
FormBuilder.ComponentAdder.rcw(int row,
int col,
int colSpan,
CellConstraints.Alignment rowAlign,
CellConstraints.Alignment colAlign)
Sets the row, column, height, and width; sets the vertical
and horizontal alignment using the specified alignment objects.
|
FormBuilder |
FormBuilder.ComponentAdder.rcw(int row,
int col,
int colSpan,
String encodedAlignments)
Sets the row, column, height, and width;
decodes the vertical and horizontal alignments from the given string.
|
FormBuilder |
FormBuilder.rowGroup(int... rowIndices)
Configures this builder's layout to group (make equally high)
the rows with the given indices.
|
FormBuilder |
FormBuilder.rowGroups(int[]... multipleRowGroups)
Configures this builder's layout to group (make equally wide)
the rows per array of row indices.
|
FormBuilder |
FormBuilder.rows(String encodedRowSpecs,
Object... args)
Configures this builder's layout rows using a comma-separated
string of row specifications.The string can be a format string
and will then use the optional format arguments, see
String.format(String, Object...) . |
FormBuilder |
FormBuilder.translate(int dX,
int dY)
Moves the cell constraints offset along the X and Y axis
as specified by
dx and dy respectively. |
FormBuilder |
FormBuilder.ViewAdder.xy(int col,
int row)
Sets column and row origins of the view to integrate.
|
FormBuilder |
FormBuilder.ComponentAdder.xy(int col,
int row)
Sets column and row origins; sets width and height to 1;
uses the default alignments.
|
FormBuilder |
FormBuilder.ComponentAdder.xy(int col,
int row,
CellConstraints.Alignment colAlign,
CellConstraints.Alignment rowAlign)
Sets the column and row origins; sets width and height to 1;
set horizontal and vertical alignment using the specified objects.
|
FormBuilder |
FormBuilder.ComponentAdder.xy(int col,
int row,
String encodedAlignments)
Sets column and row origins; sets width and height to 1;
decodes horizontal and vertical alignments from the given string.
|
FormBuilder |
FormBuilder.ComponentAdder.xyw(int col,
int row,
int colSpan)
Sets the column, row, width, and height; uses a height (row span) of 1
and the horizontal and vertical default alignments.
|
FormBuilder |
FormBuilder.ComponentAdder.xyw(int col,
int row,
int colSpan,
CellConstraints.Alignment colAlign,
CellConstraints.Alignment rowAlign)
Sets the column, row, width, and height; sets the horizontal
and vertical alignment using the specified alignment objects.
|
FormBuilder |
FormBuilder.ComponentAdder.xyw(int col,
int row,
int colSpan,
String encodedAlignments)
Sets the column, row, width, and height;
decodes the horizontal and vertical alignments from the given string.
|
FormBuilder |
FormBuilder.ComponentAdder.xywh(int col,
int row,
int colSpan,
int rowSpan)
Sets the column, row, width, and height; uses default alignments.
|
FormBuilder |
FormBuilder.ComponentAdder.xywh(int col,
int row,
int colSpan,
int rowSpan,
CellConstraints.Alignment colAlign,
CellConstraints.Alignment rowAlign)
Sets the column, row, width, and height; sets the horizontal
and vertical alignment using the specified alignment objects.
|
FormBuilder |
FormBuilder.ComponentAdder.xywh(int col,
int row,
int colSpan,
int rowSpan,
String encodedAlignments)
Sets the column, row, width, and height;
decodes the horizontal and vertical alignments from the given string.
|
Modifier and Type | Method and Description |
---|---|
void |
FormBuilder.FormBuildingView.buildInto(FormBuilder builder)
Integrates this view into the form that is built by the given builder.
|
Copyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.