org.extremecomponents.table.cell
Class BaseCell

java.lang.Object
  extended byorg.extremecomponents.table.cell.BaseCell
All Implemented Interfaces:
Cell
Direct Known Subclasses:
DisplayCell, FilterCell, HeaderCell, PageCell, TreeCell

public abstract class BaseCell
extends java.lang.Object
implements Cell

Some of the common things that a cell needs to do. Most of the time this class should be extended for convenience

Author:
Jeff Johnston

Field Summary
protected  Column column
           
static java.lang.String EVEN
          An even row in the table.
protected  TableModel model
           
static java.lang.String ODD
          An odd row in the table.
protected  java.lang.Integer rowcount
           
 
Constructor Summary
BaseCell()
           
 
Method Summary
 void destroy()
          Destroy the objects set up in the init() method.
 java.lang.String endTD()
          Get the HTML for the end td tag.
abstract  java.lang.String html()
          Get the cell specific HTML
 void init(TableModel model, Column column, java.lang.Integer rowcount)
          Set the Model, Column and current rowcount.
 boolean isRowEven()
          Find out if the column is sitting on an even row.
 boolean isRowOdd()
          Find out if the column is sitting on an odd row.
 java.lang.String startTD()
          Get the HTML for the td tag.
abstract  java.lang.String value()
          Get the cell specific simple value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVEN

public static final java.lang.String EVEN
An even row in the table.

See Also:
Constant Field Values

ODD

public static final java.lang.String ODD
An odd row in the table.

See Also:
Constant Field Values

model

protected TableModel model

column

protected Column column

rowcount

protected java.lang.Integer rowcount
Constructor Detail

BaseCell

public BaseCell()
Method Detail

init

public void init(TableModel model,
                 Column column,
                 java.lang.Integer rowcount)
Set the Model, Column and current rowcount.

Specified by:
init in interface Cell

destroy

public void destroy()
Destroy the objects set up in the init() method.

Specified by:
destroy in interface Cell

isRowEven

public boolean isRowEven()
Find out if the column is sitting on an even row.


isRowOdd

public boolean isRowOdd()
Find out if the column is sitting on an odd row.


startTD

public java.lang.String startTD()
Get the HTML for the td tag. If the style is defined then it will try to use that first. If no style is defined then will use the alternating even and odd styles.


endTD

public java.lang.String endTD()
Get the HTML for the end td tag.


html

public abstract java.lang.String html()
Get the cell specific HTML

Specified by:
html in interface Cell

value

public abstract java.lang.String value()
Get the cell specific simple value

Specified by:
value in interface Cell


Copyright © 2004 sourceforge. All Rights Reserved.