|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.components.HTMLComponent
wt.templateutil.components.HTMLTableComponent
wt.templateutil.table.HTMLTable
wt.templateutil.table.WTHtmlTable
wt.templateutil.table.PDMLinkHTMLTable
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 WTHtmlTable that provides the following changes/modifications in addition the existing features of WTHtmlTable
In addition, all of the existing TableService script calls can be used with/applied to PDMLinkHTMLTable instances.
It is a requirement that the TableModel used by the PDMLinkHTMLTable implements
the AddColumn interface.
Supported API: true
Extendable: false
Field Summary | |
protected static String |
ACTION_LINK_END
Deprecated. |
protected static String |
ACTION_LINK_MIDDLE
Deprecated. |
protected static String |
ACTION_LINK_START
Deprecated. |
protected static String |
ACTION_ROW
Deprecated. |
private static String |
ACTIONLINK_TEMPLATE
Deprecated. |
private List |
actionList
Deprecated. |
private String |
actionNavBarName
Deprecated. |
private String |
actionNavBarStyleClass
Deprecated. |
protected static String |
ALIGN
Deprecated. |
protected static String |
BOLD
Deprecated. |
private String |
checkBoxName
Deprecated. |
protected static String |
CLASS
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
protected static String |
COLUMN_NAME
Deprecated. |
static String |
DEFAULT_ACTION_BAR_STYLE_CLASS
Deprecated. |
protected static String |
EDIT_BAR
Deprecated. |
protected static String |
ELEMENT_END
Deprecated. |
protected static String |
ELEMENT_END_W_QUOTE
Deprecated. |
protected static String |
EMPTY_STRING
Deprecated. |
private static boolean |
encodeValuesForHTMLDisplay
Deprecated. |
private static String |
END_TEMPLATE
Deprecated. |
protected static String |
FILLER_NODE_END
Deprecated. |
protected static String |
FILLER_NODE_START
Deprecated. |
private String |
formName
Deprecated. |
protected static String |
IMG
Deprecated. |
protected static String |
IS_EMPTY
Deprecated. |
private boolean |
isCollapsingEnabled
Deprecated. |
private boolean |
isSortingEnabled
Deprecated. |
protected static String |
LOCALE
Deprecated. |
static String |
MULTISELECT_ACTIONS_BAR_STYLE_CLASS
Deprecated. |
private List |
multiSelectActionList
Deprecated. |
private String |
multiSelectActionNavBarName
Deprecated. |
static String |
NO_RESULTS_MESSAGE_ALIGNMENT
Deprecated. |
static Class |
PDM_DEFAULT_TABLE_CLASS
Deprecated. |
static String |
PDM_LINK_HTML_TABLE
Deprecated. |
private boolean |
presentActionsIconColumn
Deprecated. |
private boolean |
presentCheckBox
Deprecated. |
private boolean |
presentIconFirstColumn
Deprecated. |
private boolean |
presentIconFirstNoLinkColumn
Deprecated. |
protected static String |
ROW_END
Deprecated. |
protected static String |
START_ROW
Deprecated. |
private int |
tableWidth
Deprecated. |
private static String |
TARGET_TEMPLATE_PROCESSOR
Deprecated. |
private static String[] |
TD_CLASS_ARRAY
Deprecated. |
protected static String |
TR_BEGIN
Deprecated. |
protected static String |
TR_END
Deprecated. |
protected static String |
TRUE
Deprecated. |
protected static String |
TWO
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
Fields inherited from class wt.templateutil.table.WTHtmlTable |
|
Fields inherited from class wt.templateutil.table.HTMLTable |
DEFAULT_TABLE_CELL_ID_VALUE, formData, tableContext, TABLECONTEXT |
Fields inherited from class wt.templateutil.components.HTMLTableComponent |
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 |
COMPONENT_ID, COMPONENT_ID_SEPARATOR, CREATE, DEFAULT_SERVICE_NAME, DEFAULTS_ONLY, ID, ID_US_ENGLISH_LOCALE, NAME, NULLVALUE, PRINT_TAG_ATTR, SERVICENAME, UPDATE, VIEW |
Fields inherited from interface wt.templateutil.table.CheckBoxColumnAble |
CHECK_BOX_COLUMN_NAME, PRESENT_CHECK_BOX |
Constructor Summary | |
PDMLinkHTMLTable()
Deprecated. |
Method Summary | |
protected HTMLTemplate |
actionLinkTemplate()
Deprecated. This method is not currently used and is not going to be used. |
void |
addColumn()
Deprecated. If the current TableModel is implements the AddColumn interface, then a PDMLinkCheckboxColumn is added to the current TableColumnModel and the TableModel is updated accordingly. |
void |
createDefaultColumnsFromModel()
Deprecated. |
List |
getActionList()
Deprecated. Returns the list that represents the subset of links in the actionNavBarName section of the Navigation Configuration XML file to be used to generate the "Context Object Action" section of the Action Row. |
String |
getActionNavBarName()
Deprecated. Returns the name of the ection in the Navigation Configuration XML file that should be used to generate the "Context Object Action" section of the Action Bar. |
String |
getActionNavBarStyleClass()
Deprecated. Returns the name of stylesheet class to be used for background color of action icons |
protected String |
getActionRow(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. Generates the Action Row for the HTML Table. |
String |
getActionRowString(Properties parameters,
Locale locale,
OutputStream os,
String serviceName,
String navBarName,
List navBarList)
Deprecated. This method is not currently used and is not going to be used. |
HTMLComponent |
getCellComponent(int rowNumber,
int column,
Properties props)
Deprecated. Retrieves an HTMLComponent with an ApplicationContextService factory call and initializes the HTMLComponent. |
protected HTMLTemplate |
getEndRowTemplate()
Deprecated. This method is not currently used and is not going to be used. |
String |
getFormName()
Deprecated. |
protected HTMLTemplate |
getHTMLTemplate(String templateFileName)
Deprecated. This method is not currently used and is not going to be used. |
List |
getMultiSelectActionList()
Deprecated. Returns the list that represents the subset of links in the multiSelectActionNavBarName section of the Navigation Configuration XML file to be used to generate the "Multi-select" section of the Action Row. |
String |
getMultiSelectActionNavBarName()
Deprecated. Returns the name of the ection in the Navigation Configuration XML file that should be used to generate the "Multi-select" section of the Action Bar. |
static PDMLinkHTMLTable |
getPDMLinkHTMLTable()
Deprecated. This method is not currently used and is not going to be used. |
protected String |
getRow(NavigationTreeModel treeModel,
Properties parameters,
Locale locale)
Deprecated. This method is not currently used and is not going to be used. |
TableModel |
getTableModel()
Deprecated. Retrieves the current TableModel that represent the data to be displayed. |
int |
getTableWidth()
Deprecated. |
protected DefaultTemplateProcessor |
getTemplateProcessor()
Deprecated. This method is not currently used and is not going to be used. |
protected HTMLComponent |
initCellComponent(HTMLComponent cellComponent,
Object cellObject,
int rowNumber,
int column,
Properties props)
Deprecated. |
boolean |
isCollapsingEnabled()
Deprecated. Returns the flag that determines if hiding(collapsing) is enabled on the columns of the HTML Table |
boolean |
isPresentActionsIconColumn()
Deprecated. Returns the flag that indicates if the "Action Column" is to be presented. |
boolean |
isPresentIconFirstNoLinkRow()
Deprecated. |
boolean |
isPresentIconFirstRow()
Deprecated. Returns the flag that indicates if the "First Column" is to be presented. |
boolean |
isSortingEnabled()
Deprecated. Returns the flag that determines if sorting is enabled on the columns of the HTML Table |
protected PDMLinkCheckboxColumn |
newPDMLinkCheckboxColumn(int currentNumberOfColumns)
Deprecated. |
String |
printHeaders(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. Generates the HTML for the column headers for the data rows. |
String |
printHeaders(PDMLinkCheckboxHeader checkBoxHeader,
Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. Generates the HTML for the column headers for the data rows. |
String |
printNoResultsRow(Locale locale)
Deprecated. Generates the HTML table body in the case when there are not any data rows to present. |
String |
printRow(int rowNumber,
Object value,
Properties formData)
Deprecated. Displays a row of data in the body of the HTML Table. |
void |
setActionList(List actionList)
Deprecated. Specifies which of the actions listed in the action section of the NavigationAndActions.xml file should be displayed in the context-specific action bar of the table. |
void |
setActionNavBarName(String actionNavBarName)
Deprecated. Set the name of the section in the Navigation Configuration XML file that should be used to generate the "Context Object Action" section of the Action Bar |
void |
setActionNavBarStyleClass(String styleClass)
Deprecated. Set the name of stylesheet class to be used for background color of action icons |
void |
setFormName(String formName)
Deprecated. |
void |
setIsCollapsingEnabled(boolean isCollapsingEnabled)
Deprecated. |
void |
setIsSortingEnabled(boolean isSortingEnabled)
Deprecated. |
void |
setMultiSelectActionList(List multiSelectActionList)
Deprecated. Specifies which of the actions listed in the multiselect action section of the NavigationAndActions.xml file should be displayed in the multiselect action bar of the table. |
void |
setMultiSelectActionNavBarName(String multiSelectActionNavBarName)
Deprecated. Set the name of the section in the Navigation Configuration XML file that should be used to generate the "Multi-select" section of the Action Bar. |
void |
setPresentActionsIconColumn(boolean presentActionsIconColumn)
Deprecated. |
void |
setPresentIconFirstNoLinkRow(boolean presentIconFirstNoLinkColumn)
Deprecated. |
void |
setPresentIconFirstRow(boolean presentIconFirstColumn)
Deprecated. |
void |
setTableWidth(int tableWidth)
Deprecated. |
String |
showSubComponents(Object value,
Properties formData,
OutputStream os,
Locale locale)
Deprecated. |
Methods inherited from class wt.templateutil.table.WTHtmlTable |
getCheckBoxName, isPendingIcon, isPresentCheckBox, isSuppressIcon, isSuppressLink, newCheckBoxTableColumn, setCheckBoxName, setPendingIcon, setPresentCheckBox, setSuppressIcon, setSuppressLink |
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 |
private static final String CLASSNAME
private String checkBoxName
private boolean presentCheckBox
private boolean presentIconFirstColumn
private boolean presentIconFirstNoLinkColumn
private boolean presentActionsIconColumn
private int tableWidth
private static final String[] TD_CLASS_ARRAY
private static final boolean VERBOSE
private static final String TARGET_TEMPLATE_PROCESSOR
private static final String END_TEMPLATE
private static final String ACTIONLINK_TEMPLATE
private String multiSelectActionNavBarName
private String actionNavBarName
private String actionNavBarStyleClass
private List multiSelectActionList
private List actionList
private String formName
public static final String MULTISELECT_ACTIONS_BAR_STYLE_CLASS
public static final String DEFAULT_ACTION_BAR_STYLE_CLASS
public static final String PDM_LINK_HTML_TABLE
public static final Class PDM_DEFAULT_TABLE_CLASS
public static final String NO_RESULTS_MESSAGE_ALIGNMENT
private boolean isSortingEnabled
private boolean isCollapsingEnabled
protected static final String START_ROW
protected static final String ALIGN
protected static final String CLASS
protected static final String ELEMENT_END
protected static final String IMG
protected static final String ELEMENT_END_W_QUOTE
protected static final String BOLD
protected static final String ROW_END
protected static final String TR_BEGIN
protected static final String TR_END
protected static final String EDIT_BAR
protected static final String TWO
protected static final String ACTION_ROW
protected static final String IS_EMPTY
protected static final String TRUE
protected static final String COLUMN_NAME
protected static final String FILLER_NODE_START
protected static final String FILLER_NODE_END
protected static final String ACTION_LINK_START
protected static final String ACTION_LINK_MIDDLE
protected static final String ACTION_LINK_END
protected static final String LOCALE
protected static final String EMPTY_STRING
private static boolean encodeValuesForHTMLDisplay
Constructor Detail |
public PDMLinkHTMLTable()
Method Detail |
public void createDefaultColumnsFromModel()
By setting the isIconColumnFirst flag to true (default), the first column will be either a TreeTableColumn (if the TableModel is of Type TreeTableModel) or a PDMLinkIconTableColumn.
By setting the isPresentActionsIconColumn to true (default), an ActionsTableColumn column
will be added either as the first column (isIconColumnFirst == false) or the second column
Supported API: true
createDefaultColumnsFromModel
in class WTHtmlTable
public void addColumn()
addColumn
in class WTHtmlTable
protected PDMLinkCheckboxColumn newPDMLinkCheckboxColumn(int currentNumberOfColumns)
public String showSubComponents(Object value, Properties formData, OutputStream os, Locale locale)
The generation of the Action Row depends if there is a Multi-Select section or a Context Action Section to be generated.
The display of the Table Column headers can be disabled by setting the isDisplayHeader flag to false.
In the case that there are not any rows to display in the body of the table, the
"No Results" message will be presented in the body of the HTML Table.
Supported API: true
showSubComponents
in class HTMLTable
value
- formData
- os
-
protected String getActionRow(Object value, Properties formData, OutputStream os, Locale locale)
For the generation of the checkbox column header, the PDMLinkCheckboxHeader HTML Component is used.
value
- formData
- os
-
public String getActionRowString(Properties parameters, Locale locale, OutputStream os, String serviceName, String navBarName, List navBarList)
parameters
- locale
- os
- serviceName
- navBarName
- navBarList
- protected String getRow(NavigationTreeModel treeModel, Properties parameters, Locale locale)
treeModel
- parameters
- locale
- protected HTMLTemplate getEndRowTemplate()
protected HTMLTemplate actionLinkTemplate()
protected HTMLTemplate getHTMLTemplate(String templateFileName)
protected DefaultTemplateProcessor getTemplateProcessor()
public void setTableWidth(int tableWidth)
public int getTableWidth()
public String printHeaders(Object value, Properties formData, OutputStream os, Locale locale)
This method takes into account if the TableColumn instance used for a particular column if of type PDMLinkTableColumn. If so, the PDMLinkTableColumn will receive additional parameters for controlling the sorting and hiding(collapsing).
printHeaders
in class HTMLTable
value
- formData
- os
- locale
-
public String printHeaders(PDMLinkCheckboxHeader checkBoxHeader, Object value, Properties formData, OutputStream os, Locale locale)
This method takes into account if the TableColumn instance used for a particular column if of type PDMLinkTableColumn. If so, the PDMLinkTableColumn will receive additional parameters for controlling the sorting and hiding(collapsing).
value
- formData
- os
- checkBoxHeader
- - the All checkbox that will be used
public String printRow(int rowNumber, Object value, Properties formData)
printRow
in class HTMLTable
rowNumber
- value
- formData
-
public HTMLComponent getCellComponent(int rowNumber, int column, Properties props)
getCellComponent
in class HTMLTable
rowNumber
- column
- props
- public String getMultiSelectActionNavBarName()
public void setMultiSelectActionNavBarName(String multiSelectActionNavBarName)
multiSelectActionNavBarName
- public String getActionNavBarStyleClass()
public void setActionNavBarStyleClass(String styleClass)
public List getMultiSelectActionList()
If the List is null or empty, all of the links in the multiSelectActionNavBarName will be used. This is the default.
public void setMultiSelectActionList(List multiSelectActionList)
Use the method setMultiSelectActionNavBarName() to specifiy the section in NavigationAndActions.xml to use for the multiselect action bar of this table.
If the List argument is null or empty, all of the links in the specified NavigationAndActions.xml section will be used. This is the default.
multiSelectActionList
- - Subset of links in multiSelectActionNavBarName sectionpublic String getActionNavBarName()
public void setActionNavBarName(String actionNavBarName)
public List getActionList()
If the List is null or empty, all of the links in the actionNavBarName will be used. This is the default.
public void setActionList(List actionList)
Use the method setActionNavBarName() to specifiy the section in NavigationAndActions.xml to use for the context-specific action bar of this table.
If the List argument is null or empty, all of the links in the specified NavigationAndActions.xml section will be used. This is the default.
actionList
- - Subset of links in actionNavBarName sectionpublic TableModel getTableModel()
getTableModel
in class HTMLTable
public String printNoResultsRow(Locale locale)
locale
- public void setFormName(String formName)
public String getFormName()
public static PDMLinkHTMLTable getPDMLinkHTMLTable() throws WTException
WTException
public void setPresentIconFirstRow(boolean presentIconFirstColumn)
The HTML Table presents one of two "First Columns"depending on the type of the TableModel
The default is true.
Supported API: true
presentIconFirstColumn
- - sets flag for presenting first columnpublic void setPresentIconFirstNoLinkRow(boolean presentIconFirstNoLinkColumn)
public boolean isPresentIconFirstRow()
public boolean isPresentIconFirstNoLinkRow()
public void setPresentActionsIconColumn(boolean presentActionsIconColumn)
The default is true.
Supported API: true
presentActionsIconColumn
- - Sets flag that determines if the Action Column is to be presented.public boolean isPresentActionsIconColumn()
public void setIsSortingEnabled(boolean isSortingEnabled)
isSortingEnabled
- - Sets flag to determine if sorting on the columns is enabled.public boolean isSortingEnabled()
public void setIsCollapsingEnabled(boolean isCollapsingEnabled)
isCollapsingEnabled
- - Sets flag to determine if sorting on the columns is enabled.public boolean isCollapsingEnabled()
protected HTMLComponent initCellComponent(HTMLComponent cellComponent, Object cellObject, int rowNumber, int column, Properties props)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |