Class BaseColumnReorderLayerFixture
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer
org.eclipse.nebula.widgets.nattable.test.fixture.layer.BaseColumnReorderLayerFixture
- All Implemented Interfaces:
ILayer,ILayerListener,IUniqueIndexLayer,IPersistable
This fixture provides a base vanilla ColumnReorderLayer. In order to keep a
test's scope narrow, this class exposes the reorderColumnPositions method,
this way we can reorder during testing without having to use commands.
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer
columnIndexOrder, indexPositionMapping, PERSISTENCE_KEY_COLUMN_INDEX_ORDERFields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
underlyingLayerFields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
commandHandlers, eventHandlers, eventHelperLock, layerPainterFields inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable
DOT, VALUE_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreorderColumnPosition(int fromColumnPosition, int toColumnPosition) Moves the given from-column to the left edge of the column to move to.Methods inherited from class org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer
doCommand, getColumnIndexByPosition, getColumnIndexOrder, getColumnIndexOrderArray, getColumnPositionByIndex, getColumnPositionByX, getReorderFromColumnPosition, getRowPositionByIndex, getStartXOfColumnPosition, handleLayerEvent, invalidateCache, isRestoredStateValid, loadState, localToUnderlyingColumnPosition, populateIndexOrder, refreshIndexPositionMapping, registerCommandHandlers, reorderColumnPosition, reorderMultipleColumnIndexes, reorderMultipleColumnIndexes, reorderMultipleColumnPositions, reorderMultipleColumnPositions, reorderMultipleColumnPositions, reorderMultipleColumnPositions, resetReorder, saveState, setReorderFromColumnPosition, underlyingToLocalColumnPosition, underlyingToLocalColumnPositionsMethods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayerTransform
configure, dispose, getCellByPosition, getCellPainter, getColumnCount, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartYOfRowPosition, getUnderlyingLayer, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, isColumnPositionResizable, isDynamicSizeLayer, isRowPositionResizable, localToUnderlyingRowPosition, setClientAreaProvider, setUnderlyingLayer, underlyingToLocalRowPosition, underlyingToLocalRowPositionsMethods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractLayer
addConfiguration, addLayerListener, clearConfiguration, fireLayerEvent, getBoundsByPosition, getClientAreaProvider, getConfigLabelAccumulator, getProvidedLabels, getRegionName, hasLayerListener, registerCommandHandler, registerEventHandler, registerPersistable, removeLayerListener, setConfigLabelAccumulator, setLayerPainter, setRegionName, toString, unregisterCommandHandler, unregisterEventHandler, unregisterPersistableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.nebula.widgets.nattable.layer.ILayer
addLayerListener, configure, dispose, fireLayerEvent, getBoundsByPosition, getCellByPosition, getCellPainter, getClientAreaProvider, getColumnCount, getColumnWidthByPosition, getConfigLabelsByPosition, getDataValueByPosition, getDisplayModeByPosition, getHeight, getLayerPainter, getPreferredColumnCount, getPreferredHeight, getPreferredRowCount, getPreferredWidth, getProvidedLabels, getRegionLabelsByXY, getRowCount, getRowHeightByPosition, getRowIndexByPosition, getRowPositionByY, getStartYOfRowPosition, getUnderlyingLayerByPosition, getUnderlyingLayersByColumnPosition, getUnderlyingLayersByRowPosition, getWidth, hasLayerListener, isColumnPositionResizable, isDynamicSizeLayer, isRowPositionResizable, localToUnderlyingRowPosition, registerCommandHandler, registerPersistable, removeLayerListener, setClientAreaProvider, underlyingToLocalRowPosition, underlyingToLocalRowPositions, unregisterCommandHandler, unregisterPersistable
-
Constructor Details
-
BaseColumnReorderLayerFixture
-
-
Method Details
-
reorderColumnPosition
public void reorderColumnPosition(int fromColumnPosition, int toColumnPosition) Description copied from class:ColumnReorderLayerMoves the given from-column to the left edge of the column to move to.- Overrides:
reorderColumnPositionin classColumnReorderLayer- Parameters:
fromColumnPosition- column position to movetoColumnPosition- position to move the column to
-