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
-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NotifyingOperation
(String label, SheetAccessor sheet) Constructs a new instance.protected
NotifyingOperation
(String label, SheetAccessor sheet, boolean readOnly, boolean nested) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Checks if the operation is read-only.final void
The method invoked outside the transaction after the 'execute' method.final void
onRedo()
The method invoked after the task is redone.final void
onUndo()
The method invoked after the task is undone.protected void
Subclasses override this method to provide post-execute logic.protected void
postRedo()
Subclasses override this method to provide post-redo logic.protected void
postUndo()
Subclasses override this method to provide post-undo logic.Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
Constructor Details
-
NotifyingOperation
Constructs a new instance.- Parameters:
label
- The operation label. May not benull
.sheet
- The spreadsheet accessor. May not benull
.
-
NotifyingOperation
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 Details
-
onUndo
public final void onUndo()Description copied from interface:IBmPostUndoRedoHandler
The method invoked after the task is undone. -
onRedo
public final void onRedo()Description copied from interface:IBmPostUndoRedoHandler
The method invoked after the task is redone. -
onExecute
public final void onExecute()Description copied from class:BaseOperation
The method invoked outside the transaction after the 'execute' method.- Specified by:
onExecute
in classBaseOperation
-
isReadOnly
public final boolean isReadOnly()Description copied from class:BaseOperation
Checks if the operation is read-only.- Specified by:
isReadOnly
in classBaseOperation
- Returns:
true
if the operation is read-only,false
otherwise.
-
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.
-