Method Summary |
|
final public Component | add(Component component, CellConstraints cellConstraints) Adds a component to the panel using the given cell constraints. |
final public Component | add(Component component, String encodedCellConstraints) Adds a component to the panel using the given encoded cell constraints. |
final public Component | add(Component component) Adds a component to the container using the default cell constraints.
Note that when building from left to right, this method won't adjust the
cell constraints if the column span is larger than 1. |
final public void | appendColumn(ColumnSpec columnSpec) Appends the given column specification to the builder's layout. |
final public void | appendColumn(String encodedColumnSpec) Appends a column specification to the builder's layout that represents
the given string encoding. |
final public void | appendGlueColumn() Appends a glue column. |
final public void | appendGlueRow() Appends a glue row. |
final public void | appendLabelComponentsGapColumn() Appends a column that is the default gap between a label and its
associated component. |
final public void | appendParagraphGapRow() Appends a row that is the default gap for paragraphs. |
final public void | appendRelatedComponentsGapColumn() Appends a column that is the default gap for related components. |
final public void | appendRelatedComponentsGapRow() Appends a row that is the default gap for related components. |
final public void | appendRow(RowSpec rowSpec) Appends the given row specification to the builder's layout. |
final public void | appendRow(String encodedRowSpec) Appends a row specification to the builder's layout that represents the
given string encoding. |
final public void | appendUnrelatedComponentsGapColumn() Appends a column that is the default gap for unrelated components. |
final public void | appendUnrelatedComponentsGapRow() Appends a row that is the default gap for unrelated components. |
final protected CellConstraints | cellConstraints() Returns the CellConstraints object that is used as a cursor and holds the
current column span and row span. |
final protected CellConstraints | createLeftAdjustedConstraints(int columnSpan) Creates and returns a CellConstraints object at the
current cursor position that uses the given column span and is adjusted
to the left. |
final public int | getColumn() Returns the cursor's column. |
final public int | getColumnCount() Returns the number of columns in the form. |
final protected int | getColumnIncrementSign() Returns the sign (-1 or 1) used to increment the cursor's column when
moving to the next column. |
final public Container | getContainer() Returns the container used to build the form. |
final public FormLayout | getLayout() Returns the instance of
FormLayout used to build this form. |
protected int | getLeadingColumn() Returns the index of the leading column. |
final public int | getRow() Returns the cursor's row. |
final public int | getRowCount() Returns the number of rows in the form. |
final public boolean | isLeftToRight() Returns whether this builder fills the form left-to-right or
right-to-left. |
final public void | nextColumn() Moves to the next column, does the same as #nextColumn(1). |
final public void | nextColumn(int columns) Moves to the next column. |
final public void | nextLine() Moves to the next line: increases the row and resets the column; does the
same as #nextLine(1). |
final public void | nextLine(int lines) Moves the cursor down several lines: increases the row by the specified
number of lines and sets the cursor to the leading column. |
final public void | nextRow() Increases the row by one; does the same as #nextRow(1). |
final public void | nextRow(int rows) Increases the row by the specified rows. |
final public void | setAlignment(CellConstraints.Alignment hAlign, CellConstraints.Alignment vAlign) Sets the horizontal and vertical alignment. |
final public void | setBounds(int column, int row, int columnSpan, int rowSpan) Sets the cell bounds (location and extent) to the given column, row,
column span and row span. |
final public void | setColumn(int column) Sets the cursor to the given column. |
final public void | setColumnSpan(int columnSpan) Sets the cursor's column span. |
final public void | setExtent(int columnSpan, int rowSpan) Sets the cursor's extent to the given column span and row span. |
final public void | setHAlignment(CellConstraints.Alignment alignment) Sets the horizontal alignment. |
final public void | setLeftToRight(boolean b) Sets the form fill direction to left-to-right or right-to-left. |
final public void | setOrigin(int column, int row) Sets the cursor's origin to the given column and row. |
final public void | setRow(int row) Sets the cursor to the given row. |
final public void | setRowSpan(int rowSpan) Sets the cursor's row span. |
final public void | setVAlignment(CellConstraints.Alignment alignment) Sets the vertical alignment. |