com.waveset.ui
Class Table.DateCell
java.lang.Object
com.waveset.ui.Table.Cell
com.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.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_timeStamp
public long _timeStamp
Table.DateCell
public Table.DateCell(long timeStamp)
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