Class DefaultSimpleSelectorListViewListener
- java.lang.Object
-
- de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleSelectorListViewListener
-
- All Implemented Interfaces:
ListViewListener
public class DefaultSimpleSelectorListViewListener extends java.lang.Object implements ListViewListener
Karol Walczak
-
-
Constructor Summary
Constructors Constructor Description DefaultSimpleSelectorListViewListener(MutableTableModel mutableTableModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(java.util.List<java.lang.Integer> indexes)Called whenever items are to be activatedvoidchangeCellValue(int columnIndex, int rowIndex, java.lang.Object data)Called whenever a cell's value is to be changed.voidchangeSelection(int columnIndex, int rowIndex)Called whenever a cell is to be selected.voidchangeSelection(java.util.List<java.lang.Integer> columnIndexes, java.util.List<java.lang.Integer> rowIndexes)Called whenever multiple cells are to be selected.voiddrop(int fromIndex, int toIndex, DragAndDropContext ddContext)Called whenever rows are to be dropped.voidhideColumn(int colIndex)voidmarkAllAsSelected(java.util.List<java.lang.Integer> columnIndexes, java.util.List<java.lang.Integer> rowIndexes)Called whenever user marks all cells as selectedvoidmove(int fromIndex, int toIndex)Called whenever a row is to be moved.voidmoveColumn(int fromIndex, int toIndex)voidmultiEdit(int colIndex, java.util.List<java.lang.Integer> rowIndexes, java.lang.Object data)voidopenInContextEditor(int rowIndex, UIEditor editor, PropertyDescriptor propertyDescriptor)voidremove(java.util.Collection<java.lang.Integer> indexes)Called whenever rows are to be deleted.voidrequestPaging(int offset)voidshowColumn(ColumnDescriptor columnDescr, java.lang.Integer colIndex)voidsortColumn(int columnIndex, boolean asc)Called whenever the elements are to be sorted.
-
-
-
Constructor Detail
-
DefaultSimpleSelectorListViewListener
public DefaultSimpleSelectorListViewListener(MutableTableModel mutableTableModel)
-
-
Method Detail
-
activate
public void activate(java.util.List<java.lang.Integer> indexes)
Description copied from interface:ListViewListenerCalled whenever items are to be activated- Specified by:
activatein interfaceListViewListener- Parameters:
indexes- indexes of the items to activate
-
changeCellValue
public void changeCellValue(int columnIndex, int rowIndex, java.lang.Object data)Description copied from interface:ListViewListenerCalled whenever a cell's value is to be changed.- Specified by:
changeCellValuein interfaceListViewListener- Parameters:
columnIndex- zero based column position index of the cell that is to be changedrowIndex- zero based row position index of the cell to be changeddata- the new value
-
changeSelection
public void changeSelection(int columnIndex, int rowIndex)Description copied from interface:ListViewListenerCalled whenever a cell is to be selected.- Specified by:
changeSelectionin interfaceListViewListener- Parameters:
columnIndex- zero based column position indexrowIndex- zero based row position index
-
changeSelection
public void changeSelection(java.util.List<java.lang.Integer> columnIndexes, java.util.List<java.lang.Integer> rowIndexes)Description copied from interface:ListViewListenerCalled whenever multiple cells are to be selected.- Specified by:
changeSelectionin interfaceListViewListener- Parameters:
columnIndexes- zero based column position indexes of the columns to be selectedrowIndexes- zero based row position indexes of the rows to be selected
-
move
public void move(int fromIndex, int toIndex)Description copied from interface:ListViewListenerCalled whenever a row is to be moved.- Specified by:
movein interfaceListViewListener- Parameters:
fromIndex- current zero based row position indextoIndex- new zero based row position index
-
remove
public void remove(java.util.Collection<java.lang.Integer> indexes)
Description copied from interface:ListViewListenerCalled whenever rows are to be deleted.- Specified by:
removein interfaceListViewListener- Parameters:
indexes- zero based position indexes of the rows to delete
-
sortColumn
public void sortColumn(int columnIndex, boolean asc)Description copied from interface:ListViewListenerCalled whenever the elements are to be sorted.- Specified by:
sortColumnin interfaceListViewListener- Parameters:
columnIndex- index of the column by which the elements should be sortedasc- the sort order to be used,true= ascending;false= descending
-
hideColumn
public void hideColumn(int colIndex)
- Specified by:
hideColumnin interfaceListViewListener
-
moveColumn
public void moveColumn(int fromIndex, int toIndex)- Specified by:
moveColumnin interfaceListViewListener
-
showColumn
public void showColumn(ColumnDescriptor columnDescr, java.lang.Integer colIndex)
- Specified by:
showColumnin interfaceListViewListener
-
requestPaging
public void requestPaging(int offset)
- Specified by:
requestPagingin interfaceListViewListener
-
openInContextEditor
public void openInContextEditor(int rowIndex, UIEditor editor, PropertyDescriptor propertyDescriptor)- Specified by:
openInContextEditorin interfaceListViewListener
-
markAllAsSelected
public void markAllAsSelected(java.util.List<java.lang.Integer> columnIndexes, java.util.List<java.lang.Integer> rowIndexes)Description copied from interface:ListViewListenerCalled whenever user marks all cells as selected- Specified by:
markAllAsSelectedin interfaceListViewListener
-
multiEdit
public void multiEdit(int colIndex, java.util.List<java.lang.Integer> rowIndexes, java.lang.Object data)- Specified by:
multiEditin interfaceListViewListener
-
drop
public void drop(int fromIndex, int toIndex, DragAndDropContext ddContext)Description copied from interface:ListViewListenerCalled whenever rows are to be dropped.- Specified by:
dropin interfaceListViewListener
-
-