|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.swing.impl.TableLayoutCell
public class TableLayoutCell
Represents a cell in a table layout.
Field Summary | |
---|---|
protected static Logger |
LOG
|
Constructor Summary | |
TableLayoutCell(TableLayoutRow parent)
|
Method Summary | |
---|---|
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} |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected static final Logger LOG
Constructor Detail |
---|
public TableLayoutCell(TableLayoutRow parent)
Method Detail |
---|
public void addComponent(Component component)
protected GridBagConstraints createConstraints()
protected int getAnchor()
public int getColspan()
public Component getComponent()
public GridBagConstraints getConstraints()
public int getRowspan()
public boolean isColfill()
public boolean isRowfill()
public void setAlign(String align)
align
- one of 'left', 'center', or 'right'
public void setColfill(boolean colfill)
colfill
- The default is false
public void setColspan(int colspan)
colspan
- The default is 1
public void setRowfill(boolean rowfill)
rowfill
- The default is false
public void setRowspan(int rowspan)
rowspan
- The default is 1
public void setValign(String valign)
valign
- one of 'top', 'middle', 'bottom'
Copyright © 2003-2013 The Codehaus. All rights reserved.