Class PasteCellsOperation
- 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
-
- com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.PasteCellsOperation
-
- All Implemented Interfaces:
IBmPostUndoRedoHandler
,IBmTask<Void>
public class PasteCellsOperation extends ChangeCellsOperation
Operation of pasting spreadsheet from clipboard
-
-
Field Summary
Fields Modifier and Type Field Description static int
STR_PROPERTIES_SHIFT
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
positionHolder, selection
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
-
Constructor Summary
Constructors Constructor Description PasteCellsOperation(String label, SheetAccessor sheet, Selection selection, boolean changeContentOrFormat, SpreadsheetDocument document, MoxelDescriptor descriptor, PositionHolder positionHolder, IConfigurationProvider configurationProvider, boolean nested)
Creates new instance ofPasteCellsOperation
PasteCellsOperation(String label, SheetAccessor sheet, Selection selection, SpreadsheetDocument document, MoxelDescriptor descriptor, PositionHolder positionHolder, IConfigurationProvider configurationProvider, PasteSpecialOptions pasteOptions, boolean nested)
Creates new instance ofPasteCellsOperation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onRedoInternal()
Subclasses override this method to provide post-redo logic.protected void
onUndoInternal()
Subclasses override this method to provide post-undo logic.void
performAction()
Выполнить действие.-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
execute, postExecute, postRedo, postUndo
-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.NotifyingOperation
isReadOnly, onExecute, onRedo, onUndo
-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Field Detail
-
STR_PROPERTIES_SHIFT
public static final int STR_PROPERTIES_SHIFT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PasteCellsOperation
public PasteCellsOperation(String label, SheetAccessor sheet, Selection selection, boolean changeContentOrFormat, SpreadsheetDocument document, MoxelDescriptor descriptor, PositionHolder positionHolder, IConfigurationProvider configurationProvider, boolean nested)
Creates new instance ofPasteCellsOperation
- Parameters:
label
- operation labelundoContext
-IUndoContext
sheet
-SheetAccessor
selection
-Selection
changeContentOrFormat
- need change content or formatdocument
-SpreadsheetDocument
to ba pasteddescriptor
-MoxelDescriptor
positionHolder
-PositionHolder
configurationProvider
- the configuration provider, cannot benull
-
PasteCellsOperation
public PasteCellsOperation(String label, SheetAccessor sheet, Selection selection, SpreadsheetDocument document, MoxelDescriptor descriptor, PositionHolder positionHolder, IConfigurationProvider configurationProvider, PasteSpecialOptions pasteOptions, boolean nested)
Creates new instance ofPasteCellsOperation
- Parameters:
label
- operation labelundoContext
-IUndoContext
sheet
-SheetAccessor
selection
-Selection
changeContentOrFormat
- need change content or formatdocument
-SpreadsheetDocument
to ba pasteddescriptor
-MoxelDescriptor
positionHolder
-PositionHolder
configurationProvider
- the configuration provider, cannot benull
pasteOptions
-PasteSpecialOptions
, must not benull
-
-
Method Detail
-
performAction
public void performAction()
Description copied from class:ChangeCellsOperation
Выполнить действие.- Specified by:
performAction
in classChangeCellsOperation
-
onUndoInternal
protected void onUndoInternal()
Description copied from class:ChangeCellsOperation
Subclasses override this method to provide post-undo logic.- Overrides:
onUndoInternal
in classChangeCellsOperation
-
onRedoInternal
protected void onRedoInternal()
Description copied from class:ChangeCellsOperation
Subclasses override this method to provide post-redo logic.- Overrides:
onRedoInternal
in classChangeCellsOperation
-
-