Package groovy.swing.impl
Class TableLayoutCell
java.lang.Object
groovy.swing.impl.TableLayoutCell
public class TableLayoutCell
extends java.lang.Object
Represents a cell in a table layout.
- 
Field SummaryFields Modifier and Type Field Description protected static java.util.logging.LoggerLOG
- 
Constructor SummaryConstructors Constructor Description TableLayoutCell(TableLayoutRow parent)
- 
Method SummaryModifier and Type Method Description voidaddComponent(java.awt.Component component)protected java.awt.GridBagConstraintscreateConstraints()protected intgetAnchor()intgetColspan()java.awt.ComponentgetComponent()java.awt.GridBagConstraintsgetConstraints()intgetRowspan()booleanisColfill()Returns the colfill.booleanisRowfill()Returns the rowfill.voidsetAlign(java.lang.String align)Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT}voidsetColfill(boolean colfill)Sets whether or not this column should allow its component to stretch to fill the space availablevoidsetColspan(int colspan)Sets the number of columns that this cell should span.voidsetRowfill(boolean rowfill)Sets whether or not this row should allow its component to stretch to fill the space availablevoidsetRowspan(int rowspan)Sets the number of rows that this cell should span.voidsetValign(java.lang.String valign)Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM}Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
LOGprotected static final java.util.logging.Logger LOG
 
- 
- 
Constructor Details- 
TableLayoutCell
 
- 
- 
Method Details- 
getColspanpublic int getColspan()
- 
getRowspanpublic int getRowspan()
- 
addComponentpublic void addComponent(java.awt.Component component)
- 
getComponentpublic java.awt.Component getComponent()
- 
setAlignpublic void setAlign(java.lang.String align)Sets the horizontal alignment to a case insensitive value of {LEFT, CENTER, RIGHT}- Parameters:
- align- one of 'left', 'center', or 'right'
 
- 
setValignpublic void setValign(java.lang.String valign)Sets the vertical alignment to a case insensitive value of {TOP, MIDDLE, BOTTOM}- Parameters:
- valign- one of 'top', 'middle', 'bottom'
 
- 
setColspanpublic void setColspan(int colspan)Sets the number of columns that this cell should span. The default value is 1- Parameters:
- colspan- The default is 1
 
- 
setRowspanpublic void setRowspan(int rowspan)Sets the number of rows that this cell should span. The default value is 1- Parameters:
- rowspan- The default is 1
 
- 
isColfillpublic boolean isColfill()Returns the colfill.- Returns:
- boolean
 
- 
isRowfillpublic boolean isRowfill()Returns the rowfill.- Returns:
- boolean
 
- 
setColfillpublic void setColfill(boolean colfill)Sets whether or not this column should allow its component to stretch to fill the space available- Parameters:
- colfill- The default is false
 
- 
setRowfillpublic void setRowfill(boolean rowfill)Sets whether or not this row should allow its component to stretch to fill the space available- Parameters:
- rowfill- The default is false
 
- 
getConstraintspublic java.awt.GridBagConstraints getConstraints()- Returns:
- the constraints of this cell
 
- 
createConstraintsprotected java.awt.GridBagConstraints createConstraints()
- 
getAnchorprotected int getAnchor()- Returns:
- the GridBagConstraints enumeration for anchor
 
 
-