Class ChangeTableViews
java.lang.Object
com.ptc.core.htmlcomp.tableview.AbstractConfigurableTable
com.ptc.core.htmlcomp.components.JCAConfigurableTable
com.ptc.windchill.enterprise.change2.tableViews.ChangeTableViews
- All Implemented Interfaces:
com.ptc.core.htmlcomp.components.JCAMappable,ConfigurableTable,com.ptc.core.htmlcomp.tableview.FreezableConfigurableTable,com.ptc.core.htmlcomp.tableview.RuntimeTableViewHolder
- Direct Known Subclasses:
AbstractListChangeItemTableViews,AffectedDataTableViews,AffectedEndItemsTableViews,AssociatedChangeIssuesTableViews,AssociatedChangeRequestsTableViews,AssociatedChangeTableViews,ChangeTaskAffectedItemsTableViews,ChangeTaskResultingItemsTableViews,CollectAffectedObjectsJSTableViews
Configures the default views for the Change Management Tables.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ptc.core.htmlcomp.tableview.ConfigurableTable
ConfigurableTable.ContextTypeForCustomize -
Field Summary
Fields inherited from class com.ptc.core.htmlcomp.tableview.AbstractConfigurableTable
ALL_REV_ITER_KEY, LATEST_REV_ITER_KEYFields inherited from interface com.ptc.core.htmlcomp.tableview.ConfigurableTable
TABLE_TITLE -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAttributeBeUsedInFilter(String attributeId) Abstract method check if attribute can be used by the filter.List<com.ptc.core.htmlcomp.tableview.TableViewDescriptor> createCommonTableViews(String tableId, Locale locale) Creates a list of TableViewDescriptors for all of the common table views shown for changeable tables.List<com.ptc.core.htmlcomp.tableview.TableViewDescriptor> createTableView(String tableId, String viewName, Locale locale, Vector<com.ptc.core.htmlcomp.tableview.TableViewCriterion> criterion) Creates the table view descriptors for a new view.protected static Class[]Helper method to return the array of registered changeable classes.abstract Class[]Method to get an Array of Class types for the table views.protected Vector<com.ptc.core.htmlcomp.tableview.TableViewCriterion> Method to get the criteria.Method to get the default column to sort on table views.protected StringgetDefaultViewDescription(String viewName) Method to get the default view description.abstract StringMethod to get the label for the table views.Retrieve the locked columns for the table view.protected StringgetObjTypeKey(Class a_class) Helper method to return the object type key.Method to get the out of the box active table view name.abstract ListgetOOTBTableViews(String tableId, Locale locale) Sets the default table view and returns a list of out of the box table views.Get base special table columns attribute definitions for change tables.protected com.ptc.core.htmlcomp.tableview.TableViewDescriptorgetTableViewDescriptor(String viewName, Locale locale, Vector<com.ptc.core.htmlcomp.tableview.TableViewCriterion> criteria) Method to initialize the table descriptor.booleanisColumnLocked(String columnId) Abstract method to check if the column is to be locked.protected voidsetDefaultSortColumnOrder(com.ptc.core.htmlcomp.tableview.TableViewDescriptor tableViewDescriptor) Method to set the sortable columns for a table view.Methods inherited from class com.ptc.core.htmlcomp.components.JCAConfigurableTable
getMessageSource, isFreezable, isMappingEnabledMethods inherited from class com.ptc.core.htmlcomp.tableview.AbstractConfigurableTable
getActionStatusAttrDef, getAdvRevisionAllCriterion, getAdvRevisionAttrDef, getAdvRevisionLatestCriterion, getAdvVersionAllCriterion, getAdvVersionAttrDef, getAdvVersionLatestCriterion, getAttributeOnlyClassTypes, getChangeStatusAttrDef, getContextProperties, getContextProperty, getLocalStatusAttrDef, getMessageStatusAttrDef, getNewOrganizationAttrDef, getOrganizationAttrDef, getRuntimeTableView, getSandboxStatusAttrDef, getServerStatusAttrDef, getStatusColumnsAttributeDefinitions, getStatusColumnsAttributeDefinitions, getStatusColumnsTableColumnDefinitions, getStatusColumnsTableColumnDefinitions, getViewResourceEntryKey, getWsContentStatusAttrDef, isAttributeValidForSortingStep, isDefaultSortingAscending, setContextProperties, setRuntimeTableView, showChooseItemTypesStep, showFilteringStep, showSetColumnsStep, showSetNameStep, showSortingStep, useBusinessFieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.core.htmlcomp.tableview.ConfigurableTable
getAttributeOnlyClassTypes, getContextProperties, getContextProperty, getContextTypeForTableView, isAttributeValidForSortingStep, isDefaultSortingAscending, isLocalAttributesSupported, setContextProperties, showChooseItemTypesStep, showFilteringStep, showSetColumnsStep, showSetNameStep, showSortingStep, useBusinessFields
-
Method Details
-
canAttributeBeUsedInFilter
Abstract method check if attribute can be used by the filter.
Supported API: true- Specified by:
canAttributeBeUsedInFilterin interfaceConfigurableTable- Overrides:
canAttributeBeUsedInFilterin classcom.ptc.core.htmlcomp.tableview.AbstractConfigurableTable- Parameters:
attributeId- Passes in the id of the attribute- Returns:
- boolean Returns true if it can be filtered
-
isColumnLocked
Abstract method to check if the column is to be locked.
Supported API: true- Specified by:
isColumnLockedin interfaceConfigurableTable- Overrides:
isColumnLockedin classcom.ptc.core.htmlcomp.tableview.AbstractConfigurableTable- Parameters:
columnId- Passes in the columnId- Returns:
- boolean Return true for locked and false for not locked.
-
createTableView
public List<com.ptc.core.htmlcomp.tableview.TableViewDescriptor> createTableView(String tableId, String viewName, Locale locale, Vector<com.ptc.core.htmlcomp.tableview.TableViewCriterion> criterion) throws WTException Creates the table view descriptors for a new view. The criteria is provided within the input parameters.
Supported API: true- Parameters:
tableId- The id of the table (used in encoding the table view)viewName- The unique name of the viewlocale- The locale to be used.criterion- The vector of criteria to set on the table.- Returns:
- result Return a list of out of the box table view descriptors.
- Throws:
WTException
-
createCommonTableViews
public List<com.ptc.core.htmlcomp.tableview.TableViewDescriptor> createCommonTableViews(String tableId, Locale locale) throws WTException Creates a list of TableViewDescriptors for all of the common table views shown for changeable tables. This will include views for All, Parts, Documents, CAD Documents, Dynamic Documents and MPMLink Process Plans and Resources if installed.
Supported API: true- Returns:
- result Return a list of OOTB common table views.
- Throws:
WTException
-
getTableViewDescriptor
protected com.ptc.core.htmlcomp.tableview.TableViewDescriptor getTableViewDescriptor(String viewName, Locale locale, Vector<com.ptc.core.htmlcomp.tableview.TableViewCriterion> criteria) throws WTException Method to initialize the table descriptor.
Supported API: true- Returns:
- TableViewDescriptor Returns the initialized the table view descriptor.
- Throws:
WTException
-
getCriteria
protected Vector<com.ptc.core.htmlcomp.tableview.TableViewCriterion> getCriteria() throws WTExceptionMethod to get the criteria.
Supported API: true- Returns:
- Vector Returns the criteria.
- Throws:
WTException
-
getChangeableClasses
Helper method to return the array of registered changeable classes.
Supported API: true -
getObjTypeKey
Helper method to return the object type key.
Supported API: true- Throws:
WTException
-
getLabel
Method to get the label for the table views.
Supported API: true- Parameters:
locale- Passes in the Locale- Returns:
- String Returns the label for the table views.
-
getOOTBActiveViewName
Method to get the out of the box active table view name.
Supported API: true- Returns:
- String Returns the out of the box active table view name.
-
getDefaultSortColumn
Method to get the default column to sort on table views.
Supported API: true- Returns:
- String Returns the default column to sort on table views.
-
setDefaultSortColumnOrder
protected void setDefaultSortColumnOrder(com.ptc.core.htmlcomp.tableview.TableViewDescriptor tableViewDescriptor) throws WTException Method to set the sortable columns for a table view.
Supported API: true- Throws:
WTException
-
getDefaultViewDescription
Method to get the default view description.
Supported API: true- Returns:
- String Returns the default view description.
-
getClassTypes
Method to get an Array of Class types for the table views.
Supported API: true- Returns:
- Class[] Returns an Array of Class types for the table views.
-
getOOTBTableViews
Sets the default table view and returns a list of out of the box table views.
Supported API: true- Parameters:
tableId- Passes in the table idlocale- Passes in the Locale- Returns:
- result Return a list of out of the box table views.
- Throws:
WTException- Error thrown during execution.
Supported API: true
-
getSpecialTableColumnsAttrDefinition
Get base special table columns attribute definitions for change tables.
Supported API: true- Parameters:
locale- Passes in the locale- Returns:
- List Returns a list of attribute definitions.
-
getLockedColumns
Retrieve the locked columns for the table view.
Supported API: true- Returns:
- Mapinvalid input: '<'String,Boolean> Ordered Map of column Ids and whether it is locked.
-