net.sf.jolene.dom
Class GridColumn

java.lang.Object
  extended by net.sf.jolene.dom.GridColumn

public final class GridColumn
extends java.lang.Object

A grid column object. This is used to define the columns that the grid will display. The columns define the header text, width, align and cell object. The cell object can be any of the HTMLElement objects. Cell objects render the object in the grid cell instead of just text. Commonly this would be used to display checkboxes in the grid.

Since:
Oct 11, 2005 Time: 6:51:04 PM
Author:
Dan Howard

Constructor Summary
GridColumn()
          Default constructor.
GridColumn(java.lang.String header, java.lang.String width)
          Constructs a GridColumn using a header string and a width string.
 
Method Summary
 java.lang.String getAlign()
          Return the align for the column.
 HTMLElement getCellObject()
          Gets the CellObject for the column.
 java.lang.String getHeader()
          Returns the column header string.
 java.lang.String getWidth()
          Returns the column width.
 void setAlign(java.lang.String align)
          Sets the column align.
 void setCellObject(HTMLElement cellObject)
          Sets the CellObject for the column.
 void setHeader(java.lang.String header)
          Sets the column header.
 void setWidth(java.lang.String width)
          Sets the column width.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridColumn

public GridColumn()
Default constructor.


GridColumn

public GridColumn(java.lang.String header,
                  java.lang.String width)
Constructs a GridColumn using a header string and a width string.

Parameters:
header - header string for the column.
width - width of the column.
Method Detail

getAlign

public java.lang.String getAlign()
Return the align for the column.

Returns:
Alignment of the column.

getCellObject

public HTMLElement getCellObject()
Gets the CellObject for the column.

Returns:
HTMLElement cell object.

getHeader

public java.lang.String getHeader()
Returns the column header string.

Returns:
Header of the column.

getWidth

public java.lang.String getWidth()
Returns the column width.

Returns:
Width of the column.

setAlign

public void setAlign(java.lang.String align)
Sets the column align.

Parameters:
align - Alignment of the column.

setHeader

public void setHeader(java.lang.String header)
Sets the column header.

Parameters:
header - Header of the column.

setCellObject

public void setCellObject(HTMLElement cellObject)
Sets the CellObject for the column.

Parameters:
cellObject - Any HTMLElement object.

setWidth

public void setWidth(java.lang.String width)
Sets the column width.

Parameters:
width - Width of the column.