com.waveset.ui
Class Table.DateCell

java.lang.Object
  extended bycom.waveset.ui.Table.Cell
      extended bycom.waveset.ui.Table.DateCell
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
Table

public static class Table.DateCell
extends Table.Cell

This is an object to represent a "date" cell. The value is a long that is the milliseconds since Jan 1, 1970 00:00:00 (same as is returned by System.currentTimeMillis()).

The display name is a formatted version of this and is returned by the toHTML method.

The sort name is a text representation of the "long" value so that the existing TableComparator can be used.


Field Summary
 long _timeStamp
           
 
Constructor Summary
Table.DateCell(long timeStamp)
           
 
Method Summary
 java.lang.String toHTML(RequestState req)
          return the actual cell contents in HTML form
 java.lang.String toString()
           
 
Methods inherited from class com.waveset.ui.Table.Cell
clone, getPrimaryKey, setPrimaryKey
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_timeStamp

public long _timeStamp
Constructor Detail

Table.DateCell

public Table.DateCell(long timeStamp)
Method Detail

toHTML

public java.lang.String toHTML(RequestState req)
return the actual cell contents in HTML form

Overrides:
toHTML in class Table.Cell

toString

public java.lang.String toString()
Returns:
the name to sort on. This needs to be a 10-char string that is left-padded with zeros so that it will sort correctly