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 protected
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadOnly()
Checks if the operation is read-only.void
onExecute()
The method invoked outside the transaction after the 'execute' method.void
onRedo()
The method invoked after the task is redone.void
onUndo()
The method invoked after the task is undone.protected void
postExecute()
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 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: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.
-
-