org.opengts.war.report.presentation
Class ReportTable

java.lang.Object
  extended by org.opengts.war.report.presentation.ReportTable
All Implemented Interfaces:
ReportPresentation

public class ReportTable
extends java.lang.Object
implements ReportPresentation


Field Summary
static java.lang.String ATTR_encoding
           
static java.lang.String ATTR_format
           
static java.lang.String ATTR_name
           
static java.lang.String ATTR_sent
           
static java.lang.String ATTR_timestamp
           
static java.lang.String ATTR_timezone
           
static java.lang.String ATTR_type
           
static java.lang.String CSS_CLASS_TABLE
           
static java.lang.String CSS_CLASS_TABLE_SORT
           
static int INDENT
           
static java.lang.String TAG_Account
           
static java.lang.String TAG_Ascending
           
static java.lang.String TAG_Message
           
static java.lang.String TAG_Partial
           
static java.lang.String TAG_Report
           
static java.lang.String TAG_ReportEmail
           
static java.lang.String TAG_ReportHtml
           
static java.lang.String TAG_ReportLimit
           
static java.lang.String TAG_ReportUrl
           
static java.lang.String TAG_RuleSelector
           
static java.lang.String TAG_SelectionLimit
           
static java.lang.String TAG_Subtitle
           
static java.lang.String TAG_TimeFrom
           
static java.lang.String TAG_TimeTo
           
static java.lang.String TAG_Title
           
static java.lang.String TAG_ValidGPSRequired
           
static java.lang.String TAG_Where
           
 
Fields inherited from interface org.opengts.war.report.ReportPresentation
SORTTABLE_CSS_CLASS, SORTTABLE_CSS_NOSORT, SORTTABLE_JS, SORTTABLE_SORTKEY
 
Constructor Summary
  ReportTable()
           
protected ReportTable(ReportHeader rh, ReportBody rb)
           
 
Method Summary
protected  BodyColumnTemplate _createBodyColumnTemplate(DataColumnTemplate dct)
           
protected  HeaderColumnTemplate _createHeaderColumnTemplate(DataColumnTemplate dct)
           
protected static java.lang.String _writeHTMLReport(RequestProperties reqState, ReportData report, boolean base64Encode)
           
static java.lang.String csvFilter(java.lang.String value)
           
static java.lang.String EncodeURL(RequestProperties reqState, URIArg url)
           
static java.lang.String FilterText(java.lang.String s)
           
 BodyColumnTemplate getBodyColumnTemplate(DataColumnTemplate dct)
           
 HeaderColumnTemplate getHeaderColumnTemplate(DataColumnTemplate dct)
           
 int writeReport(ReportURL.Format rptFormat, ReportData rd, OutputProvider out, int indentLevel)
           
 int writeReport(java.lang.String format, ReportData rd, OutputProvider out, int indentLevel)
           
static java.lang.String XmlFilter(boolean isSoapReq, boolean value)
           
static java.lang.String XmlFilter(boolean isSoapReq, int value)
           
static java.lang.String XmlFilter(boolean isSoapReq, long value)
           
