wt.templateutil.table
Class NavigationBarHTMLTable

java.lang.Object
  extended bywt.templateutil.components.HTMLComponent
      extended bywt.templateutil.components.HTMLTableComponent
          extended bywt.templateutil.table.HTMLTable
              extended bywt.templateutil.table.NavigationBarHTMLTable
All Implemented Interfaces:
HTMLTableColumnModel

public class NavigationBarHTMLTable
extends HTMLTable


Field Summary
private static int BUFFER_LENGTH
           
private static String EMPTY_STRING
           
private static String END_ROW_TAG
           
private static String NAVIGATION_TABLE_SERVICE
           
private static String START_ROW_TAG
           
private  int tableWidth
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.templateutil.table.HTMLTable
DEFAULT_TABLE_CELL_ID_VALUE, formData, tableContext, TABLECONTEXT
 
Fields inherited from class wt.templateutil.components.HTMLTableComponent
ALIGN, BGCOLOR, BORDER, CELLPADDING, CELLSPACING, HEIGHT, HSPACE, TABLE_ALIGN, TABLE_BGCOLOR, TABLE_BORDER, TABLE_CELLPADDING, TABLE_CELLSPACING, TABLE_HEIGHT, TABLE_HSPACE, TABLE_VSPACE, TABLE_WIDTH, TAG, VSPACE, WIDTH
 
Fields inherited from class wt.templateutil.components.HTMLComponent
CLASS, COMPONENT_ID, COMPONENT_ID_SEPARATOR, CREATE, DEFAULT_SERVICE_NAME, DEFAULTS_ONLY, ID, ID_US_ENGLISH_LOCALE, NAME, NULLVALUE, PRINT_TAG_ATTR, SERVICENAME, UPDATE, VIEW
 
Constructor Summary
NavigationBarHTMLTable()
           
 
Method Summary
 HTMLComponent getCellComponent(int rowNumber, int column, Properties props)
           
 int getTableWidth()
           
 String printHeaders(Object value, Properties formData, OutputStream os, Locale locale)
          Returns a string that contains a table row with table data for each of the column headers.
 String printRow(int rowNumber, Object value, Properties formData)
          Returns a string that represents one table row of data.
 void setTableWidth(int tableWidth)
           
 String show(Object value, Properties formData, OutputStream os, Locale locale)
          Sets up the data models for the table, creates the columns, and then calls the super class show method.
 void show(Properties formData)
          Sets the table's form data to the form data passed in and then calls showSubComponents to display the table.
 String showSubComponents(Object value, Properties formData, OutputStream os, Locale locale)
          Returns a string that is the contcatenation of the result of calling show() on all the associated subComponents sequentially.
 
Methods inherited from class wt.templateutil.table.HTMLTable
add2Table, addColumn, addNewColumn, createDefaultColumnsFromModel, getCellSelector, getColumn, getColumn, getColumnClass, getColumnCount, getColumnIndex, getColumnName, getColumns, getComponentFactory, getFormData, getHeaderSelector, getLocale, getMode, getOutputStream, getRowCount, getTableCellID, getTableColumnModel, getTableContext, getTableHeaderCellID, getTableModel, getUniqueTableCellTrailId, getValueAt, isDisplayHeader, isShowDirect, moveColumn, removeColumn, setCellSelector, setComponentFactory, setDisplayHeader, setFormData, setHeaderSelector, setLocale, setMode, setOutputStream, setShowDirect, setTableColumnModel, setTableContext, setTableModel
 
Methods inherited from class wt.templateutil.components.HTMLTableComponent
getTag, init, setTagListArray
 
Methods inherited from class wt.templateutil.components.HTMLComponent
appendID, appendID, appendToID, appendToID, createIDForComponent, endComponent, getHtmlComponents, getID, getIdProp, getName, getOID, getPrintWriter, getRealValue, getServiceName, getState, getTagID, getTagIDKey, getTagList, getTagSettings, getURLFactory, insertID, insertID, isInheritStyle, isPrintTagAttributes, isUseDefaultsOnly, main, putTagID, putTagID, removeID, removeTagID, setHtmlComponents, setID, setInheritStyle, setName, setPrintTagAttributes, setServiceName, setState, setTag, setTagList, setTagListDefaults, setTagSettings, setTagValue, setUseDefaultsOnly, startComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING

private static final String EMPTY_STRING
See Also:
Constant Field Values

BUFFER_LENGTH

private static final int BUFFER_LENGTH
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE

START_ROW_TAG

private static final String START_ROW_TAG
See Also:
Constant Field Values

END_ROW_TAG

private static final String END_ROW_TAG
See Also:
Constant Field Values

NAVIGATION_TABLE_SERVICE

private static final String NAVIGATION_TABLE_SERVICE
See Also:
Constant Field Values

tableWidth

private int tableWidth
Constructor Detail

NavigationBarHTMLTable

public NavigationBarHTMLTable()
Method Detail

show

public void show(Properties formData)
Description copied from class: HTMLTable
Sets the table's form data to the form data passed in and then calls showSubComponents to display the table.

Supported API: true

Overrides:
show in class HTMLTable
Parameters:
formData -

show

public String show(Object value,
                   Properties formData,
                   OutputStream os,
                   Locale locale)
Description copied from class: HTMLTable
Sets up the data models for the table, creates the columns, and then calls the super class show method.

Supported API: true

Overrides:
show in class HTMLTable

showSubComponents

public String showSubComponents(Object value,
                                Properties formData,
                                OutputStream os,
                                Locale locale)
Description copied from class: HTMLComponent
Returns a string that is the contcatenation of the result of calling show() on all the associated subComponents sequentially.

Supported API: true

Overrides:
showSubComponents in class HTMLTable

printHeaders

public String printHeaders(Object value,
                           Properties formData,
                           OutputStream os,
                           Locale locale)
Description copied from class: HTMLTable
Returns a string that contains a table row with table data for each of the column headers. Unique ids are rendered for the coumn headers that require them.

Supported API: true

Overrides:
printHeaders in class HTMLTable
Parameters:
value -
formData -
os -
locale -
Returns:
String

printRow

public String printRow(int rowNumber,
                       Object value,
                       Properties formData)
Description copied from class: HTMLTable
Returns a string that represents one table row of data. Including the opening and closing tags and the table cell tags. The data in any given cell is encoded for display in the HTML UI.

Supported API: true

Overrides:
printRow in class HTMLTable
Parameters:
rowNumber -
value -
formData -
Returns:
String

getCellComponent

public HTMLComponent getCellComponent(int rowNumber,
                                      int column,
                                      Properties props)
Overrides:
getCellComponent in class HTMLTable

setTableWidth

public void setTableWidth(int tableWidth)

getTableWidth

public int getTableWidth()