Interface ListViewListener
- All Known Implementing Classes:
AbstractListViewListener,AdvancedSearchPage.DefaultSelectorListViewListener,AdvancedSearchPage.DefaultSelectorListViewListener,CmsBrowserSectionListViewlListener,ContextAreaListViewListener,DefaultBrowserListViewListener,DefaultBrowserSectionListViewListener,DefaultListViewListener,DefaultSelectorListViewListener,DefaultSimpleSelectorListViewListener
public interface ListViewListener
A
ListViewListener is notified whenever the UIListView with which it is registered has changed.-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled whenever items are to be activatedvoidchangeCellValue(int columnIndex, int rowIndex, 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(List<Integer> columnIndexes, List<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(List<Integer> colIndexes, List<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) voidvoidopenInContextEditor(int rowIndex, UIEditor editor, PropertyDescriptor propertyDescriptor) voidremove(Collection<Integer> indexes) Called whenever rows are to be deleted.voidrequestPaging(int offset) voidshowColumn(ColumnDescriptor columnDescr, Integer colIndex) voidsortColumn(int columnIndex, boolean asc) Called whenever the elements are to be sorted.
-
Method Details
-
move
void move(int fromIndex, int toIndex) Called whenever a row is to be moved.- Parameters:
fromIndex- current zero based row position indextoIndex- new zero based row position index
-
remove
Called whenever rows are to be deleted.- Parameters:
indexes- zero based position indexes of the rows to delete
-
activate
Called whenever items are to be activated- Parameters:
indexes- indexes of the items to activate
-
changeSelection
void changeSelection(int columnIndex, int rowIndex) Called whenever a cell is to be selected.- Parameters:
columnIndex- zero based column position indexrowIndex- zero based row position index
-
changeSelection
Called whenever multiple cells are to be selected.- Parameters:
columnIndexes- zero based column position indexes of the columns to be selectedrowIndexes- zero based row position indexes of the rows to be selected
-
markAllAsSelected
Called whenever user marks all cells as selected -
changeCellValue
Called whenever a cell's value is to be changed.- 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
-
sortColumn
void sortColumn(int columnIndex, boolean asc) Called whenever the elements are to be sorted.- Parameters:
columnIndex- index of the column by which the elements should be sortedasc- the sort order to be used,true= ascending;false= descending
-
moveColumn
void moveColumn(int fromIndex, int toIndex) -
hideColumn
void hideColumn(int colIndex) -
showColumn
-
requestPaging
void requestPaging(int offset) -
openInContextEditor
-
multiEdit
-
drop
Called whenever rows are to be dropped.- Parameters:
fromIndex-toIndex-ddContext-
-