Class DefaultSimpleSelectorListViewListener

java.lang.Object
de.hybris.platform.cockpit.model.referenceeditor.simple.impl.DefaultSimpleSelectorListViewListener
All Implemented Interfaces:
ListViewListener

public class DefaultSimpleSelectorListViewListener extends Object implements ListViewListener
Karol Walczak <karol.walczak@hybris.com>
  • Constructor Details

    • DefaultSimpleSelectorListViewListener

      public DefaultSimpleSelectorListViewListener(MutableTableModel mutableTableModel)
  • Method Details

    • activate

      public void activate(List<Integer> indexes)
      Description copied from interface: ListViewListener
      Called whenever items are to be activated
      Specified by:
      activate in interface ListViewListener
      Parameters:
      indexes - indexes of the items to activate
    • changeCellValue

      public void changeCellValue(int columnIndex, int rowIndex, Object data)
      Description copied from interface: ListViewListener
      Called whenever a cell's value is to be changed.
      Specified by:
      changeCellValue in interface ListViewListener
      Parameters:
      columnIndex - zero based column position index of the cell that is to be changed
      rowIndex - zero based row position index of the cell to be changed
      data - the new value
    • changeSelection

      public void changeSelection(int columnIndex, int rowIndex)
      Description copied from interface: ListViewListener
      Called whenever a cell is to be selected.
      Specified by:
      changeSelection in interface ListViewListener
      Parameters:
      columnIndex - zero based column position index
      rowIndex - zero based row position index
    • changeSelection

      public void changeSelection(List<Integer> columnIndexes, List<Integer> rowIndexes)
      Description copied from interface: ListViewListener
      Called whenever multiple cells are to be selected.
      Specified by:
      changeSelection in interface ListViewListener
      Parameters:
      columnIndexes - zero based column position indexes of the columns to be selected
      rowIndexes - zero based row position indexes of the rows to be selected
    • move

      public void move(int fromIndex, int toIndex)
      Description copied from interface: ListViewListener
      Called whenever a row is to be moved.
      Specified by:
      move in interface ListViewListener
      Parameters:
      fromIndex - current zero based row position index
      toIndex - new zero based row position index
    • remove

      public void remove(Collection<Integer> indexes)
      Description copied from interface: ListViewListener
      Called whenever rows are to be deleted.
      Specified by:
      remove in interface ListViewListener
      Parameters:
      indexes - zero based position indexes of the rows to delete
    • sortColumn

      public void sortColumn(int columnIndex, boolean asc)
      Description copied from interface: ListViewListener
      Called whenever the elements are to be sorted.
      Specified by:
      sortColumn in interface ListViewListener
      Parameters:
      columnIndex - index of the column by which the elements should be sorted
      asc - the sort order to be used, true = ascending; false = descending
    • hideColumn

      public void hideColumn(int colIndex)
      Specified by:
      hideColumn in interface ListViewListener
    • moveColumn

      public void moveColumn(int fromIndex, int toIndex)
      Specified by:
      moveColumn in interface ListViewListener
    • showColumn

      public void showColumn(ColumnDescriptor columnDescr, Integer colIndex)
      Specified by:
      showColumn in interface ListViewListener
    • requestPaging

      public void requestPaging(int offset)
      Specified by:
      requestPaging in interface ListViewListener
    • openInContextEditor

      public void openInContextEditor(int rowIndex, UIEditor editor, PropertyDescriptor propertyDescriptor)
      Specified by:
      openInContextEditor in interface ListViewListener
    • markAllAsSelected

      public void markAllAsSelected(List<Integer> columnIndexes, List<Integer> rowIndexes)
      Description copied from interface: ListViewListener
      Called whenever user marks all cells as selected
      Specified by:
      markAllAsSelected in interface ListViewListener
    • multiEdit

      public void multiEdit(int colIndex, List<Integer> rowIndexes, Object data)
      Specified by:
      multiEdit in interface ListViewListener
    • drop

      public void drop(int fromIndex, int toIndex, DragAndDropContext ddContext)
      Description copied from interface: ListViewListener
      Called whenever rows are to be dropped.
      Specified by:
      drop in interface ListViewListener