wt.templateutil.table
Class HTMLTable

java.lang.Object
  extended by wt.templateutil.components.HTMLComponent
      extended by wt.templateutil.components.HTMLTableComponent
          extended by wt.templateutil.table.HTMLTable
All Implemented Interfaces:
HTMLTableColumnModel
Direct Known Subclasses:
ExpandableTable, WTHtmlTable

Deprecated.

public class HTMLTable
extends HTMLTableComponent
implements HTMLTableColumnModel

The base class that generates tables from implementations of TableModels. It works with the HTMLTableColumns and an implementation of an HTMLTableColumnModel to control the generation of the HTML table.

There are several ways to customize and/or configure the HTMLTable to control the presentation of the table that is generated by the HTMLTable. The following three ways are currently available:


For more information see the customizer's guide.

Deprecation Notice: This class is still valid for this release, however this serves as advance notice that it will be removed in the future. All user interfaces built using the Windchill HTML Template Processing client architecture will be rewritten using a different framework in an upcoming release.

Supported API: true

Extendable: false


Field Summary
 
Fields inherited from class wt.templateutil.components.HTMLTableComponent
ALIGN, BGCOLOR, BORDER, CELLPADDING, CELLSPACING, HEIGHT, HSPACE, VSPACE, WIDTH
 
Fields inherited from class wt.templateutil.components.HTMLComponent
DEFAULT_SERVICE_NAME, DEFAULTS_ONLY, PRINT_TAG_ATTR, SERVICENAME
 
Constructor Summary
HTMLTable(int numRows, int numColumns)
          Deprecated.  
HTMLTable(TableModel tableModel)
          Deprecated.  
HTMLTable(TableModel tableModel, HTMLTableColumnModel htmlTableColumnModel)
          Deprecated.  
HTMLTable(Vector rowData, Vector columnNames, Locale locale)
          Deprecated.  
 
Method Summary
 void addColumn(HTMLTableColumn newColumn)
          Deprecated.  
 void addNewColumn()
          Deprecated.  
 void createDefaultColumnsFromModel()
          Deprecated.  
 String getCellSelector()
          Deprecated.  
 HTMLTableColumn getColumn(int index)
          Deprecated.  
 HTMLTableColumn getColumn(Object identifier)
          Deprecated.  
 Class getColumnClass(int columnIndex)
          Deprecated.  
 int getColumnCount()
          Deprecated.  
 int getColumnIndex(Object columnIdentifier)
          Deprecated.  
 String getColumnName(int columnIndex)
          Deprecated.  
 Enumeration getColumns()
          Deprecated.  
 String getHeaderSelector()
          Deprecated.  
 Locale getLocale()
          Deprecated.  
 String getMode()
          Deprecated.  
 OutputStream getOutputStream()
          Deprecated.  
 int getRowCount()
          Deprecated.  
 Object getValueAt(int rowIndex, int columnIndex)
          Deprecated.  
 boolean isDisplayHeader()
          Deprecated.  
 boolean isShowDirect()
          Deprecated.  
 void moveColumn(int oldIndex, int newIndex)
          Deprecated.  
 String printHeaders(Object value, Properties formData, OutputStream os, Locale locale)
          Deprecated.  
 String printRow(int rowNumber, Object value, Properties formData)
          Deprecated.  
 void removeColumn(int index)
          Deprecated.  
 void setCellSelector(String a_CellSelector)
          Deprecated.  
 void setDisplayHeader(boolean a_DisplayHeader)
          Deprecated.  
 void setHeaderSelector(String a_HeaderSelector)
          Deprecated.  
 void setLocale(Locale a_Locale)
          Deprecated.  
 void setMode(String a_Mode)
          Deprecated.  
 void setOutputStream(OutputStream a_OutputStream)
          Deprecated.  
 void setShowDirect(boolean a_ShowDirect)
          Deprecated.  
 void setTableColumnModel(HTMLTableColumnModel a_TableColumnModel)
          Deprecated.  
 void setTableModel(TableModel a_TableModel)
          Deprecated.  
 String show(Object value, Properties formData, OutputStream os, Locale locale)
          Deprecated.  
 void show(Properties formData)
          Deprecated.  
 
