Class UndoableRemoveAction

    • Constructor Detail

      • UndoableRemoveAction

        public UndoableRemoveAction()
    • Method Detail

      • doAction

        public void doAction​(IGridTable table)
      • undoAction

        public void undoAction​(IGridTable table)
      • canPerformAction

        protected abstract boolean canPerformAction​(IGridRegion gridRegion)
        Checks if action can be performed.
        Parameters:
        gridRegion -
        Returns:
        true if action can be performed.
      • getNumberToRemove

        protected abstract int getNumberToRemove​(IGridTable table)
        Get actual number of rows or columns to be removed. It depends whether the cell is merged or not.
        Parameters:
        table -
        Returns:
        actual number to be removed.
      • performAction

        protected abstract IUndoableGridTableAction performAction​(int numberToRemove,
                                                                  IGridRegion fullTableRegion,
                                                                  IGridTable table)
        Perform action for removing rows or columns.
        Parameters:
        numberToRemove -
        fullTableRegion -
        table -
        Returns:
        action for removing rows or columns.