public class TableLayoutCell
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
LOG |
Constructor and Description |
---|
TableLayoutCell(TableLayoutRow parent) |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(java.awt.Component component) |
protected java.awt.GridBagConstraints |
createConstraints() |
protected int |
getAnchor() |
int |
getColspan() |
java.awt.Component |
getComponent() |
java.awt.GridBagConstraints |
getConstraints() |
int |
getRowspan() |
boolean |
isColfill()
Returns the colfill.
|
boolean |
isRowfill()
Returns the rowfill.
|
void |
setAlign(java.lang.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(java.lang.String valign)
Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM}
|
public TableLayoutCell(TableLayoutRow parent)
public int getColspan()
public int getRowspan()
public void addComponent(java.awt.Component component)
public java.awt.Component getComponent()
public void setAlign(java.lang.String align)
align
- one of 'left', 'center', or 'right'public void setValign(java.lang.String valign)
valign
- one of 'top', 'middle', 'bottom'public void setColspan(int colspan)
colspan
- The default is 1public void setRowspan(int rowspan)
rowspan
- The default is 1public boolean isColfill()
public boolean isRowfill()
public void setColfill(boolean colfill)
colfill
- The default is falsepublic void setRowfill(boolean rowfill)
rowfill
- The default is falsepublic java.awt.GridBagConstraints getConstraints()
protected java.awt.GridBagConstraints createConstraints()
protected int getAnchor()