Package com.ptc.mvc.components
Interface TableConfig
- All Superinterfaces:
BasicTableConfig,ComponentConfig,CustomizableViewConfig
- All Known Subinterfaces:
TreeConfig
- All Known Implementing Classes:
JcaInfoConfig,JcaMiniInfoConfig,com.ptc.jca.mvc.components.JcaPropertyPanelConfig,JcaTableConfig,JcaTreeConfig
Describes a table component
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionGet the disableAction for this component
Supported API: trueReturns the groupBy attribute of a TableConfig.Get the name of the action model used for menubar actions
Supported API: trueReturns the column which will get used for row strike-through.booleanWhether the component supports configurable views.booleanWhether the component is marked for column freeze.booleanWhether objectHandles are needed for each row
Supported API: truebooleanWhether the table is selectable.booleanWhether to show The customize view link in the view drop down.booleanWhether in Single Select mode.booleanWhether the component is of singleView only.voidsetConfigurable(boolean configurable) Set whether this table supports configurable views.voidsetDisableAction(String disableAction) Set the disableAction for this component
Supported API: truevoidSet the find in table mode Supported API: truevoidsetFreezable(boolean freezable) Set the component to be considered for column freezing.voidsetGroupBy(String groupByColumn) Set the groupBy attribute of a TableConfig.voidsetMenubarName(String menubarName) Set the name of the action model used for menubar actions
Supported API: truevoidsetNonSelectableColumn(ColumnConfig nonSelectableColumn) Set whether the column is non-selectable or not
Supported API: truevoidsetPreSelectableColumn(ColumnConfig preSelectableColumn) Set whether the column is pre-selectable or not
Supported API: truevoidsetRowBasedObjectHandle(boolean rowBasedObjectHandle) Set whether objectHandles are needed for each row.voidsetSelectable(boolean selectable) Set whether the table is selectable.voidsetShowCustomViewLink(boolean showCustomViewLink) Set to show The customize view link in the view drop down.voidsetSingleSelect(boolean singleSelect) Set whether in Single Select mode.voidsetSingleViewOnly(boolean singleViewOnly) Set whether component is singleViewOnly.voidsetStrikeThroughColumn(ColumnConfig column) Set the column which will get used for row strike-through.Methods inherited from interface com.ptc.mvc.components.BasicTableConfig
getSummary, isShowCount, setShowCount, setSummaryMethods inherited from interface com.ptc.mvc.components.ComponentConfig
addComponent, addComponents, getActionModel, getComponentMode, getComponents, getComponentType, getHelpContext, getId, getLabel, getTargetObject, getType, getTypes, removeComponent, setActionModel, setComponentMode, setComponentType, setHelpContext, setId, setLabel, setTargetObject, setType, setTypesMethods inherited from interface com.ptc.mvc.components.CustomizableViewConfig
getView, setView
-
Method Details
-
getDisableAction
String getDisableAction()Get the disableAction for this component
Supported API: true- Returns:
- String
-
setDisableAction
Set the disableAction for this component
Supported API: true- Parameters:
disableAction-
-
getMenubarName
String getMenubarName()Get the name of the action model used for menubar actions
Supported API: true- Returns:
-
setMenubarName
Set the name of the action model used for menubar actions
Supported API: true- Parameters:
menubarName-
-
isFreezable
boolean isFreezable()Whether the component is marked for column freeze.
Supported API: true- Returns:
-
setFreezable
void setFreezable(boolean freezable) Set the component to be considered for column freezing. Defaults to false.
For configurable tables, the value will be overridden by the value defined in table view
Supported API: true- Parameters:
freezable-
-
isRowBasedObjectHandle
boolean isRowBasedObjectHandle()Whether objectHandles are needed for each row
Supported API: true- Returns:
-
setRowBasedObjectHandle
void setRowBasedObjectHandle(boolean rowBasedObjectHandle) Set whether objectHandles are needed for each row. Defaults to false. Set to true to render a table for creating/editing multiple objects in a create/edit wizard. (applicable only in CREATE/EDIT mode)
Supported API: true- Parameters:
rowBasedObjectHandle-
-
isShowCustomViewLink
boolean isShowCustomViewLink()Whether to show The customize view link in the view drop down.
Supported API: true- Returns:
-
setShowCustomViewLink
void setShowCustomViewLink(boolean showCustomViewLink) Set to show The customize view link in the view drop down. Defaults to true
Supported API: true- Parameters:
showCustomViewLink-
-
isSelectable
boolean isSelectable()Whether the table is selectable.
Supported API: true- Returns:
-
setSelectable
void setSelectable(boolean selectable) Set whether the table is selectable. Defaults to true
Supported API: true- Parameters:
selectable-
-
isSingleSelect
boolean isSingleSelect()Whether in Single Select mode.
Supported API: true- Returns:
- boolean
-
setSingleSelect
void setSingleSelect(boolean singleSelect) Set whether in Single Select mode. [true= radio buttons, false = check boxes] Defaults to false.
Supported API: true- Parameters:
singleSelect-
-
isSingleViewOnly
boolean isSingleViewOnly()Whether the component is of singleView only. Defaults to false
Supported API: true- Returns:
- boolean
-
setSingleViewOnly
void setSingleViewOnly(boolean singleViewOnly) Set whether component is singleViewOnly. If true and table is configurable, then the table view edit wizard is launched directly from the table, as opposed to launching the table view manager. This is useful when the table does not support views, but still needs to allow the user to select columns and sort order. Defaults to false
Supported API: true- Parameters:
singleViewOnly-
-
isConfigurable
boolean isConfigurable()Whether the component supports configurable views.
Supported API: true- Returns:
- boolean
-
setConfigurable
void setConfigurable(boolean configurable) Set whether this table supports configurable views. Defaults to false.
If the builder that provides this table is ofConfigurableTableBuilder, the value will be overridden to true
Supported API: true- Parameters:
configurable-
-
getGroupBy
String getGroupBy()Returns the groupBy attribute of a TableConfig. This is the column that is being grouped on.
Supported API: true- Returns:
- String The id of the column added to this table
-
setGroupBy
Set the groupBy attribute of a TableConfig. This is the column that is being grouped on.
Supported API: true- Parameters:
String- The id of the column added to this table
-
setFindInTableMode
Set the find in table mode Supported API: true- Parameters:
mode-
-
getStrikeThroughColumn
ColumnConfig getStrikeThroughColumn()Returns the column which will get used for row strike-through.
Supported API: true- Returns:
- String The id of the column
-
setStrikeThroughColumn
Set the column which will get used for row strike-through.
Supported API: true- Parameters:
String- The id of the column
-
setNonSelectableColumn
Set whether the column is non-selectable or not
Supported API: true- Parameters:
nonSelectableColumn- nonSelectableColumn=true: renders the column as non-selectable nonSelectableColumn=false; renders the column as selectable.
-
setPreSelectableColumn
Set whether the column is pre-selectable or not
Supported API: true- Parameters:
preSelectableColumn- preSelectableColumn=true: renders the column as pre-selectable preSelectableColumn=false; renders the column as non pre-selectable.
-