Class CutSelectionSessionCommand
- java.lang.Object
-
- org.kie.workbench.common.stunner.core.client.session.command.AbstractClientSessionCommand<S>
-
- org.kie.workbench.common.stunner.core.client.session.command.impl.AbstractSelectionAwareSessionCommand<EditorSession>
-
- org.kie.workbench.common.stunner.core.client.session.command.impl.CutSelectionSessionCommand
-
- All Implemented Interfaces:
org.kie.workbench.common.stunner.core.client.canvas.controls.CanvasControl.SessionAware<EditorSession>,ClientSessionCommand<EditorSession>
@Dependent @Default public class CutSelectionSessionCommand extends AbstractSelectionAwareSessionCommand<EditorSession>
This session command copy to the clipboard usingCopySelectionSessionCommandselected elements and delete them using theDeleteSelectionSessionCommand. *
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.workbench.common.stunner.core.client.session.command.ClientSessionCommand
ClientSessionCommand.Callback<V>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCutSelectionSessionCommand()CutSelectionSessionCommand(javax.enterprise.event.Event<CutSelectionSessionCommandExecutedEvent> commandExecutedEvent, org.kie.workbench.common.stunner.core.client.api.SessionManager sessionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(org.kie.workbench.common.stunner.core.client.session.ClientSession session)voidbind(EditorSession session)protected voiddoDestroy()<V> voidexecute(ClientSessionCommand.Callback<V> callback)protected voidhandleCanvasClearSelectionEvent(org.kie.workbench.common.stunner.core.client.canvas.event.selection.CanvasClearSelectionEvent event)protected voidhandleCanvasElementsClearEvent(org.kie.workbench.common.stunner.core.client.canvas.event.registration.CanvasElementsClearEvent event)protected voidhandleCanvasSelectionEvent(org.kie.workbench.common.stunner.core.client.canvas.event.selection.CanvasSelectionEvent event)protected voidonKeyDownEvent(org.kie.workbench.common.stunner.core.client.event.keyboard.KeyboardEvent.Key... keys)voidsetCopySelectionSessionCommand(CopySelectionSessionCommand copySelectionSessionCommand)-
Methods inherited from class org.kie.workbench.common.stunner.core.client.session.command.impl.AbstractSelectionAwareSessionCommand
enable, onCanvasClearSelectionEvent, onCanvasElementsClearEvent, onCanvasSelectionEvent, onlyCanvasRootSelected
-
Methods inherited from class org.kie.workbench.common.stunner.core.client.session.command.AbstractClientSessionCommand
checkEventContext, destroy, execute, fire, getCanvasHandler, getElement, getSession, isEnabled, listen, loadCanvasFactory, newDefaultCallback, setEnabled
-
-
-
-
Constructor Detail
-
CutSelectionSessionCommand
protected CutSelectionSessionCommand()
-
CutSelectionSessionCommand
@Inject public CutSelectionSessionCommand(javax.enterprise.event.Event<CutSelectionSessionCommandExecutedEvent> commandExecutedEvent, org.kie.workbench.common.stunner.core.client.api.SessionManager sessionManager)
-
-
Method Detail
-
bind
public void bind(EditorSession session)
- Specified by:
bindin interfaceorg.kie.workbench.common.stunner.core.client.canvas.controls.CanvasControl.SessionAware<EditorSession>- Overrides:
bindin classAbstractClientSessionCommand<EditorSession>
-
setCopySelectionSessionCommand
public void setCopySelectionSessionCommand(CopySelectionSessionCommand copySelectionSessionCommand)
-
accepts
public boolean accepts(org.kie.workbench.common.stunner.core.client.session.ClientSession session)
- Specified by:
acceptsin classAbstractClientSessionCommand<EditorSession>
-
onKeyDownEvent
protected void onKeyDownEvent(org.kie.workbench.common.stunner.core.client.event.keyboard.KeyboardEvent.Key... keys)
-
execute
public <V> void execute(ClientSessionCommand.Callback<V> callback)
-
doDestroy
protected void doDestroy()
- Overrides:
doDestroyin classAbstractClientSessionCommand<EditorSession>
-
handleCanvasSelectionEvent
protected void handleCanvasSelectionEvent(org.kie.workbench.common.stunner.core.client.canvas.event.selection.CanvasSelectionEvent event)
- Specified by:
handleCanvasSelectionEventin classAbstractSelectionAwareSessionCommand<EditorSession>
-
handleCanvasClearSelectionEvent
protected void handleCanvasClearSelectionEvent(org.kie.workbench.common.stunner.core.client.canvas.event.selection.CanvasClearSelectionEvent event)
- Specified by:
handleCanvasClearSelectionEventin classAbstractSelectionAwareSessionCommand<EditorSession>
-
handleCanvasElementsClearEvent
protected void handleCanvasElementsClearEvent(org.kie.workbench.common.stunner.core.client.canvas.event.registration.CanvasElementsClearEvent event)
- Specified by:
handleCanvasElementsClearEventin classAbstractSelectionAwareSessionCommand<EditorSession>
-
-