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
ConstructorsModifierConstructorDescriptionprotectedNotifyingOperation(String label, SheetAccessor sheet) Constructs a new instance.protectedNotifyingOperation(String label, SheetAccessor sheet, boolean readOnly, boolean nested) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanChecks if the operation is read-only.final voidThe method invoked outside the transaction after the 'execute' method.final voidonRedo()The method invoked after the task is redone.final voidonUndo()The method invoked after the task is undone.protected voidSubclasses 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 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: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.
-