Methods inherited from class wt.templateutil.components.HTMLTableComponent
getTag, init, setTagListArray
 
Methods inherited from class wt.templateutil.components.HTMLComponent
endComponent, getHtmlComponents, getPrintWriter, getServiceName, getTagList, getTagSettings, isInheritStyle, isPrintTagAttributes, isUseDefaultsOnly, main, setInheritStyle, setPrintTagAttributes, setServiceName, 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
 

Constructor Detail

HTMLTable

public HTMLTable(int numRows,
                 int numColumns)
Deprecated. 



Supported API: true

Parameters:
numRows -
numColumns -

HTMLTable

public HTMLTable(TableModel tableModel)
Deprecated. 



Supported API: true

Parameters:
tableModel -

HTMLTable

public HTMLTable(TableModel tableModel,
                 HTMLTableColumnModel htmlTableColumnModel)
Deprecated. 



Supported API: true

Parameters:
tableModel -
htmlTableColumnModel -

HTMLTable

public HTMLTable(Vector rowData,
                 Vector columnNames,
                 Locale locale)
Deprecated. 



Supported API: true

Parameters:
rowData -
columnNames -
locale -
Method Detail

getOutputStream

public OutputStream getOutputStream()
Deprecated. 

Gets the value of the attribute: outputStream.

Supported API: true

Returns:
OutputStream

setOutputStream

public void setOutputStream(OutputStream a_OutputStream)
Deprecated. 

Sets the value of the attribute: outputStream.

Supported API: true

Parameters:
a_OutputStream -

getLocale

public Locale getLocale()
Deprecated. 

Gets the value of the attribute: locale.

Supported API: true

Returns:
Locale

setLocale

public void setLocale(Locale a_Locale)
Deprecated. 

Sets the value of the attribute: locale.

Supported API: true

Parameters:
a_Locale -

getMode

public String getMode()
Deprecated. 

Gets the value of the attribute: mode.

Supported API: true

Returns:
String

setMode

public void setMode(String a_Mode)
Deprecated. 

Sets the value of the attribute: mode.

Supported API: true

Parameters:
a_Mode -

getCellSelector

public String getCellSelector()
Deprecated. 

Gets the value of the attribute: cellSelector.

Supported API: true

Returns:
String

setCellSelector

public void setCellSelector(String a_CellSelector)
Deprecated. 

Sets the value of the attribute: cellSelector.

Supported API: true

Parameters:
a_CellSelector -

getHeaderSelector

public String getHeaderSelector()
Deprecated. 

Gets the value of the attribute: headerSelector.

Supported API: true

Returns:
String

setHeaderSelector

public void setHeaderSelector(String a_HeaderSelector)
Deprecated. 

Sets the value of the attribute: headerSelector.

Supported API: true

Parameters:
a_HeaderSelector -

isShowDirect

public boolean isShowDirect()
Deprecated. 

Gets the value of the attribute: showDirect.

Supported API: true

Returns:
boolean

setShowDirect

public void setShowDirect(boolean a_ShowDirect)
Deprecated. 

Sets the value of the attribute: showDirect.

Supported API: true

Parameters:
a_ShowDirect -

isDisplayHeader

public boolean isDisplayHeader()
Deprecated. 

Gets the value of the attribute: displayHeader.

Supported API: true

Returns:
boolean

setDisplayHeader

public void setDisplayHeader(boolean a_DisplayHeader)
Deprecated. 

Sets the value of the attribute: displayHeader.

Supported API: true

Parameters:
a_DisplayHeader -

setTableModel

public void setTableModel(TableModel a_TableModel)
Deprecated. 

Sets the object for the association that plays role: tableModel.

Supported API: true

Parameters:
a_TableModel -

setTableColumnModel

public void setTableColumnModel(HTMLTableColumnModel a_TableColumnModel)
Deprecated. 

Sets the object for the association that plays role: tableColumnModel.

Supported API: true

