wt.replication.unit.htmlGeneration
Class htmlGenUtil

java.lang.Object
  extended bywt.replication.unit.htmlGeneration.htmlGenUtil

public class htmlGenUtil
extends Object


Field Summary
static int ALREADY_SCHEDULED
           
private static String BLANK_SPACE
           
static int CANNOT_DELETE
           
static int CANNOT_RESUME
           
static int CANNOT_SUSPEND
           
static int DELETE
           
static int EDIT
           
static int EXPORT
           
static int IMPORT
           
static int INTERAL_ERROR
           
static int INVALID_TEAMTEMPLATE_NAME
           
static int INVALID_TIMESTAMP
           
static int ITEM_DELETED
           
static int ITEM_RESUMED
           
static int ITEM_SUSPENED
           
private  Locale locale
           
static int NULL_DESTINATION
           
static int OPERATION_COMPLETE
           
private  PrintWriter pwOut
           
static int RECEIVE
           
private static String RESOURCE
           
static int RESUME
           
static int SCHEDULED
           
static int SCHEDULESTATUS
           
static int SCHEDULING_FAILURE
           
static int SEND
           
static int SUSPEND
           
 
Constructor Summary
htmlGenUtil(PrintWriter out, Locale loc)
           
 
Method Summary
 String getLink(String sUrl, String sLabel)
          Return the schedule status link string.
static String getMessage(String sTarget, Locale locale)
          Wrapper for getLocalizedMessage used to minimize text in processors that generates html.
 String getScheduleURLLabel(int iAction)
          Returns a localized label for a URL for the actions.
 void writeBlankRow(int iNumOfCells)
          Write out a blank row
 void writeCheckBoxButton(String sAlign, String sName, String sValue, String sLabel, boolean bChecked)
          Write out a checkbox button
 void writeEndForm()
          Write out a ending form tag
 void writeEndRow()
          Write out a ending row tag
 void writeEndSelect()
          Write out a ending select tag
 void writeEndTable()
          Write out a ending table tag
 void writeEndTableBody()
          Write out a ending table body
 void writeEndTableData()
          Write out a ending table data tag
 void writeEndTableHead()
          Write out a ending table head tag
 void writeEndTableHeadData()
          Write out a ending table head data tag
 void writeFileField(String sAlign, String name, Integer size)
          Browsing file system feature
 void writeHeaderColumn(String sLabel, int iColspan)
          Write out header column.
 void writeHiddenField(String sName, String sValue)
          Write out a hidden field
 void writeHorizontalRule()
          Write out horizontal rule tag
 void writeLink(String sUrl, int iLinkFlag, boolean bShow)
          Write out the schedule link.
 void writeLink(String sUrl, String sLabel, boolean bShow)
          Write out the regular link.
 void writeLinkRowData(String sClass, int iColspan)
          Write out a part of the link cell for a report
 void writeLinkSpacer()
          Write out space between links.
 void writeOption(String sItem, boolean bSelected)
          Write out a option item
 void writeParagraph(int iNum)
          Write paragraph
 void writeRadioButton(String sAlign, String sName, String sValue, String sLabel, boolean bChecked)
          Write out a radio button per row
 void writeRadioButtons(String sAlign, String[] sNames, String[] sValues, String[] sLabels, boolean[] bCheckeds, int spaces)
          Write radio buttons per row cell in the tabulation.
 void writeReportRowData(String sClass, int iPercent, int iRowspan, int iColspan, String sData)
          Write out a table cell for a report
 void writeRowData(int iPercent, int iRowspan, int iColspan, boolean bWrap, String sData)
          Write out the row data
 void writeRowData(String sData, int iWidth)
          Write out the row data.
 void writeRowLabel(String sLabel, boolean bBold, int iWidth)
          Write out the row label.
 void writeStandardColumns()
          Write out the standard header column for all status pages.
 void writeStandardData(WTUnit wtUnit, UnitOperationRecord uor)
          Write out the standard data for status pages.
 void writeStandardData(WTUnit wtUnit, UnitOperationRecord uor, String sURL)
          Write out the standard data for status pages with a link on the unit name.
 void writeStartForm(String sUrl)
          Write out a begining form tag
 void writeStartForm(String name, String enctype, String sUrl, String method)
          Write out a begining form with name tag
 void writeStartRow()
          Write out a begining row tag
 void writeStartRow(String sAlign, String sVAlign)
          Write out a begining row tag
 void writeStartSelect(String sName)
          Write out a begining select tag
 void writeStartTable(String sAlign, int iBorder, int iCellpad, int iCellspace, int iWidth)
          Write out a begining table tag
 void writeStartTableBody()
          Write out a begining table body
 void writeStartTableData(String sAlign, int iColspan, int iWidth)
          Write out a begining table data tag
 void writeStartTableHead(String sAlign)
          Write out a begining table head tag
 void writeStartTableHeadData(String sAlign)
          Write out a begining table head data tag
 void writeSubmitButton(String sName, String sLabel)
          Write out a submit button
 void writeTextArea(String sAlign, int iSpan, int iWidth, String sName, int iRows, int iCols, String sValue)
          Write out a text area
 void writeTextField(String sAlign, String sName, int iSize, String sValue)
          Write out a text field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

