Package wt.templateutil.table
Class WTHtmlTable
java.lang.Object
wt.templateutil.components.HTMLComponent
wt.templateutil.components.HTMLTableComponent
wt.templateutil.table.HTMLTable
wt.templateutil.table.WTHtmlTable
- All Implemented Interfaces:
CheckBoxColumnAble,HTMLTableColumnModel
- Direct Known Subclasses:
PDMLinkHTMLTable
Deprecated.
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.
Subclass of HTMLTable that adds the addition functionality of being able to add/display a checkbox column based on the value of the presentCheckBox field. If the presentCheckBox field is false (the default), then the WTHtmlTable functions essentially the same as the HTMLTable. However, if the presentCheckBox is set to true then the first column in the table will present a checkbox in every row (via CheckBoxTableColumn) and the corresponding TableModel used by the WTHtmlTable will be updated with the new column. The handle for the new column in the TableModel will be the current value of the field, checkBoxName. The default value for this field is CheckBoxColumnAble.CHECK_BOX_COLUMN_NAME. This value can be set using the setCheckBoxName method(do this before calling the createDefaultColumnsFromModel method). If the AssociationTableModel is being used as the TableModel, the checkbox column will be associated with the OtherSide class.
Subclass of HTMLTable that adds the addition functionality of being able to add/display a checkbox column based on the value of the presentCheckBox field. If the presentCheckBox field is false (the default), then the WTHtmlTable functions essentially the same as the HTMLTable. However, if the presentCheckBox is set to true then the first column in the table will present a checkbox in every row (via CheckBoxTableColumn) and the corresponding TableModel used by the WTHtmlTable will be updated with the new column. The handle for the new column in the TableModel will be the current value of the field, checkBoxName. The default value for this field is CheckBoxColumnAble.CHECK_BOX_COLUMN_NAME. This value can be set using the setCheckBoxName method(do this before calling the createDefaultColumnsFromModel method). If the AssociationTableModel is being used as the TableModel, the checkbox column will be associated with the OtherSide class.
It is a requirement that the TableModel used by the WTHTmlTable implements
the AddColumn interface.
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, SERVICENAMEFields inherited from interface wt.templateutil.table.CheckBoxColumnAble
PRESENT_CHECK_BOX -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanDeprecated.Gets the flag indicating whether to present a checkbox at the front of the table.protected CheckBoxTableColumnnewCheckBoxTableColumn(int tableModelIndex) Deprecated.voidsetPresentCheckBox(boolean a_PresentCheckBox) Deprecated.Sets the flag indicating whether to present a checkbox at the front of the table.Methods inherited from class wt.templateutil.table.HTMLTable
addNewColumn, getCellSelector, getColumnClass, getColumnName, getHeaderSelector, getLocale, getMode, getOutputStream, getRowCount, getValueAt, isDisplayHeader, isShowDirect, printHeaders, printRow, setCellSelector, setDisplayHeader, setHeaderSelector, setLocale, setMode, setOutputStream, setShowDirect, setTableColumnModel, setTableModel, show, showMethods 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
-
Method Details
-
createDefaultColumnsFromModel
public void createDefaultColumnsFromModel()Deprecated.Initializes the DefaultHTMLTableColumnModel based on the current TableModel. If presentCheckBox=true, then the first column in the DefaultHTMLTableColumnModel will be an instance of the CheckBoxTableColumn and the TableModel will be updated by adding a new column to it to represent the new checkbox column.
Supported API: true- Overrides:
createDefaultColumnsFromModelin classHTMLTable
-
newCheckBoxTableColumn
Deprecated.Returns a new instance of CheckBoxTableColumn, configured for use in this table.
Supported API: true- Parameters:
tableModelIndex-- Returns:
- CheckBoxTableColumn
-
isPresentCheckBox
public boolean isPresentCheckBox()Deprecated.Gets the flag indicating whether to present a checkbox at the front of the table.
Supported API: true- Specified by:
isPresentCheckBoxin interfaceCheckBoxColumnAble- Returns:
- boolean
-
setPresentCheckBox
public void setPresentCheckBox(boolean a_PresentCheckBox) Deprecated.Sets the flag indicating whether to present a checkbox at the front of the table.
Supported API: true- Specified by:
setPresentCheckBoxin interfaceCheckBoxColumnAble- Parameters:
a_PresentCheckBox-
-