org.displaytag.model
Class Cell

java.lang.Object
  extended by org.displaytag.model.Cell
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class Cell
extends java.lang.Object
implements java.lang.Comparable, java.lang.Cloneable

Represents a table cell.

A cell is used only when the content is placed as content of the column tag and need to be evaluated during iteration.

Version:
$Revision: 1094 $ ($Author: rapruitt $)
Author:
Fabrizio Giustina

Field Summary
static Cell EMPTY_CELL
          empty cell object.
 
Constructor Summary
Cell(java.lang.Object value)
          Creates a cell with a static value.
 
Method Summary
 int compareTo(java.lang.Object obj)
          Compare the Cell value to another Cell.
 HtmlAttributeMap getPerRowAttributes()
           
 java.lang.Object getStaticValue()
          get the static value for the cell.
 void setPerRowAttributes(HtmlAttributeMap perRowValues)
           
 java.lang.String toString()
          Simple toString wich output the static value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_CELL

public static final Cell EMPTY_CELL
empty cell object. Use as placeholder for empty cell to avoid useless object creation.

Constructor Detail

Cell

public Cell(java.lang.Object value)
Creates a cell with a static value.

Parameters:
value - Object value of the Cell object
Method Detail

getStaticValue

public java.lang.Object getStaticValue()
get the static value for the cell.

Returns:
the Object value of this.staticValue.

compareTo

public int compareTo(java.lang.Object obj)
Compare the Cell value to another Cell.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - Object to compare this cell to
Returns:
int
See Also:
Comparable.compareTo(Object)

toString

public java.lang.String toString()
Simple toString wich output the static value.

Overrides:
toString in class java.lang.Object
Returns:
String represantation of the cell

setPerRowAttributes

public void setPerRowAttributes(HtmlAttributeMap perRowValues)

getPerRowAttributes

public HtmlAttributeMap getPerRowAttributes()


Copyright © 2002-2010 the Displaytag team. All Rights Reserved.