Package wt.templateutil.table
Class HTMLTable
java.lang.Object
wt.templateutil.components.HTMLComponent
wt.templateutil.components.HTMLTableComponent
wt.templateutil.table.HTMLTable
- All Implemented Interfaces:
HTMLTableColumnModel
- Direct Known Subclasses:
WTHtmlTable
Deprecated.
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
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:
- Configuring the HTMLTable via fields on the HTMLTable as follows:
- Setting the cellSelector to look for custom HTML components to render the cell.
- Setting the headerSelector to look for custom HTML components to render the header.
- Setting the displayHeader field to show or hide the table headers.
- Overriding behavior by subclassing the following:
- createDefaultColumnsFromModel
- printHeaders
- printRow
- Using the HTML table service
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, WIDTHFields inherited from class wt.templateutil.components.HTMLComponent
DEFAULT_SERVICE_NAME, DEFAULTS_ONLY, PRINT_TAG_ATTR, SERVICENAME -
Constructor Summary
ConstructorsConstructorDescriptionHTMLTable(int numRows, int numColumns) Deprecated.Deprecated.HTMLTable(TableModel tableModel) Deprecated.HTMLTable(TableModel tableModel, HTMLTableColumnModel htmlTableColumnModel) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidDeprecated.Deprecated.getColumnClass(int columnIndex) Deprecated.getColumnName(int columnIndex) Deprecated.Deprecated.Deprecated.getMode()Deprecated.Deprecated.intDeprecated.getValueAt(int rowIndex, int columnIndex) Deprecated.booleanDeprecated.booleanDeprecated.printHeaders(Object value, Properties formData, OutputStream os, Locale locale) Deprecated.printRow(int rowNumber, Object value, Properties formData) Deprecated.voidsetCellSelector(String a_CellSelector) Deprecated.voidsetDisplayHeader(boolean a_DisplayHeader) Deprecated.voidsetHeaderSelector(String a_HeaderSelector) Deprecated.voidDeprecated.voidDeprecated.voidsetOutputStream(OutputStream a_OutputStream) Deprecated.voidsetShowDirect(boolean a_ShowDirect) Deprecated.voidsetTableColumnModel(HTMLTableColumnModel a_TableColumnModel) Deprecated.voidsetTableModel(TableModel a_TableModel) Deprecated.show(Object value, Properties formData, OutputStream os, Locale locale) Deprecated.voidshow(Properties formData) Deprecated.Methods inherited from class wt.templateutil.components.HTMLTableComponent
getTag, initMethods 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
-
Constructor Details
-
HTMLTable
public HTMLTable(int numRows, int numColumns) Deprecated.
Supported API: true- Parameters:
numRows-numColumns-
-
HTMLTable
Deprecated.
Supported API: true- Parameters:
tableModel-
-
HTMLTable
Deprecated.
Supported API: true- Parameters:
tableModel-htmlTableColumnModel-
-
HTMLTable
Deprecated.
Supported API: true- Parameters:
rowData-columnNames-locale-
-
-
Method Details
-
getOutputStream
Deprecated.Gets the value of the attribute: outputStream.
Supported API: true- Returns:
- OutputStream
-
setOutputStream
Deprecated.Sets the value of the attribute: outputStream.
Supported API: true- Parameters:
a_OutputStream-
-
getLocale
Deprecated.Gets the value of the attribute: locale.
Supported API: true- Returns:
- Locale
-
setLocale
Deprecated.Sets the value of the attribute: locale.
Supported API: true- Parameters:
a_Locale-
-
getMode
Deprecated.Gets the value of the attribute: mode.
Supported API: true- Returns:
- String
-
setMode
Deprecated.Sets the value of the attribute: mode.
Supported API: true- Parameters:
a_Mode-
-
getCellSelector
Deprecated.Gets the value of the attribute: cellSelector.
Supported API: true- Returns:
- String
-
setCellSelector
Deprecated.Sets the value of the attribute: cellSelector.
Supported API: true- Parameters:
a_CellSelector-
-
getHeaderSelector
Deprecated.Gets the value of the attribute: headerSelector.
Supported API: true- Returns:
- String
-
setHeaderSelector
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
Deprecated.Sets the object for the association that plays role: tableModel.
Supported API: true- Parameters:
a_TableModel-
-
setTableColumnModel
Deprecated.Sets the object for the association that plays role: tableColumnModel.
Supported API: true- Parameters:
a_TableColumnModel-
-
getColumnClass
Deprecated.Returns the column class in the table model at the specified index.
Supported API: true- Parameters:
columnIndex-- Returns:
- Class
-
getColumnName
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
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
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
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
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
-
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
Deprecated.Sets up the data models for the table, creates the columns, and then calls the super class show method.
Supported API: true- Overrides:
showin classHTMLComponent- Returns:
- String
-