Represents a cell in a table layout.
Constructor and description |
---|
TableLayoutCell
(TableLayoutRow parent) |
Type | Name and description |
---|---|
void |
addComponent(Component component) |
protected GridBagConstraints |
createConstraints() |
protected int |
getAnchor() @return the GridBagConstraints enumeration for anchor |
int |
getColspan() |
Component |
getComponent() |
GridBagConstraints |
getConstraints() @return the constraints of this cell |
int |
getRowspan() |
boolean |
isColfill() Returns the colfill. |
boolean |
isRowfill() Returns the rowfill. |
void |
setAlign(String align) Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT} |
void |
setColfill(boolean colfill) Sets whether or not this column should allow its component to stretch to fill the space available |
void |
setColspan(int colspan) Sets the number of columns that this cell should span. |
void |
setRowfill(boolean rowfill) Sets whether or not this row should allow its component to stretch to fill the space available |
void |
setRowspan(int rowspan) Sets the number of rows that this cell should span. |
void |
setValign(String valign) Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM} |
Returns the colfill.
Returns the rowfill.
Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT}
align
- one of 'left', 'center', or 'right'Sets whether or not this column should allow its component to stretch to fill the space available
colfill
- The default is falseSets the number of columns that this cell should span. The default value is 1
colspan
- The default is 1Sets whether or not this row should allow its component to stretch to fill the space available
rowfill
- The default is falseSets the number of rows that this cell should span. The default value is 1
rowspan
- The default is 1Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM}
valign
- one of 'top', 'middle', 'bottom'Copyright © 2003-2016 The Apache Software Foundation. All rights reserved.