Class DefaultColumnModelListener
- java.lang.Object
-
- de.hybris.platform.cockpit.model.listview.impl.DefaultColumnModelListener
-
- All Implemented Interfaces:
ColumnModelListener
public class DefaultColumnModelListener extends java.lang.Object implements ColumnModelListener
-
-
Constructor Summary
Constructors Constructor Description DefaultColumnModelListener(MutableTableModel model, UIListView view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchanged()Generally called when the model has changed in a way not covered by the otherColumnModelListenermethods.voidcolumnMoved(int fromIndex, int toIndex)Called when a column has been moved.voidcolumnVisibilityChanged()Called whenever a column's visibility has changed.voidcolumnVisibilityChanged(java.lang.Integer colIndex)Called whenever a column's visibility has changed (and column is not shown as last column).voidselectionChanged(java.util.List<? extends java.lang.Object> columnIndexes)Called whenever the column selection has changed.voidsortChanged(int columnIndex, boolean ascending)Called when the sort conditions have changed.
-
-
-
Constructor Detail
-
DefaultColumnModelListener
public DefaultColumnModelListener(MutableTableModel model, UIListView view)
-
-
Method Detail
-
changed
public void changed()
Description copied from interface:ColumnModelListenerGenerally called when the model has changed in a way not covered by the otherColumnModelListenermethods.- Specified by:
changedin interfaceColumnModelListener
-
columnMoved
public void columnMoved(int fromIndex, int toIndex)Description copied from interface:ColumnModelListenerCalled when a column has been moved.- Specified by:
columnMovedin interfaceColumnModelListener- Parameters:
fromIndex- previous zero based position index of the columntoIndex- new zero based position index of the column
-
columnVisibilityChanged
public void columnVisibilityChanged()
Description copied from interface:ColumnModelListenerCalled whenever a column's visibility has changed.- Specified by:
columnVisibilityChangedin interfaceColumnModelListener
-
columnVisibilityChanged
public void columnVisibilityChanged(java.lang.Integer colIndex)
Description copied from interface:ColumnModelListenerCalled whenever a column's visibility has changed (and column is not shown as last column).- Specified by:
columnVisibilityChangedin interfaceColumnModelListener
-
selectionChanged
public void selectionChanged(java.util.List<? extends java.lang.Object> columnIndexes)
Description copied from interface:ColumnModelListenerCalled whenever the column selection has changed.- Specified by:
selectionChangedin interfaceColumnModelListener- Parameters:
columnIndexes- indexes of the currently selected columns
-
sortChanged
public void sortChanged(int columnIndex, boolean ascending)Description copied from interface:ColumnModelListenerCalled when the sort conditions have changed.- Specified by:
sortChangedin interfaceColumnModelListener- Parameters:
columnIndex- zero based position index of the column by which the values are currently sortedascending- whether the sort order is set to ascending or not
-
-