public class LayoutRow extends java.lang.Object implements LayoutComponent
LayoutPanel
is a LayoutRow.Constructor and Description |
---|
LayoutRow() |
Modifier and Type | Method and Description |
---|---|
void |
add(LayoutComponent lc)
Add a LayoutComponent to the row.
|
void |
addToPanel(java.awt.Container container,
int baseRow,
int baseColumn,
boolean[] rowConstraints,
boolean[] columnConstraints,
int rowSpan)
Allow each LayoutComponent to add itself to the UI container with
appropriate constraints.
|
void |
areColumnsResizable(boolean[] columnConstraints,
int baseColumn)
Allow each LayoutComponent to set the column constraints.
|
void |
areRowsResizable(boolean[] rowConstraints,
int baseRow,
int rowSpan)
Allow each LayoutComponent to set the row constraints.
|
int |
getColumnCount()
Returns the sum of the added LayoutComponents column counts.
|
int |
getRowCount()
Returns the maximum row count of the added LayoutComponents.
|
public void addToPanel(java.awt.Container container, int baseRow, int baseColumn, boolean[] rowConstraints, boolean[] columnConstraints, int rowSpan)
addToPanel
in interface LayoutComponent
container
- the container to add tobaseRow
- components must be added relative to thisbaseColumn
- components must be added relative to thisrowConstraints
- whether each row is resizable or not, these
are for the whole containercolumnConstraints
- same as rowConstraints but for columnsrowSpan
- the number of rows which the LayoutComponent occupies
this will be at least equal to the LayoutComponent's row countpublic void areRowsResizable(boolean[] rowConstraints, int baseRow, int rowSpan)
areRowsResizable
in interface LayoutComponent
rowConstraints
- the out parameterbaseRow
- the position to start from in the rowConstraintsrowSpan
- the length of the rowConstraints which can be
changedpublic void areColumnsResizable(boolean[] columnConstraints, int baseColumn)
areColumnsResizable
in interface LayoutComponent
public int getRowCount()
getRowCount
in interface LayoutComponent
public int getColumnCount()
getColumnCount
in interface LayoutComponent
public void add(LayoutComponent lc)
lc
- the layout component to add, must not be null