SUSPEND

public static final int SUSPEND
See Also:
Constant Field Values

RESUME

public static final int RESUME
See Also:
Constant Field Values

EDIT

public static final int EDIT
See Also:
Constant Field Values

DELETE

public static final int DELETE
See Also:
Constant Field Values

EXPORT

public static final int EXPORT
See Also:
Constant Field Values

SEND

public static final int SEND
See Also:
Constant Field Values

RECEIVE

public static final int RECEIVE
See Also:
Constant Field Values

IMPORT

public static final int IMPORT
See Also:
Constant Field Values

SCHEDULESTATUS

public static final int SCHEDULESTATUS
See Also:
Constant Field Values

SCHEDULED

public static final int SCHEDULED
See Also:
Constant Field Values

SCHEDULING_FAILURE

public static final int SCHEDULING_FAILURE
See Also:
Constant Field Values

ALREADY_SCHEDULED

public static final int ALREADY_SCHEDULED
See Also:
Constant Field Values

INVALID_TIMESTAMP

public static final int INVALID_TIMESTAMP
See Also:
Constant Field Values

INTERAL_ERROR

public static final int INTERAL_ERROR
See Also:
Constant Field Values

ITEM_DELETED

public static final int ITEM_DELETED
See Also:
Constant Field Values

ITEM_SUSPENED

public static final int ITEM_SUSPENED
See Also:
Constant Field Values

CANNOT_SUSPEND

public static final int CANNOT_SUSPEND
See Also:
Constant Field Values

ITEM_RESUMED

public static final int ITEM_RESUMED
See Also:
Constant Field Values

CANNOT_RESUME

public static final int CANNOT_RESUME
See Also:
Constant Field Values

CANNOT_DELETE

public static final int CANNOT_DELETE
See Also:
Constant Field Values

OPERATION_COMPLETE

public static final int OPERATION_COMPLETE
See Also:
Constant Field Values

INVALID_TEAMTEMPLATE_NAME

public static final int INVALID_TEAMTEMPLATE_NAME
See Also:
Constant Field Values

NULL_DESTINATION

public static final int NULL_DESTINATION
See Also:
Constant Field Values

BLANK_SPACE

private static final String BLANK_SPACE
See Also:
Constant Field Values

pwOut

private PrintWriter pwOut

locale

private Locale locale
Constructor Detail

htmlGenUtil

public htmlGenUtil(PrintWriter out,
                   Locale loc)
Method Detail

getScheduleURLLabel

public String getScheduleURLLabel(int iAction)
Returns a localized label for a URL for the actions.

Returns:
String

writeLink

public void writeLink(String sUrl,
                      int iLinkFlag,
                      boolean bShow)
Write out the schedule link. If the link is not to be shown out put the link label just as text with no href.


getLink

public String getLink(String sUrl,
                      String sLabel)
Return the schedule status link string.


writeLink

public void writeLink(String sUrl,
                      String sLabel,
                      boolean bShow)
Write out the regular link. If the link is not to be shown out put the link label just as text with no href.


writeLinkSpacer

public void writeLinkSpacer()
Write out space between links.


writeHeaderColumn

public void writeHeaderColumn(String sLabel,
                              int iColspan)
Write out header column.


writeStandardColumns

public void writeStandardColumns()
Write out the standard header column for all status pages.


writeStandardData

public void writeStandardData(WTUnit wtUnit,
                              UnitOperationRecord uor)
Write out the standard data for status pages.


