public abstract class UndoableInsertAction extends UndoableEditTableAction
| Modifier and Type | Field and Description |
|---|---|
protected MetaInfoWriter |
metaInfoWriter |
COLUMNS, INSERT, REMOVE, ROWS| Modifier | Constructor and Description |
|---|---|
protected |
UndoableInsertAction(MetaInfoWriter metaInfoWriter) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
canPerformAction(IGridTable table)
Checks if action can be performed without moving the table.
|
void |
doAction(IGridTable table) |
protected abstract GridRegionAction |
getGridRegionAction(IGridRegion gridRegion,
int numberToInsert) |
protected abstract int |
getNumberToInsert(IGridTable table)
Get actual number of rows or columns to be inserted.
|
protected abstract IUndoableGridTableAction |
performAction(int numberToInsert,
IGridRegion fullTableRegion,
IGridTable table)
Perform action for inserting rows or columns.
|
void |
undoAction(IGridTable table) |
getOriginalRegion, getOriginalTable, isDecoratorTable, moveTableprotected final MetaInfoWriter metaInfoWriter
protected UndoableInsertAction(MetaInfoWriter metaInfoWriter)
public void doAction(IGridTable table)
public void undoAction(IGridTable table)
protected abstract boolean canPerformAction(IGridTable table)
table - a table to apply the action.protected abstract int getNumberToInsert(IGridTable table)
table - a table to apply the action.protected abstract IUndoableGridTableAction performAction(int numberToInsert, IGridRegion fullTableRegion, IGridTable table)
numberToInsert - number of rows or columns to be inserted.fullTableRegion - a region of original tabletable - a table to apply the action.protected abstract GridRegionAction getGridRegionAction(IGridRegion gridRegion, int numberToInsert)
Copyright © 2004–2019 OpenL Tablets. All rights reserved.