Package org.openl.rules.table.actions
Class AUndoableCellAction
- java.lang.Object
-
- org.openl.rules.table.actions.AUndoableCellAction
-
- All Implemented Interfaces:
IUndoableAction,IUndoableGridTableAction
- Direct Known Subclasses:
SetAlignmentAction,SetBoldAction,SetBorderStyleAction,SetColorAction,SetFillColorAction,SetIndentAction,SetItalicAction,SetUnderlineAction,UndoableClearAction,UndoableCopyValueAction,UndoableSetValueAction,UndoableShiftValueAction
public abstract class AUndoableCellAction extends Object implements IUndoableGridTableAction
- Author:
- snshor
-
-
Field Summary
Fields Modifier and Type Field Description protected MetaInfoWritermetaInfoWriter
-
Constructor Summary
Constructors Constructor Description AUndoableCellAction(int col, int row, MetaInfoWriter metaInfoWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCol()StringgetPrevComment()StringgetPrevCommentAuthor()StringgetPrevFormula()CellMetaInfogetPrevMetaInfo()ICellStylegetPrevStyle()ObjectgetPrevValue()intgetRow()protected voidrestorePrevCell(IWritableGrid grid)protected voidsavePrevCell(IWritableGrid grid)voidsetCol(int col)voidsetPrevComment(String prevComment)voidsetPrevCommentAuthor(String prevCommentAuthor)voidsetPrevFormula(String prevFormula)voidsetPrevMetaInfo(CellMetaInfo prevMetaInfo)voidsetPrevStyle(ICellStyle prevStyle)voidsetPrevValue(Object prevValue)voidsetRow(int row)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openl.rules.table.actions.IUndoableGridTableAction
doAction, undoAction
-
-
-
-
Field Detail
-
metaInfoWriter
protected final MetaInfoWriter metaInfoWriter
-
-
Constructor Detail
-
AUndoableCellAction
public AUndoableCellAction(int col, int row, MetaInfoWriter metaInfoWriter)
-
-
Method Detail
-
savePrevCell
protected void savePrevCell(IWritableGrid grid)
-
restorePrevCell
protected void restorePrevCell(IWritableGrid grid)
-
getCol
public int getCol()
-
setCol
public void setCol(int col)
-
getRow
public int getRow()
-
setRow
public void setRow(int row)
-
getPrevValue
public Object getPrevValue()
-
setPrevValue
public void setPrevValue(Object prevValue)
-
getPrevFormula
public String getPrevFormula()
-
setPrevFormula
public void setPrevFormula(String prevFormula)
-
getPrevStyle
public ICellStyle getPrevStyle()
-
setPrevStyle
public void setPrevStyle(ICellStyle prevStyle)
-
getPrevComment
public String getPrevComment()
-
setPrevComment
public void setPrevComment(String prevComment)
-
getPrevCommentAuthor
public String getPrevCommentAuthor()
-
setPrevCommentAuthor
public void setPrevCommentAuthor(String prevCommentAuthor)
-
getPrevMetaInfo
public CellMetaInfo getPrevMetaInfo()
-
setPrevMetaInfo
public void setPrevMetaInfo(CellMetaInfo prevMetaInfo)
-
-