Package io.keikai.ui.impl.undo
Class ResizeHeaderAction
- java.lang.Object
-
- io.keikai.ui.impl.undo.AbstractUndoableAction
-
- io.keikai.ui.impl.undo.ResizeHeaderAction
-
- All Implemented Interfaces:
UndoableAction
,Serializable
public class ResizeHeaderAction extends AbstractUndoableAction
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResizeHeaderAction.Type
-
Field Summary
-
Fields inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
_column, _label, _lastColumn, _lastRow, _row, _sheet, _wholeColumn, _wholeRow
-
-
Constructor Summary
Constructors Constructor Description ResizeHeaderAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, ResizeHeaderAction.Type type, int size, boolean isCustom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAction()
do the action, either first time or redoboolean
isRedoable()
Check if still redoable or notprotected boolean
isSheetProtected()
Check if sheet is protectedboolean
isUndoable()
Check if still undoable or notvoid
undoAction()
Undo the action-
Methods inherited from class io.keikai.ui.impl.undo.AbstractUndoableAction
getLabel, getRedoSelection, getRedoSheet, getUndoSelection, getUndoSheet, isAnyCellProtected, isSheetAvailable, toString
-
-
-
-
Constructor Detail
-
ResizeHeaderAction
public ResizeHeaderAction(String label, Sheet sheet, int row, int column, int lastRow, int lastColumn, ResizeHeaderAction.Type type, int size, boolean isCustom)
-
-
Method Detail
-
doAction
public void doAction()
Description copied from interface:UndoableAction
do the action, either first time or redo
-
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 classAbstractUndoableAction
- Returns:
-
-