wt.templateutil.table
Class AttributeHTMLTable

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

public class AttributeHTMLTable
extends HTMLTable
implements Serializable

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String DEFAULT_NAME_COLUMN_COMPONENT
           
private static String DEFAULT_VALUE_COLUMN_COMPONENT
           
private  HTMLComponent nameColumnComponent
           
private static String RESOURCE
           
private  HTMLComponent valueColumnComponent
           
private static boolean VERBOSE
           
private static String versionID
           
 
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, EMPTY_STRING, ID, ID_US_ENGLISH_LOCALE, NAME, NULLVALUE, PRINT_TAG_ATTR, SERVICENAME, UPDATE, VIEW
 
Constructor Summary
AttributeHTMLTable(TableModel tableModel, HTMLTableColumnModel tableColumnModel)
           
 
Method Summary
protected  HTMLComponent getComponentByName(String className)
           
protected  HTMLComponent getNameColumnComponent()
           
protected  HTMLComponent getValueColumnComponent()
           
 String printRow(int rowNumber, Object value, Properties formData)
          Returns a string that represents one table row of data.
protected  void setNameColumnComponent(HTMLComponent nameColumnComponent)
           
protected  void setValueColumnComponent(HTMLComponent valueColumnComponent)
           
 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, getCellComponent, 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, printHeaders, removeColumn, setCellSelector, setComponentFactory, setDisplayHeader, setFormData, setHeaderSelector, setLocale, setMode, setOutputStream, setShowDirect, setTableColumnModel, setTableContext, setTableModel, show, show
 
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

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

DEFAULT_NAME_COLUMN_COMPONENT

private static final String DEFAULT_NAME_COLUMN_COMPONENT

DEFAULT_VALUE_COLUMN_COMPONENT

private static final String DEFAULT_VALUE_COLUMN_COMPONENT

VERBOSE

private static final boolean VERBOSE

nameColumnComponent

private HTMLComponent nameColumnComponent

valueColumnComponent

private HTMLComponent valueColumnComponent
Constructor Detail

AttributeHTMLTable

public AttributeHTMLTable(TableModel tableModel,
                          HTMLTableColumnModel tableColumnModel)
Method Detail

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

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

getNameColumnComponent

protected HTMLComponent getNameColumnComponent()

setNameColumnComponent

protected void setNameColumnComponent(HTMLComponent nameColumnComponent)

getValueColumnComponent

protected HTMLComponent getValueColumnComponent()

setValueColumnComponent

protected void setValueColumnComponent(HTMLComponent valueColumnComponent)

getComponentByName

protected HTMLComponent getComponentByName(String className)