edu.whoi.ursa.argoDatabase.servletUtil.html
Class HTML_STUFF

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.servletUtil.html.HTML_STUFF

public class HTML_STUFF
extends java.lang.Object


Field Summary
private static java.util.GregorianCalendar currentDate
           
private static javax.xml.parsers.DocumentBuilderFactory dfactory
           
private static java.lang.String DOCTYPE
           
private static java.util.Properties properties
           
private static javax.xml.transform.TransformerFactory tfactory
           
 
Constructor Summary
HTML_STUFF()
           
 
Method Summary
static void addDatatableTags(org.w3c.dom.Element head, org.w3c.dom.Element body)
           
static org.w3c.dom.Element addLoadingDiv(org.w3c.dom.Element element, java.lang.String comment)
           
static org.w3c.dom.Element addScriptTagsToElement(org.w3c.dom.Element element, java.lang.String type, java.lang.String... srcs)
           
static org.w3c.dom.Element addStyleLinks(org.w3c.dom.Element head, java.lang.String... links)
           
static org.w3c.dom.Document createDocument()
           
static org.w3c.dom.Element generateHeadWithTitle(org.w3c.dom.Element element, java.lang.String titleString)
           
static void generateTable(org.w3c.dom.Element element, java.lang.Boolean nresults, java.util.Collection<java.lang.Object[]> stuff, java.lang.Object... heading)
           
static void generateTable(org.w3c.dom.Element element, java.lang.Boolean nresults, java.lang.Integer numLinkColumns, java.util.Collection<java.lang.Object[]> stuff, java.lang.Object... heading)
           
static org.w3c.dom.Element generateTableFootRow(org.w3c.dom.Element element, java.lang.Object... things)
           
static org.w3c.dom.Element generateTableHeadRow(org.w3c.dom.Element element, java.lang.Object... things)
           
static org.w3c.dom.Element generateTableRow(org.w3c.dom.Element element, java.lang.Integer numLinkColumns, java.lang.Object... things)
           
static org.w3c.dom.Element generateTableRow(org.w3c.dom.Element element, java.lang.Object... things)
           
static void generateWebDataFirstTable(org.w3c.dom.Element element, java.lang.Integer days, java.util.Collection<WebData> stuff, java.lang.Object... heading)
           
static void generateWebDataLastTable(org.w3c.dom.Element element, java.lang.Integer startdays, java.lang.Integer enddays, java.util.Collection<WebData> stuff, java.lang.Object... heading)
           
static void generateWebDataLaunchTable(org.w3c.dom.Element element, java.lang.Integer days, java.util.Collection<WebData> stuff, java.lang.Object... heading)
           
static void generateWebDataTable(org.w3c.dom.Element element, java.util.Collection<WebData> stuff, java.lang.Object... heading)
           
private static java.lang.Boolean isDate(java.lang.Object object)
           
private static java.lang.Boolean isNumber(java.lang.Object object)
           
static void printDocument(org.w3c.dom.Document document, java.io.OutputStream outputStream)
           
static org.w3c.dom.Element process(java.lang.Object object, org.w3c.dom.Element td)
           
private static void processDates(org.w3c.dom.Element element, java.lang.Object object)
           
private static java.lang.Object roundFloats(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

private static final java.util.Properties properties

currentDate

private static final java.util.GregorianCalendar currentDate

dfactory

private static final javax.xml.parsers.DocumentBuilderFactory dfactory

tfactory

private static final javax.xml.transform.TransformerFactory tfactory

DOCTYPE

private static final java.lang.String DOCTYPE
See Also:
Constant Field Values
Constructor Detail

HTML_STUFF

public HTML_STUFF()
Method Detail

createDocument

public static org.w3c.dom.Document createDocument()
                                           throws javax.xml.parsers.ParserConfigurationException,
                                                  java.io.IOException
Throws:
javax.xml.parsers.ParserConfigurationException
java.io.IOException

printDocument

public static void printDocument(org.w3c.dom.Document document,
                                 java.io.OutputStream outputStream)

addStyleLinks

public static org.w3c.dom.Element addStyleLinks(org.w3c.dom.Element head,
                                                java.lang.String... links)

addDatatableTags

public static void addDatatableTags(org.w3c.dom.Element head,
                                    org.w3c.dom.Element body)

addLoadingDiv

public static org.w3c.dom.Element addLoadingDiv(org.w3c.dom.Element element,
                                                java.lang.String comment)

generateHeadWithTitle

public static org.w3c.dom.Element generateHeadWithTitle(org.w3c.dom.Element element,
                                                        java.lang.String titleString)

addScriptTagsToElement

public static org.w3c.dom.Element addScriptTagsToElement(org.w3c.dom.Element element,
                                                         java.lang.String type,
                                                         java.lang.String... srcs)

generateTable

public static void generateTable(org.w3c.dom.Element element,
                                 java.lang.Boolean nresults,
                                 java.util.Collection<java.lang.Object[]> stuff,
                                 java.lang.Object... heading)

generateTable

public static void generateTable(org.w3c.dom.Element element,
                                 java.lang.Boolean nresults,
                                 java.lang.Integer numLinkColumns,
                                 java.util.Collection<java.lang.Object[]> stuff,
                                 java.lang.Object... heading)

generateWebDataTable

public static void generateWebDataTable(org.w3c.dom.Element element,
                                        java.util.Collection<WebData> stuff,
                                        java.lang.Object... heading)

generateWebDataLaunchTable

public static void generateWebDataLaunchTable(org.w3c.dom.Element element,
                                              java.lang.Integer days,
                                              java.util.Collection<WebData> stuff,
                                              java.lang.Object... heading)

generateWebDataFirstTable

public static void generateWebDataFirstTable(org.w3c.dom.Element element,
                                             java.lang.Integer days,
                                             java.util.Collection<WebData> stuff,
                                             java.lang.Object... heading)

generateWebDataLastTable

public static void generateWebDataLastTable(org.w3c.dom.Element element,
                                            java.lang.Integer startdays,
                                            java.lang.Integer enddays,
                                            java.util.Collection<WebData> stuff,
                                            java.lang.Object... heading)

generateTableRow

public static org.w3c.dom.Element generateTableRow(org.w3c.dom.Element element,
                                                   java.lang.Object... things)

generateTableRow

public static org.w3c.dom.Element generateTableRow(org.w3c.dom.Element element,
                                                   java.lang.Integer numLinkColumns,
                                                   java.lang.Object... things)

generateTableHeadRow

public static org.w3c.dom.Element generateTableHeadRow(org.w3c.dom.Element element,
                                                       java.lang.Object... things)

generateTableFootRow

public static org.w3c.dom.Element generateTableFootRow(org.w3c.dom.Element element,
                                                       java.lang.Object... things)

process

public static org.w3c.dom.Element process(java.lang.Object object,
                                          org.w3c.dom.Element td)

isDate

private static java.lang.Boolean isDate(java.lang.Object object)

processDates

private static void processDates(org.w3c.dom.Element element,
                                 java.lang.Object object)

isNumber

private static java.lang.Boolean isNumber(java.lang.Object object)

roundFloats

private static java.lang.Object roundFloats(java.lang.Object object)