Class AbstractCellDataStyleAction

java.lang.Object
io.keikai.ui.impl.undo.AbstractUndoableAction
io.keikai.ui.impl.undo.AbstractCellDataStyleAction
All Implemented Interfaces:
UndoableAction, Serializable
Direct Known Subclasses:
CellBorderAction, CellStyleAction, ClearCellAction, FontStyleAction, MergeCellAction, PasteCellAction, PasteSpecialCellAction, SortCellAction, ToggleMergeCellAction, UnmergeCellAction

public abstract class AbstractCellDataStyleAction extends AbstractUndoableAction
abstract class handle src content/style reservation
Author:
dennis
See Also:
  • Field Details

  • Constructor Details

    • AbstractCellDataStyleAction

      public AbstractCellDataStyleAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, boolean wholeColumn, boolean wholeRow, int reserveType)
    • AbstractCellDataStyleAction

      public AbstractCellDataStyleAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, int reserveType)
  • Method Details

    • getReservedRow

      protected int getReservedRow()
    • getReservedColumn

      protected int getReservedColumn()
    • getReservedLastRow

      protected int getReservedLastRow()
    • getReservedLastColumn

      protected int getReservedLastColumn()
    • getReservedSheet

      protected Sheet getReservedSheet()
    • doAction

      public void doAction()
      Description copied from interface: UndoableAction
      do the action, either first time or redo
    • applyAction

      protected abstract void applyAction()
    • isUndoable

      public boolean isUndoable()
      Description copied from interface: UndoableAction
      Check if still undoable or not
      Returns:
    • isRedoable

      public boolean isRedoable()
      Description copied from interface: UndoableAction
      Check if still redoable or not
      Returns:
    • undoAction

      public void undoAction()
      Description copied from interface: UndoableAction
      Undo the action
    • isSheetProtected

      protected boolean isSheetProtected()
      Description copied from class: AbstractUndoableAction
      Check if sheet is protected
      Overrides:
      isSheetProtected in class AbstractUndoableAction
      Returns: