edu.whoi.ursa.argoDatabase.servletUtil.html
Class Table<T>

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.servletUtil.html.Table<T>
Direct Known Subclasses:
FloatDictionary.Table, FloatStatus.FlagSet.FlagSetSummaryTable, FloatStatus.FlagSet.FlagSetTable, GreyList.Table, Solo.ARGOSListing.SummaryTable, Solo.IridiumListing.SummaryTable, Solo.SummaryTable, Solo2.Listing.SummaryTable, Solo2.QueuedMissionParameters.QueuedMissionParametersSummaryTable, Solo2.ReportedMissionParameters.ReportedMissionParametersSummaryTable, Solo2.SummaryTable, User.UserTable

public abstract class Table<T>
extends java.lang.Object


Field Summary
private  org.w3c.dom.Element currentRow
           
private  org.w3c.dom.Element div
           
private  org.w3c.dom.Element divAboveTable
           
private  org.w3c.dom.Element table
           
private  org.w3c.dom.Element tbody
           
private  org.w3c.dom.Element thead
           
 
Constructor Summary
Table(org.w3c.dom.Element element)
           
Table(org.w3c.dom.Element element, java.util.Collection<T> items)
           
Table(org.w3c.dom.Element element, java.lang.String header)
           
Table(org.w3c.dom.Element element, java.lang.String header, java.util.Collection<T> items)
           
Table(org.w3c.dom.Element element, T... items)
           
 
Method Summary
 Table<T> addCell()
           
 Table<T> addCell(java.lang.Boolean b)
           
 Table<T> addCell(java.util.Calendar calendar)
           
 Table<T> addCell(java.util.Calendar calendar, java.lang.String href)
           
 Table<T> addCell(java.lang.Double object)
           
 Table<T> addCell(java.lang.Integer i)
           
 Table<T> addCell(java.lang.Integer i, java.lang.String format)
           
 Table<T> addCell(java.lang.Integer i, java.lang.String format, java.lang.String href)
           
 Table<T> addCell(java.lang.Object object)
           
 Table<T> addCell(java.lang.Object object, java.lang.String href)
           
 Table<T> addHeadRow(java.lang.String... items)
           
 Table<T> addItem(T item)
           
 Table<T> addItems(java.util.Collection<T> items)
           
 Table<T> addItems(T... items)
           
abstract  Table<T> addRow(org.w3c.dom.Element row, T item)
           
 org.w3c.dom.Element getCurrentRow()
           
 org.w3c.dom.Element getDiv()
           
 org.w3c.dom.Element getDivAboveTable()
           
 org.w3c.dom.Element getTable()
           
 org.w3c.dom.Element getTbody()
           
 org.w3c.dom.Element getThead()
           
abstract  java.lang.String[] heading()
           
 void setDivAboveTable(org.w3c.dom.Element divAboveTable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

div

private org.w3c.dom.Element div

divAboveTable

private org.w3c.dom.Element divAboveTable

table

private org.w3c.dom.Element table

thead

private org.w3c.dom.Element thead

tbody

private org.w3c.dom.Element tbody

currentRow

private org.w3c.dom.Element currentRow
Constructor Detail

Table

public Table(org.w3c.dom.Element element)
Parameters:
element -

Table

public Table(org.w3c.dom.Element element,
             java.util.Collection<T> items)
Parameters:
element -
items -

Table

public Table(org.w3c.dom.Element element,
             java.lang.String header)
Parameters:
element -

Table

public Table(org.w3c.dom.Element element,
             java.lang.String header,
             java.util.Collection<T> items)
Parameters:
element -
items -

Table

public Table(org.w3c.dom.Element element,
             T... items)
Parameters:
element -
items -
Method Detail

addCell

public Table<T> addCell()

addCell

public Table<T> addCell(java.lang.Integer i)

addCell

public Table<T> addCell(java.lang.Integer i,
                        java.lang.String format)

addCell

public Table<T> addCell(java.lang.Integer i,
                        java.lang.String format,
                        java.lang.String href)

addCell

public Table<T> addCell(java.lang.Boolean b)

addCell

public Table<T> addCell(java.util.Calendar calendar)
Parameters:
calendar -
Returns:

addCell

public Table<T> addCell(java.util.Calendar calendar,
                        java.lang.String href)

addCell

public Table<T> addCell(java.lang.Double object)
Parameters:
object -
Returns:

addCell

public Table<T> addCell(java.lang.Object object)
Parameters:
object -
Returns:

addCell

public Table<T> addCell(java.lang.Object object,
                        java.lang.String href)
Parameters:
object -
href -
Returns:

addHeadRow

public Table<T> addHeadRow(java.lang.String... items)
Parameters:
items -
Returns:

addItem

public Table<T> addItem(T item)
Parameters:
item -
Returns:

addItems

public Table<T> addItems(java.util.Collection<T> items)
Parameters:
items -
Returns:

addItems

public Table<T> addItems(T... items)
Parameters:
items -
Returns:

addRow

public abstract Table<T> addRow(org.w3c.dom.Element row,
                                T item)
Parameters:
row -
item -
Returns:

getCurrentRow

public org.w3c.dom.Element getCurrentRow()
Returns:
the currentRow

getDiv

public org.w3c.dom.Element getDiv()
Returns:
the div

getDivAboveTable

public org.w3c.dom.Element getDivAboveTable()
Returns:
the divAboveTable

getTable

public org.w3c.dom.Element getTable()
Returns:
the table

getTbody

public org.w3c.dom.Element getTbody()
Returns:
the tbody

getThead

public org.w3c.dom.Element getThead()
Returns:
the thead

heading

public abstract java.lang.String[] heading()

setDivAboveTable

public void setDivAboveTable(org.w3c.dom.Element divAboveTable)
Parameters:
divAboveTable - the divAboveTable to set