public class UndoableInsertColumnsAction extends UndoableInsertAction
metaInfoWriterCOLUMNS, INSERT, REMOVE, ROWS| Constructor and Description |
|---|
UndoableInsertColumnsAction(int nCols,
int beforeCol,
int row,
MetaInfoWriter metaInfoWriter) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canInsertColumns(IGridTable table,
int nCols) |
protected boolean |
canPerformAction(IGridTable table)
Checks if action can be performed without moving the table.
|
protected GridRegionAction |
getGridRegionAction(IGridRegion gridRegion,
int numberToInsert) |
protected int |
getNumberToInsert(IGridTable table)
Get actual number of rows or columns to be inserted.
|
protected IUndoableGridTableAction |
performAction(int numberToInsert,
IGridRegion fullTableRegion,
IGridTable table)
Perform action for inserting rows or columns.
|
doAction, undoActiongetOriginalRegion, getOriginalTable, isDecoratorTable, moveTablepublic UndoableInsertColumnsAction(int nCols,
int beforeCol,
int row,
MetaInfoWriter metaInfoWriter)
public static boolean canInsertColumns(IGridTable table, int nCols)
protected boolean canPerformAction(IGridTable table)
UndoableInsertActioncanPerformAction in class UndoableInsertActiontable - a table to apply the action.protected int getNumberToInsert(IGridTable table)
UndoableInsertActiongetNumberToInsert in class UndoableInsertActiontable - a table to apply the action.protected IUndoableGridTableAction performAction(int numberToInsert, IGridRegion fullTableRegion, IGridTable table)
UndoableInsertActionperformAction in class UndoableInsertActionnumberToInsert - number of rows or columns to be inserted.fullTableRegion - a region of original tabletable - a table to apply the action.protected GridRegionAction getGridRegionAction(IGridRegion gridRegion, int numberToInsert)
getGridRegionAction in class UndoableInsertActionCopyright © 2004–2019 OpenL Tablets. All rights reserved.