Parameters:
a_TableColumnModel -

getColumnClass

public Class getColumnClass(int columnIndex)
Deprecated. 

Returns the column class in the table model at the specified index.

Supported API: true

Parameters:
columnIndex -
Returns:
Class

getColumnName

public String getColumnName(int columnIndex)
Deprecated. 

Gets the name of the column in the table model at the specified index.

Supported API: true

Parameters:
columnIndex -
Returns:
String

getRowCount

public int getRowCount()
Deprecated. 

Returns the number of rows of data contained in the table model.

Supported API: true

Returns:
int

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Deprecated. 

Returns the object contained in the table model in the location indicated by the row index and column index provided.

Supported API: true

Parameters:
rowIndex -
columnIndex -
Returns:
Object

printRow

public String printRow(int rowNumber,
                       Object value,
                       Properties formData)
Deprecated. 

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

Parameters:
rowNumber -
value -
formData -
Returns:
String

show

public void show(Properties formData)
Deprecated. 

Sets the table's form data to the form data passed in and then calls showSubComponents to display the table.

Supported API: true

Parameters:
formData -

addNewColumn

public void addNewColumn()
Deprecated. 

This method does nothing.

Supported API: true


printHeaders

public String printHeaders(Object value,
                           Properties formData,
                           OutputStream os,
                           Locale locale)
Deprecated. 

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

Parameters:
value -
formData -
os -
locale -
Returns:
String

addColumn

public void addColumn(HTMLTableColumn newColumn)
Deprecated. 

Adds a column to the HTMLTableModel.

Supported API: true

Specified by:
addColumn in interface HTMLTableColumnModel
Parameters:
newColumn -

getColumn

public HTMLTableColumn getColumn(int index)
Deprecated. 

Get the HTMLTableColumn object at column position index.

Supported API: true

Specified by:
getColumn in interface HTMLTableColumnModel
Parameters:
index -
Returns:
HTMLTableColumn

getColumn

public HTMLTableColumn getColumn(Object identifier)
Deprecated. 

Get the HTMLTableColumn object with an identifier equal to the parameter identifier.

Supported API: true

Specified by:
getColumn in interface HTMLTableColumnModel
Parameters:
identifier -
Returns:
HTMLTableColumn

getColumnCount

public int getColumnCount()
Deprecated. 

Returns the current number of columns set to be displayed by the HTMLTable

Supported API: true

Specified by:
getColumnCount in interface HTMLTableColumnModel
Returns:
int

moveColumn

public void moveColumn(int oldIndex,
                       int newIndex)
Deprecated. 

Move the column with the display position of oldIndex to the display position of newIndex. The action taken on the column at newIndex is up to the implementation.

Supported API: true

Specified by:
moveColumn in interface HTMLTableColumnModel
Parameters:
oldIndex -
newIndex -

removeColumn

public void removeColumn(int index)
Deprecated. 

Remove the column at display position index from the HTMLTableColumnModel. All of the columns behind the deleted column are moved forwards one position.

Supported API: true

Specified by:
removeColumn in interface HTMLTableColumnModel
Parameters:
index -

getColumnIndex

public int getColumnIndex(Object columnIdentifier)
Deprecated. 

Returns the index of the column in the TableModel that corresponds to the column in the HTMLTableColumnModel with the identifier equal to columnIdentifier.

Supported API: true

Specified by:
getColumnIndex in interface HTMLTableColumnModel
Parameters:
columnIdentifier -
Returns:
int

getColumns

public Enumeration getColumns()
Deprecated. 

Returns an enumeration of the HTMLTableColumns to be displayed by the HTMLTable.

Supported API: true

Specified by:
getColumns in interface HTMLTableColumnModel
Returns:
Enumeration

createDefaultColumnsFromModel

public void createDefaultColumnsFromModel()
Deprecated. 

Goes through the Table Model and creates a default column for each column model in the table model.

Supported API: true


show

public String show(Object value,
                   Properties formData,
                   OutputStream os,
                   Locale locale)
Deprecated. 

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 HTMLComponent
Returns:
String