org.apache.commons.jelly.tags.swing.impl
Class Cell

java.lang.Object
  extended byorg.apache.commons.jelly.tags.swing.impl.Cell

public class Cell
extends java.lang.Object

A simple class to represent the information for a single cell in a table when using the GridBagLayout

Version:
$Revision: 1.7 $
Author:
James Strachan

Field Summary
private  java.awt.Component component
           
private  java.awt.GridBagConstraints constraints
           
 
Constructor Summary
Cell()
           
Cell(java.awt.GridBagConstraints constraints, java.awt.Component component)
           
 
Method Summary
 java.awt.Component getComponent()
          Returns the component.
 java.awt.GridBagConstraints getConstraints()
          Returns the constraints.
 void setComponent(java.awt.Component component)
          Sets the component.
 void setConstraints(java.awt.GridBagConstraints constraints)
          Sets the constraints.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraints

private java.awt.GridBagConstraints constraints

component

private java.awt.Component component
Constructor Detail

Cell

public Cell()

Cell

public Cell(java.awt.GridBagConstraints constraints,
            java.awt.Component component)
Method Detail

getComponent

public java.awt.Component getComponent()
Returns the component.

Returns:
Component

getConstraints

public java.awt.GridBagConstraints getConstraints()
Returns the constraints.

Returns:
GridBagConstraints

setComponent

public void setComponent(java.awt.Component component)
Sets the component.

Parameters:
component - The component to set

setConstraints

public void setConstraints(java.awt.GridBagConstraints constraints)
Sets the constraints.

Parameters:
constraints - The constraints to set