Class Abstract2DCellDataStyleAction

java.lang.Object
io.keikai.ui.impl.undo.AbstractUndoableAction
io.keikai.ui.impl.undo.Abstract2DCellDataStyleAction
All Implemented Interfaces:
UndoableAction, Serializable
Direct Known Subclasses:
AutoFillCellAction, CutCellAction, ShiftCellAction

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

    • RESERVE_CONTENT

      public static final int RESERVE_CONTENT
      See Also:
    • RESERVE_STYLE

      public static final int RESERVE_STYLE
      See Also:
    • RESERVE_MERGE

      public static final int RESERVE_MERGE
      See Also:
    • RESERVE_ALL

      public static final int RESERVE_ALL
      See Also:
    • _destSheet

      protected final Sheet _destSheet
    • _destRow

      protected final int _destRow
    • _destColumn

      protected final int _destColumn
    • _destLastRow

      protected final int _destLastRow
    • _destLastColumn

      protected final int _destLastColumn
    • _destWholeColumn

      protected final boolean _destWholeColumn
    • _destWholeRow

      protected final boolean _destWholeRow
  • Constructor Details

    • Abstract2DCellDataStyleAction

      public Abstract2DCellDataStyleAction(String label, Sheet sheet, int srcRow, int srcColumn, int srcLastRow, int srcLastColumn, boolean srcWholeColumn, boolean srcWholeRow, Sheet destSheet, int destRow, int destColumn, int destLastRow, int destLastColumn, boolean destWholeColumn, boolean destWholeRow, int reserveType)
    • Abstract2DCellDataStyleAction

      public Abstract2DCellDataStyleAction(String label, Sheet sheet, int srcRow, int srcColumn, int srcLastRow, int srcLastColumn, Sheet destSheet, int destRow, int destColumn, int destLastRow, int destLastColumn, int reserveType)
  • Method Details

    • isSheetProtected

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

      protected boolean isSrcSheetProtected()
    • isDstSheetProtected

      protected boolean isDstSheetProtected()
    • getUndoSheet

      public Sheet getUndoSheet()
      Specified by:
      getUndoSheet in interface UndoableAction
      Overrides:
      getUndoSheet in class AbstractUndoableAction
      Returns:
      target sheet of undo action, null if doesn't provided
    • getRedoSheet

      public Sheet getRedoSheet()
      Specified by:
      getRedoSheet in interface UndoableAction
      Overrides:
      getRedoSheet in class AbstractUndoableAction
      Returns:
      target sheet of redo action, null if doesn't provided
    • getReservedSrcRow

      protected int getReservedSrcRow()
    • getReservedSrcColumn

      protected int getReservedSrcColumn()
    • getReservedSrcLastRow

      protected int getReservedSrcLastRow()
    • getReservedSrcLastColumn

      protected int getReservedSrcLastColumn()
    • getReservedSrcSheet

      protected Sheet getReservedSrcSheet()
    • getReservedDestRow

      protected int getReservedDestRow()
    • getReservedDestColumn

      protected int getReservedDestColumn()
    • getReservedDestLastRow

      protected int getReservedDestLastRow()
    • getReservedDestLastColumn

      protected int getReservedDestLastColumn()
    • getReservedDestSheet

      protected Sheet getReservedDestSheet()
    • doAction

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

      protected 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
    • getRedoSelection

      public AreaRef getRedoSelection()
      Specified by:
      getRedoSelection in interface UndoableAction
      Overrides:
      getRedoSelection in class AbstractUndoableAction
      Returns:
      Selection after redo of this action, null if doesn't provided;