Class NotifyingOperation
- java.lang.Object
-
- com._1c.g5.v8.bm.integration.AbstractBmTask<Void>
-
- com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.NotifyingOperation
-
- All Implemented Interfaces:
IBmPostUndoRedoHandler,IBmTask<Void>
- Direct Known Subclasses:
AddRemoveDrawingOperation,AddRemoveGroupOperation,ChangeCellsOperation,ChangeDrawingOperation,ChangeDrawingPositionOperation,ChangeDrawingZOrder,ChangeGroupOperation,ChangeGroupParametersOperation,ChangeHeaderFooterOperation,ChangeParagraphPropertyOperation,ChangeRowsColumnsOperation,ChangeSpreadsheetOperation,CollapseToLevelOperation,CopyCellsOperation,CopyDrawingsOperation,CutDrawingsOperation,DeleteInsertCellsOperation,ExpandCollapseAllOperation,ExpandCollapseOperation,GroupDrawngsOperation,MergeAndUnmergeOperation,RemoveRowColumnsOperation,RenameAreaOperation,SetAutoWidthCalculationOperation,SetColumnWidthOperation,SetDefaultWidthWeightFactorOperation,SetRemovePrintAreaOperation,SetRemoveRepeatedColumnsOperation,SetRemoveRepeatedRowsOperation,SetRowHeightOperation,SetSheetDefaultHeightOperation,SetSheetDefaultWidthOperation,SetWidthWeightFactorOperation,ShowHideOperation,UngroupDrawingsOperation
public abstract class NotifyingOperation extends BaseOperation
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNotifyingOperation(String label, SheetAccessor sheet)Constructs a new instance.protectedNotifyingOperation(String label, SheetAccessor sheet, boolean readOnly, boolean nested)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadOnly()Checks if the operation is read-only.voidonExecute()The method invoked outside the transaction after the 'execute' method.voidonRedo()The method invoked after the task is redone.voidonUndo()The method invoked after the task is undone.protected voidpostExecute()Subclasses override this method to provide post-execute logic.protected voidpostRedo()Subclasses override this method to provide post-redo logic.protected voidpostUndo()Subclasses override this method to provide post-undo logic.-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Constructor Detail
-
NotifyingOperation
protected NotifyingOperation(String label, SheetAccessor sheet)
Constructs a new instance.- Parameters:
label- The operation label. May not benull.sheet- The spreadsheet accessor. May not benull.
-
NotifyingOperation
protected NotifyingOperation(String label, SheetAccessor sheet, boolean readOnly, boolean nested)
Constructs a new instance.- Parameters:
label- The operation label. May not benull.sheet- The spreadsheet accessor. May not benull.readOnly- The flag indicating whether the operation is read-only.nested- The flag indicating whether the operation is nested.
-
-
Method Detail
-
onUndo
public final void onUndo()
Description copied from interface:IBmPostUndoRedoHandlerThe method invoked after the task is undone.
-
onRedo
public final void onRedo()
Description copied from interface:IBmPostUndoRedoHandlerThe method invoked after the task is redone.
-
onExecute
public final void onExecute()
Description copied from class:BaseOperationThe method invoked outside the transaction after the 'execute' method.- Specified by:
onExecutein classBaseOperation
-
isReadOnly
public final boolean isReadOnly()
Description copied from class:BaseOperationChecks if the operation is read-only.- Specified by:
isReadOnlyin classBaseOperation- Returns:
trueif the operation is read-only,falseotherwise.
-
postUndo
protected void postUndo()
Subclasses override this method to provide post-undo logic.
-
postRedo
protected void postRedo()
Subclasses override this method to provide post-redo logic.
-
postExecute
protected void postExecute()
Subclasses override this method to provide post-execute logic.
-
-