static java.lang.String XmlFilter(boolean isSoapReq, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSS_CLASS_TABLE

public static final java.lang.String CSS_CLASS_TABLE
See Also:
Constant Field Values

CSS_CLASS_TABLE_SORT

public static final java.lang.String CSS_CLASS_TABLE_SORT
See Also:
Constant Field Values

INDENT

public static final int INDENT
See Also:
Constant Field Values

TAG_Account

public static final java.lang.String TAG_Account
See Also:
Constant Field Values

TAG_TimeFrom

public static final java.lang.String TAG_TimeFrom
See Also:
Constant Field Values

TAG_TimeTo

public static final java.lang.String TAG_TimeTo
See Also:
Constant Field Values

TAG_ValidGPSRequired

public static final java.lang.String TAG_ValidGPSRequired
See Also:
Constant Field Values

TAG_SelectionLimit

public static final java.lang.String TAG_SelectionLimit
See Also:
Constant Field Values

TAG_Ascending

public static final java.lang.String TAG_Ascending
See Also:
Constant Field Values

TAG_ReportLimit

public static final java.lang.String TAG_ReportLimit
See Also:
Constant Field Values

TAG_Where

public static final java.lang.String TAG_Where
See Also:
Constant Field Values

TAG_RuleSelector

public static final java.lang.String TAG_RuleSelector
See Also:
Constant Field Values

TAG_Title

public static final java.lang.String TAG_Title
See Also:
Constant Field Values

TAG_Subtitle

public static final java.lang.String TAG_Subtitle
See Also:
Constant Field Values

TAG_Partial

public static final java.lang.String TAG_Partial
See Also:
Constant Field Values

TAG_Report

public static final java.lang.String TAG_Report
See Also:
Constant Field Values

TAG_ReportUrl

public static final java.lang.String TAG_ReportUrl
See Also:
Constant Field Values

TAG_ReportHtml

public static final java.lang.String TAG_ReportHtml
See Also:
Constant Field Values

TAG_ReportEmail

public static final java.lang.String TAG_ReportEmail
See Also:
Constant Field Values

TAG_Message

public static final java.lang.String TAG_Message
See Also:
Constant Field Values

ATTR_timestamp

public static final java.lang.String ATTR_timestamp
See Also:
Constant Field Values

ATTR_timezone

public static final java.lang.String ATTR_timezone
See Also:
Constant Field Values

ATTR_name

public static final java.lang.String ATTR_name
See Also:
Constant Field Values

ATTR_type

public static final java.lang.String ATTR_type
See Also:
Constant Field Values

ATTR_format

public static final java.lang.String ATTR_format
See Also:
Constant Field Values

ATTR_encoding

public static final java.lang.String ATTR_encoding
See Also:
Constant Field Values

ATTR_sent

public static final java.lang.String ATTR_sent
See Also:
Constant Field Values
Constructor Detail

ReportTable

public ReportTable()

ReportTable

protected ReportTable(ReportHeader rh,
                      ReportBody rb)
Method Detail

writeReport

public int writeReport(java.lang.String format,
                       ReportData rd,
                       OutputProvider out,
                       int indentLevel)
                throws ReportException
Specified by:
writeReport in interface ReportPresentation
Throws:
ReportException

writeReport

public int writeReport(ReportURL.Format rptFormat,
                       ReportData rd,
                       OutputProvider out,
                       int indentLevel)
                throws ReportException
Specified by:
writeReport in interface ReportPresentation
Throws:
ReportException

EncodeURL

public static java.lang.String EncodeURL(RequestProperties reqState,
                                         URIArg url)

FilterText

public static java.lang.String FilterText(java.lang.String s)

_writeHTMLReport

protected static java.lang.String _writeHTMLReport(RequestProperties reqState,
                                                   ReportData report,
                                                   boolean base64Encode)

XmlFilter

public static java.lang.String XmlFilter(boolean isSoapReq,
                                         java.lang.String value)

XmlFilter

public static java.lang.String XmlFilter(boolean isSoapReq,
                                         long value)

XmlFilter

public static java.lang.String XmlFilter(boolean isSoapReq,
                                         int value)

XmlFilter

public static java.lang.String XmlFilter(boolean isSoapReq,
                                         boolean value)

csvFilter

public static java.lang.String csvFilter(java.lang.String value)

_createHeaderColumnTemplate

protected HeaderColumnTemplate _createHeaderColumnTemplate(DataColumnTemplate dct)

getHeaderColumnTemplate

public HeaderColumnTemplate getHeaderColumnTemplate(DataColumnTemplate dct)

_createBodyColumnTemplate

protected BodyColumnTemplate _createBodyColumnTemplate(DataColumnTemplate dct)

getBodyColumnTemplate

public BodyColumnTemplate getBodyColumnTemplate(DataColumnTemplate dct)