writeStandardData

public void writeStandardData(WTUnit wtUnit,
                              UnitOperationRecord uor,
                              String sURL)
Write out the standard data for status pages with a link on the unit name.


writeRowData

public void writeRowData(String sData,
                         int iWidth)
Write out the row data.


writeRowData

public void writeRowData(int iPercent,
                         int iRowspan,
                         int iColspan,
                         boolean bWrap,
                         String sData)
Write out the row data


writeReportRowData

public void writeReportRowData(String sClass,
                               int iPercent,
                               int iRowspan,
                               int iColspan,
                               String sData)
Write out a table cell for a report


writeLinkRowData

public void writeLinkRowData(String sClass,
                             int iColspan)
Write out a part of the link cell for a report


writeRowLabel

public void writeRowLabel(String sLabel,
                          boolean bBold,
                          int iWidth)
Write out the row label.


writeTextField

public void writeTextField(String sAlign,
                           String sName,
                           int iSize,
                           String sValue)
Write out a text field


writeTextArea

public void writeTextArea(String sAlign,
                          int iSpan,
                          int iWidth,
                          String sName,
                          int iRows,
                          int iCols,
                          String sValue)
Write out a text area


writeStartRow

public void writeStartRow()
Write out a begining row tag


writeStartRow

public void writeStartRow(String sAlign,
                          String sVAlign)
Write out a begining row tag


writeEndRow

public void writeEndRow()
Write out a ending row tag


writeStartTableData

public void writeStartTableData(String sAlign,
                                int iColspan,
                                int iWidth)
Write out a begining table data tag


writeEndTableData

public void writeEndTableData()
Write out a ending table data tag


writeStartTableHead

public void writeStartTableHead(String sAlign)
Write out a begining table head tag


writeEndTableHead

public void writeEndTableHead()
Write out a ending table head tag


writeStartTableHeadData

public void writeStartTableHeadData(String sAlign)
Write out a begining table head data tag


writeEndTableHeadData

public void writeEndTableHeadData()
Write out a ending table head data tag


writeStartTableBody

public void writeStartTableBody()
Write out a begining table body


writeEndTableBody

public void writeEndTableBody()
Write out a ending table body


writeStartTable

public void writeStartTable(String sAlign,
                            int iBorder,
                            int iCellpad,
                            int iCellspace,
                            int iWidth)
Write out a begining table tag


writeEndTable

public void writeEndTable()
Write out a ending table tag


writeStartForm

public void writeStartForm(String sUrl)
Write out a begining form tag


writeStartForm

public void writeStartForm(String name,
                           String enctype,
                           String sUrl,
                           String method)
Write out a begining form with name tag


writeEndForm

public void writeEndForm()
Write out a ending form tag


writeStartSelect

public void writeStartSelect(String sName)
Write out a begining select tag


writeEndSelect

public void writeEndSelect()
Write out a ending select tag


writeOption

public void writeOption(String sItem,
                        boolean bSelected)
Write out a option item


writeRadioButton

public void writeRadioButton(String sAlign,
                             String sName,
                             String sValue,
                             String sLabel,
                             boolean bChecked)
Write out a radio button per row


writeRadioButtons

public void writeRadioButtons(String sAlign,
                              String[] sNames,
                              String[] sValues,
                              String[] sLabels,
                              boolean[] bCheckeds,
                              int spaces)
Write radio buttons per row cell in the tabulation. The size of the arrays are expected to be the same


writeCheckBoxButton

public void writeCheckBoxButton(String sAlign,
                                String sName,
                                String sValue,
                                String sLabel,
                                boolean bChecked)
Write out a checkbox button


writeFileField

public void writeFileField(String sAlign,
                           String name,
                           Integer size)
Browsing file system feature


writeSubmitButton

public void writeSubmitButton(String sName,
                              String sLabel)
Write out a submit button


writeHiddenField

public void writeHiddenField(String sName,
                             String sValue)
Write out a hidden field


writeBlankRow

public void writeBlankRow(int iNumOfCells)
Write out a blank row


writeParagraph

public void writeParagraph(int iNum)
Write paragraph


writeHorizontalRule

public void writeHorizontalRule()
Write out horizontal rule tag


getMessage

public static String getMessage(String sTarget,
                                Locale locale)
Wrapper for getLocalizedMessage used to minimize text in processors that generates html.