Interface MutableColumnModel
- All Superinterfaces:
ColumnModel
- All Known Implementing Classes:
AbstractColumnModel,DefaultColumnModel
The Interface MutableColumnModel.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhideColumn(int colIndex) Hide column.booleanmoveColumn(int fromIndex, int toIndex) Move column.voidsetSelectedIndex(int index) Sets the selected index.booleansetSelectedIndexDirectly(int index) Sets the selected index directly.voidsetSelectedIndexes(List<Integer> selectedIndexes) Sets the selected indexes.booleansetSelectedIndexesDirectly(List<Integer> selectedIndexes) Sets the selected indexes directly.voidsetSortAscending(boolean sortAsc) Sets the sort ascending.voidsetSortedColumnIndex(int colIndex, boolean ascending) Sets the sorted column index.voidsetValueAt(int colIndex, TypedObject item, Object value) Sets the value at.voidsetVisibleColumns(List<ColumnDescriptor> visCols, boolean force) Sets the visible columns.booleanshowColumn(ColumnDescriptor colDescr, Integer colIndex) Show column.voidupdateDynamicColumns(ListModel listModel) Update dynamic columns.Methods inherited from interface de.hybris.platform.cockpit.model.listview.ColumnModel
addColumnModelListener, findColumn, getCellEditor, getCellRenderer, getColumn, getColumns, getColumnWidth, getColumnWidth, getHiddenColumns, getHiddenLocalizedColumns, getLocalizedColumn, getMenuPopupBuilder, getNewInlineItemRenderer, getPropertyDescriptor, getRootColumnGroup, getSelectedIndex, getSelectedIndexes, getSortedByColumnIndex, getValueAt, getVisibleColumn, getVisibleColumns, getVisibleLocalizedColumns, isColumnLocalized, isColumnSelected, isSortAscending, removeColumnModelListener
-
Method Details
-
showColumn
Show column.- Parameters:
colDescr- the col descrcolIndex- the col index- Returns:
- true, if successful
-
hideColumn
boolean hideColumn(int colIndex) Hide column.- Parameters:
colIndex- the col index- Returns:
- true, if successful
-
moveColumn
boolean moveColumn(int fromIndex, int toIndex) Move column.- Parameters:
fromIndex- the from indextoIndex- the to index- Returns:
- true, if successful
-
setSelectedIndex
void setSelectedIndex(int index) Sets the selected index.- Parameters:
index- the new selected index
-
setSelectedIndexDirectly
boolean setSelectedIndexDirectly(int index) Sets the selected index directly.- Parameters:
index- the index- Returns:
- true, if successful
-
setSelectedIndexes
Sets the selected indexes.- Parameters:
selectedIndexes- the new selected indexes
-
setSelectedIndexesDirectly
Sets the selected indexes directly.- Parameters:
selectedIndexes- the selected indexes- Returns:
- true, if successful
-
setSortAscending
void setSortAscending(boolean sortAsc) Sets the sort ascending.- Parameters:
sortAsc- the new sort ascending
-
setSortedColumnIndex
void setSortedColumnIndex(int colIndex, boolean ascending) Sets the sorted column index.- Parameters:
colIndex- the col indexascending- the ascending
-
setValueAt
Sets the value at.- Parameters:
colIndex- the col indexitem- the itemvalue- the value- Throws:
ValueHandlerException- the value handler exception
-
setVisibleColumns
Sets the visible columns.- Parameters:
visCols- the vis colsforce- the force
-
updateDynamicColumns
Update dynamic columns.- Parameters:
listModel- the list model
-