Class WDataTable
- java.lang.Object
-
- com.github.bordertech.wcomponents.AbstractWComponent
-
- com.github.bordertech.wcomponents.WBeanComponent
-
- com.github.bordertech.wcomponents.WDataTable
-
- All Implemented Interfaces:
AjaxInternalTrigger
,AjaxTarget
,BeanAware
,BeanBound
,BeanProviderBound
,Container
,DataBound
,Disableable
,NamingContextable
,SelectionToggleable
,SubordinateTarget
,WComponent
,WebComponent
,Serializable
@Deprecated public class WDataTable extends WBeanComponent implements Disableable, Container, AjaxInternalTrigger, AjaxTarget, SubordinateTarget, NamingContextable, SelectionToggleable
Deprecated.UseWTable
instead.The WDataTable component is used to display tabular data. It supports common functions such as sorting and pagination of data.
The WDataTable component is only concerned with how the UI functions, not the data behind the table. In a MVC sense, the WDataTable is the Controller, the view is comprised of the WDataTable layout and column renderers, and the
TableDataModel
is the model.Columns may only be added statically to the table, but individual columns can be shown/hidden per user by toggling their visibility. See
getColumn(int)
andWComponent.setVisible(boolean)
.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WDataTable.ActionConstraint
Deprecated.Describes a constraint on a table action.static class
WDataTable.ExpandMode
Deprecated.This is used to control how row expansion should work.static class
WDataTable.PaginationMode
Deprecated.This is used to control how pagination should work.static class
WDataTable.SelectAllType
Deprecated.This is used to control how the "select all" function should work.static class
WDataTable.SelectMode
Deprecated.This is used to control how row selection should work.static class
WDataTable.SeparatorType
Deprecated.This is used to control the type of striping used, if any.static class
WDataTable.SortMode
Deprecated.This is used to control how sorting should work.static class
WDataTable.StripingType
Deprecated.This is used to control the type of striping used, if any.static class
WDataTable.TableModel
Deprecated.Contains the table's UI state.static class
WDataTable.Type
Deprecated.This is used to control how table data should be displayed.-
Nested classes/interfaces inherited from class com.github.bordertech.wcomponents.AbstractWComponent
AbstractWComponent.WComponentRef
-
-
Field Summary
-
Fields inherited from interface com.github.bordertech.wcomponents.WComponent
DEFAULT_APPLICATION_ID, DEFAULT_INTERNAL_ID, DEFAULT_NO_ID, ID_CONTEXT_SEPERATOR, ID_FRAMEWORK_ASSIGNED_SEPERATOR, ID_VALIDATION_PATTERN
-
-
Constructor Summary
Constructors Constructor Description WDataTable()
Deprecated.Creates a WDataTable.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addAction(WButton button)
Deprecated.Adds a component to the set of table actions.void
addActionConstraint(WButton button, WDataTable.ActionConstraint constraint)
Deprecated.Adds a constraint to when the given action can be used.void
addColumn(WTableColumn column)
Deprecated.Adds a column to the table.List<WDataTable.ActionConstraint>
getActionConstraints(WButton button)
Deprecated.Retrieves the constraints for the given action.List<WButton>
getActions()
Deprecated.Retrieves the actions for the table.List<String>
getActiveFilters()
Deprecated.String
getCaption()
Deprecated.WComponent
getChildAt(int index)
Deprecated.Retrieves a child component by its index.int
getChildCount()
Deprecated.List<WComponent>
getChildren()
Deprecated.Retrieves a list of this Container's.WTableColumn
getColumn(int index)
Deprecated.Retrieves the column at the specified index.int
getColumnCount()
Deprecated.Returns the number of columns contained in this table.int[]
getColumnOrder()
Deprecated.protected WDataTable.TableModel
getComponentModel()
Deprecated.Returns the effective component model for this component.int
getCurrentPage()
Deprecated.TableDataModel
getDataModel()
Deprecated.List<Integer>
getExpandedRows()
Deprecated.WDataTable.ExpandMode
getExpandMode()
Deprecated.int
getIndexOfChild(WComponent childComponent)
Deprecated.Retrieves the index of the given child.String
getNamingContextId()
Deprecated.Allow components that implementNamingContextable
to selectively disable prepending their ID to their descendent's IDs by breaking the prepending logic into a seperately callable method.String
getNoDataMessage()
Deprecated.protected WDataTable.TableModel
getOrCreateComponentModel()
Deprecated.Retrieves the model for this component so that it can be modified.WDataTable.PaginationMode
getPaginationMode()
Deprecated.WRepeater
getRepeater()
Deprecated.WTableColumn
getRowHeaderColumn()
Deprecated.int
getRowsPerPage()
Deprecated.WDataTable.SelectAllType
getSelectAllMode()
Deprecated.Indicates how the table row "select all" function should be displayed.List<Integer>
getSelectedRows()
Deprecated.String
getSelectGroup()
Deprecated.Action
getSelectionChangeAction()
Deprecated.WDataTable.SelectMode
getSelectMode()
Deprecated.WDataTable.SeparatorType
getSeparatorType()
Deprecated.int
getSortColumnIndex()
Deprecated.WDataTable.SortMode
getSortMode()
Deprecated.WDataTable.StripingType
getStripingType()
Deprecated.String
getSummary()
Deprecated.WDataTable.Type
getType()
Deprecated.void
handleRequest(Request request)
Deprecated.Override handleRequest to add table-specific functionality such as pagination and row selection.boolean
isDisabled()
Deprecated.Indicates whether the WDataTable is disabled in the given context.boolean
isExpandAll()
Deprecated.Indicates whether the "expand all" control should be available.boolean
isFilterable()
Deprecated.Indicates whether filtering is enabled.boolean
isNamingContext()
Deprecated.A naming context is only considered active if an Id name has been set.protected boolean
isPresent(Request request)
Deprecated.Indicates whether this table was present in the request.boolean
isShowColumnHeaders()
Deprecated.Indicates whether table column headers should be displayed.boolean
isShowRowHeaders()
Deprecated.Indicates whether row headers should be displayed.boolean
isShowRowIndices()
Deprecated.Indicates whether row indices should be displayed.boolean
isSortable()
Deprecated.Indicates whether the table supports sorting.boolean
isSortAscending()
Deprecated.Indicates whether the sort on this table is ascending.boolean
isSorted()
Deprecated.boolean
isSubmitOnRowSelect()
Deprecated.1.2.0protected WDataTable.TableModel
newComponentModel()
Deprecated.Creates a new component model.void
setActiveFilters(List<String> activeFilters)
Deprecated.Sets the active filters.void
setCaption(String caption)
Deprecated.Sets the table caption text.void
setColumnOrder(int[] columnOrder)
Deprecated.void
setCurrentPage(int currentPage)
Deprecated.void
setDataModel(TableDataModel dataModel)
Deprecated.Sets the data model.void
setDisabled(boolean disabled)
Deprecated.Sets whether the WDataTable is disabled.void
setExpandAll(boolean expandAll)
Deprecated.Sets whether the "expand all" control should be available.void
setExpandedRows(List<Integer> expandedRows)
Deprecated.void
setExpandMode(WDataTable.ExpandMode expandMode)
Deprecated.Sets the row expansion mode.void
setFilterable(boolean filterable)
Deprecated.Sets whether filtering is enabled.void
setNamingContext(boolean context)
Deprecated.A naming context is only considered active if it has been set active viasetNamingContext(boolean)
and also has an id name set viaAbstractWComponent.setIdName(String)
.void
setNoDataMessage(String noDataMessage)
Deprecated.Sets the message to display when the table contains no rows.void
setPaginationMode(WDataTable.PaginationMode paginationMode)
Deprecated.Sets the pagination mode.void
setRowsPerPage(int rowsPerPage)
Deprecated.Sets the number of rows to display per page when pagination is enabled.void
setSelectAllMode(WDataTable.SelectAllType selectAllMode)
Deprecated.Sets how the table row "select all" function should be displayed.void
setSelectedRows(List<Integer> selectedRows)
Deprecated.void
setSelectGroup(String selectGroup)
Deprecated.void
setSelectionChangeAction(Action selectionChangeAction)
Deprecated.Sets the action to execute when row selection changes.void
setSelectMode(WDataTable.SelectMode selectMode)
Deprecated.Sets the row selection mode.void
setSeparatorType(WDataTable.SeparatorType separatorType)
Deprecated.Sets the separator used to visually separate rows or columns.void
setShowColumnHeaders(boolean showColumnHeaders)
Deprecated.Sets whether table column headers should be displayed.void
setShowRowHeaders(boolean showRowHeaders)
Deprecated.Sets whether row headers should be displayed.void
setShowRowIndices(boolean showRowIndices)
Deprecated.Sets whether row indices should be displayed.protected void
setSort(int index, boolean ascending)
Deprecated.For rendering purposes only - has no effect on model.void
setSortMode(WDataTable.SortMode sortMode)
Deprecated.Sets the table sort mode.void
setStripingType(WDataTable.StripingType stripingType)
Deprecated.Sets the striping type used to highlight alternate rows or columns.void
setSubmitOnRowSelect(boolean submitOnRowSelect)
Deprecated.1.2.0void
setSummary(String summary)
Deprecated.Sets the table summary text.void
setType(WDataTable.Type type)
Deprecated.Sets the table type.void
sort(int sortCol, boolean sortAsc)
Deprecated.Sort the table data by the specified column.void
toggleSelection(boolean selected)
Deprecated.Sets the selections for this component.String
toString()
Deprecated.Creates a String representation of this component; usually for debugging purposes.void
updateBeanValue()
Deprecated.Updates the bean using the table data model'sTableDataModel.setValueAt(Object, int, int)
method.-
Methods inherited from class com.github.bordertech.wcomponents.WBeanComponent
addBeanToScratchMap, doUpdateBeanValue, getBean, getBeanFromScratchMap, getBeanId, getBeanProperty, getBeanProvider, getBeanScratchMap, getBeanValue, getData, isBeanInScratchMap, isChanged, isSearchAncestors, isUseRequestScopeScratchMap, removeBeanFromScratchMap, resetData, setBean, setBeanId, setBeanProperty, setBeanProvider, setData, setSearchAncestors
-
Methods inherited from class com.github.bordertech.wcomponents.AbstractWComponent
addHtmlClass, addHtmlClass, addNotify, afterPaint, assertAddSupported, beforePaint, createErrorDiagnostic, createErrorDiagnostic, forward, getAccessibleText, getAttribute, getBaseUrl, getDefaultModel, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getScratchMap, getTabIndex, getTag, getTemplate, getTemplateMarkUp, getToolTip, hasNoComponentModel, hasTabIndex, initialiseComponentModel, invokeLater, invokeLaters, isDebugStructure, isDefaultState, isFlagSet, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, paintComponent, preparePaint, preparePaintComponent, removeAttribute, removeComponentModel, removeHtmlClass, removeHtmlClass, removeNotify, replaceWComponent, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFlag, setFocussed, setHidden, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showErrorIndicatorsForComponent, showWarningIndicators, showWarningIndicatorsForComponent, tidyUpUIContext, tidyUpUIContextForTree, validate, validateComponent, writeReplace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.bordertech.wcomponents.WComponent
addHtmlClass, addHtmlClass, forward, getAccessibleText, getAttribute, getBaseUrl, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getTabIndex, getTag, getToolTip, hasTabIndex, invokeLater, isDefaultState, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, preparePaint, removeAttribute, removeHtmlClass, removeHtmlClass, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFocussed, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showWarningIndicators, tidyUpUIContextForTree, validate
-
-
-
-
Method Detail
-
addColumn
public void addColumn(WTableColumn column)
Deprecated.Adds a column to the table.- Parameters:
column
- the column to add.
-
getColumn
public WTableColumn getColumn(int index)
Deprecated.Retrieves the column at the specified index. Bounds checking is not performed, seegetColumnCount()
.- Parameters:
index
- the column index.- Returns:
- the column at the specified index.
-
getColumnCount
public int getColumnCount()
Deprecated.Returns the number of columns contained in this table. Invisible columns still count towards the total.- Returns:
- the number of columns contained in this table.
-
getRepeater
public WRepeater getRepeater()
Deprecated.- Returns:
- the repeater used to render table rows.
-
getRowHeaderColumn
public WTableColumn getRowHeaderColumn()
Deprecated.- Returns:
- the table column used to display row headers.
-
isDisabled
public boolean isDisabled()
Deprecated.Indicates whether the WDataTable is disabled in the given context.- Specified by:
isDisabled
in interfaceDisableable
- Returns:
- true if the table is disabled, otherwise false.
-
setDisabled
public void setDisabled(boolean disabled)
Deprecated.Sets whether the WDataTable is disabled.- Specified by:
setDisabled
in interfaceDisableable
- Parameters:
disabled
- true to disable the table, false to enable it.
-
getDataModel
public TableDataModel getDataModel()
Deprecated.- Returns:
- Returns the dataModel.
-
setDataModel
public void setDataModel(TableDataModel dataModel)
Deprecated.Sets the data model.- Parameters:
dataModel
- The dataModel to set.
-
updateBeanValue
public void updateBeanValue()
Deprecated.Updates the bean using the table data model'sTableDataModel.setValueAt(Object, int, int)
method.- Overrides:
updateBeanValue
in classWBeanComponent
-
getSeparatorType
public WDataTable.SeparatorType getSeparatorType()
Deprecated.- Returns:
- the separator type.
-
setSeparatorType
public void setSeparatorType(WDataTable.SeparatorType separatorType)
Deprecated.Sets the separator used to visually separate rows or columns.- Parameters:
separatorType
- The separator type to set.
-
getStripingType
public WDataTable.StripingType getStripingType()
Deprecated.- Returns:
- Returns the striping type.
-
setStripingType
public void setStripingType(WDataTable.StripingType stripingType)
Deprecated.Sets the striping type used to highlight alternate rows or columns.- Parameters:
stripingType
- The striping type to set.
-
isShowColumnHeaders
public boolean isShowColumnHeaders()
Deprecated.Indicates whether table column headers should be displayed.- Returns:
- true if column headers should be displayed, false otherwise.
-
setShowColumnHeaders
public void setShowColumnHeaders(boolean showColumnHeaders)
Deprecated.Sets whether table column headers should be displayed.- Parameters:
showColumnHeaders
- true to display table column headers, false otherwise.
-
isShowRowHeaders
public boolean isShowRowHeaders()
Deprecated.Indicates whether row headers should be displayed.- Returns:
- true if row headers should be displayed, false otherwise.
-
setShowRowHeaders
public void setShowRowHeaders(boolean showRowHeaders)
Deprecated.Sets whether row headers should be displayed.
To set the column heading for the row headers, use:
getRowHeaderColumn()
.getColumnLabel().setText(yourText).
- Parameters:
showRowHeaders
- true to show row headers, false otherwise.
-
isShowRowIndices
public boolean isShowRowIndices()
Deprecated.Indicates whether row indices should be displayed.- Returns:
- true if row indices should be displayed, false otherwise.
-
setShowRowIndices
public void setShowRowIndices(boolean showRowIndices)
Deprecated.Sets whether row indices should be displayed.- Parameters:
showRowIndices
- true if row indices should be displayed, false otherwise.
-
isSubmitOnRowSelect
public boolean isSubmitOnRowSelect()
Deprecated.1.2.0Indicates whether the form should submit whenever the row selection changes. This must befalse
and would be removed if this class was not already deprecated. See #701.- Returns:
- false
-
setSubmitOnRowSelect
public void setSubmitOnRowSelect(boolean submitOnRowSelect)
Deprecated.1.2.0Sets whether the form should submit whenever the row selection changes. This must befalse
and would be removed if this class was not already deprecated. See #701.- Parameters:
submitOnRowSelect
- true if form submission should occur on row selection change, false otherwise.
-
isFilterable
public boolean isFilterable()
Deprecated.Indicates whether filtering is enabled.- Returns:
- true if filtering is enabled, false otherwise.
-
setFilterable
public void setFilterable(boolean filterable)
Deprecated.Sets whether filtering is enabled.- Parameters:
filterable
- true to enable filtering, false otherwise.
-
setActiveFilters
public void setActiveFilters(List<String> activeFilters)
Deprecated.Sets the active filters.- Parameters:
activeFilters
- The active filters to set.
-
getSelectionChangeAction
public Action getSelectionChangeAction()
Deprecated.- Returns:
- the action to execute when row selection changes.
-
setSelectionChangeAction
public void setSelectionChangeAction(Action selectionChangeAction)
Deprecated.Sets the action to execute when row selection changes.- Parameters:
selectionChangeAction
- the action to execute on row selection change.
-
getNoDataMessage
public String getNoDataMessage()
Deprecated.- Returns:
- the message to display when the table contains no rows.
-
setNoDataMessage
public void setNoDataMessage(String noDataMessage)
Deprecated.Sets the message to display when the table contains no rows.- Parameters:
noDataMessage
- the no data message.
-
getSummary
public String getSummary()
Deprecated.- Returns:
- the table summary text.
-
setSummary
public void setSummary(String summary)
Deprecated.Sets the table summary text.- Parameters:
summary
- The summary to set.
-
getCaption
public String getCaption()
Deprecated.- Returns:
- the table caption text.
-
setCaption
public void setCaption(String caption)
Deprecated.Sets the table caption text.- Parameters:
caption
- The caption to set.
-
getColumnOrder
public int[] getColumnOrder()
Deprecated.- Returns:
- the column order, or null if the default ordering is to be used.
-
setColumnOrder
public void setColumnOrder(int[] columnOrder)
Deprecated.- Parameters:
columnOrder
- the column order to set, or null to use default ordering.
-
getPaginationMode
public WDataTable.PaginationMode getPaginationMode()
Deprecated.- Returns:
- the pagination mode.
-
setPaginationMode
public void setPaginationMode(WDataTable.PaginationMode paginationMode)
Deprecated.Sets the pagination mode. Mode.SERVER mapped to Mode.DYNAMIC to overcome accessibility problem.- Parameters:
paginationMode
- The paginationMode to set.
-
getRowsPerPage
public int getRowsPerPage()
Deprecated.- Returns:
- the number of rows to display per page.
-
setRowsPerPage
public void setRowsPerPage(int rowsPerPage)
Deprecated.Sets the number of rows to display per page when pagination is enabled.- Parameters:
rowsPerPage
- The rowsPerPage to set, greater than zero.
-
getSelectMode
public WDataTable.SelectMode getSelectMode()
Deprecated.- Returns:
- the row selection mode..
-
setSelectMode
public void setSelectMode(WDataTable.SelectMode selectMode)
Deprecated.Sets the row selection mode.- Parameters:
selectMode
- The select mode to set.
-
getSelectGroup
public String getSelectGroup()
Deprecated.- Returns:
- Returns the selectGroup.
-
setSelectGroup
public void setSelectGroup(String selectGroup)
Deprecated.- Parameters:
selectGroup
- The selectGroup to set.
-
getSortMode
public WDataTable.SortMode getSortMode()
Deprecated.- Returns:
- Returns the sort mode.
-
setSortMode
public void setSortMode(WDataTable.SortMode sortMode)
Deprecated.Sets the table sort mode. The data model controls which columns are sortable.- Parameters:
sortMode
- The sort mode to set.
-
getType
public WDataTable.Type getType()
Deprecated.- Returns:
- the table type.
-
setType
public void setType(WDataTable.Type type)
Deprecated.Sets the table type.- Parameters:
type
- the table type to set.
-
getSelectAllMode
public WDataTable.SelectAllType getSelectAllMode()
Deprecated.Indicates how the table row "select all" function should be displayed.- Returns:
- Returns the select all mode.
-
setSelectAllMode
public void setSelectAllMode(WDataTable.SelectAllType selectAllMode)
Deprecated.Sets how the table row "select all" function should be displayed.- Parameters:
selectAllMode
- The select all mode to set.
-
getExpandMode
public WDataTable.ExpandMode getExpandMode()
Deprecated.- Returns:
- the row expansion mode.
-
setExpandMode
public void setExpandMode(WDataTable.ExpandMode expandMode)
Deprecated.Sets the row expansion mode. ExpandMode.SERVER mapped to ExpandMode.DYNAMIC to overcome accessibility problems.- Parameters:
expandMode
- The expand mode to set.
-
isExpandAll
public boolean isExpandAll()
Deprecated.Indicates whether the "expand all" control should be available.- Returns:
- true if the expand all control should be available, false if not.
-
setExpandAll
public void setExpandAll(boolean expandAll)
Deprecated.Sets whether the "expand all" control should be available.- Parameters:
expandAll
- true if the expand-all control should be available, false if not.
-
getCurrentPage
public int getCurrentPage()
Deprecated.- Returns:
- the current page.
-
setCurrentPage
public void setCurrentPage(int currentPage)
Deprecated.- Parameters:
currentPage
- The currentPage to set.
-
setExpandedRows
public void setExpandedRows(List<Integer> expandedRows)
Deprecated.- Parameters:
expandedRows
- The expandedRows to set.
-
getExpandedRows
public List<Integer> getExpandedRows()
Deprecated.- Returns:
- Returns the expandedRows.
-
setSelectedRows
public void setSelectedRows(List<Integer> selectedRows)
Deprecated.- Parameters:
selectedRows
- The selectedRows to set.
-
getSelectedRows
public List<Integer> getSelectedRows()
Deprecated.- Returns:
- the list of selected row indices, will not be null.
-
setSort
protected void setSort(int index, boolean ascending)
Deprecated.For rendering purposes only - has no effect on model.- Parameters:
index
- the sort column index, or -1 for no sort.ascending
- true for ascending order, false for descending
-
isSorted
public boolean isSorted()
Deprecated.- Returns:
- true if the table is currently sorted
-
getSortColumnIndex
public int getSortColumnIndex()
Deprecated.- Returns:
- the index of the column the table is sorted by.
-
isSortAscending
public boolean isSortAscending()
Deprecated.Indicates whether the sort on this table is ascending. Note that a return value of false does not necessarily indicate a descending sort - seeisSorted()
.- Returns:
- true if the sort order is ascending, false for descending.
-
isSortable
public boolean isSortable()
Deprecated.Indicates whether the table supports sorting.- Returns:
- true if the table and model both support sorting, false otherwise.
-
getActions
public List<WButton> getActions()
Deprecated.Retrieves the actions for the table.- Returns:
- the list of table actions
-
addAction
public void addAction(WButton button)
Deprecated.Adds a component to the set of table actions.- Parameters:
button
- the button to add.
-
addActionConstraint
public void addActionConstraint(WButton button, WDataTable.ActionConstraint constraint)
Deprecated.Adds a constraint to when the given action can be used.- Parameters:
button
- the button which the constraint applies to.constraint
- the constraint to add.
-
getActionConstraints
public List<WDataTable.ActionConstraint> getActionConstraints(WButton button)
Deprecated.Retrieves the constraints for the given action.- Parameters:
button
- the button to retrieve the constraints for.- Returns:
- the constraints for the given action, or null if there are no constraints.
-
toggleSelection
public void toggleSelection(boolean selected)
Deprecated.Description copied from interface:SelectionToggleable
Sets the selections for this component.- Specified by:
toggleSelection
in interfaceSelectionToggleable
- Parameters:
selected
- if true, select everything. If false, deselect everything.
-
handleRequest
public void handleRequest(Request request)
Deprecated.Override handleRequest to add table-specific functionality such as pagination and row selection.- Specified by:
handleRequest
in interfaceWComponent
- Overrides:
handleRequest
in classAbstractWComponent
- Parameters:
request
- the request being responded to.
-
isPresent
protected boolean isPresent(Request request)
Deprecated.Indicates whether this table was present in the request.- Parameters:
request
- the request being responded to.- Returns:
- true if this table was present in the request, false if not.
-
sort
public void sort(int sortCol, boolean sortAsc)
Deprecated.Sort the table data by the specified column.- Parameters:
sortCol
- the column to sortsortAsc
- true if sort ascending, otherwise sort descending
-
setNamingContext
public void setNamingContext(boolean context)
Deprecated.A naming context is only considered active if it has been set active viasetNamingContext(boolean)
and also has an id name set viaAbstractWComponent.setIdName(String)
.- Parameters:
context
- set true if this is a naming context.
-
isNamingContext
public boolean isNamingContext()
Deprecated.A naming context is only considered active if an Id name has been set.- Specified by:
isNamingContext
in interfaceNamingContextable
- Returns:
- true if active naming context.
-
getNamingContextId
public String getNamingContextId()
Deprecated.Allow components that implementNamingContextable
to selectively disable prepending their ID to their descendent's IDs by breaking the prepending logic into a seperately callable method.See
WComponent.getId()
for usage.By default, this method will call through to
WComponent.getId()
and return the result.- Specified by:
getNamingContextId
in interfaceNamingContextable
- Returns:
- by default, return getId().
-
getChildCount
public int getChildCount()
Deprecated.- Specified by:
getChildCount
in interfaceContainer
- Returns:
- the number of child components currently contained within this component.
-
getChildAt
public WComponent getChildAt(int index)
Deprecated.Retrieves a child component by its index.- Specified by:
getChildAt
in interfaceContainer
- Parameters:
index
- the index of the child component to be retrieved.- Returns:
- the child component at the given index.
-
getIndexOfChild
public int getIndexOfChild(WComponent childComponent)
Deprecated.Retrieves the index of the given child.- Specified by:
getIndexOfChild
in interfaceContainer
- Parameters:
childComponent
- the child component to retrieve the index for.- Returns:
- the index of the given child component, or -1 if the component is not a child of this component.
-
getChildren
public List<WComponent> getChildren()
Deprecated.Description copied from interface:Container
Retrieves a list of this Container's.- Specified by:
getChildren
in interfaceContainer
- Returns:
- an immutable list of this Container.
-
toString
public String toString()
Deprecated.Description copied from class:AbstractWComponent
Creates a String representation of this component; usually for debugging purposes.- Overrides:
toString
in classAbstractWComponent
- Returns:
- a String representation of this component, for debugging purposes.
-
newComponentModel
protected WDataTable.TableModel newComponentModel()
Deprecated.Creates a new component model.- Overrides:
newComponentModel
in classWBeanComponent
- Returns:
- a new TableModel.
-
getComponentModel
protected WDataTable.TableModel getComponentModel()
Deprecated.Returns the effective component model for this component. Subclass may override this method to narrow the return type to their specific model type.- Overrides:
getComponentModel
in classWBeanComponent
- Returns:
- the effective component model
-
getOrCreateComponentModel
protected WDataTable.TableModel getOrCreateComponentModel()
Deprecated.Retrieves the model for this component so that it can be modified. If this method is called during request processing, and a session specific model does not yet exist, then a new model is created. Subclasses may override this method to narrow the return type to their specific model type.- Overrides:
getOrCreateComponentModel
in classWBeanComponent
- Returns:
- the model for this component
-
-