Class SwitchGridSessionCommand
- java.lang.Object
-
- org.kie.workbench.common.stunner.core.client.session.command.AbstractClientSessionCommand<EditorSession>
-
- org.kie.workbench.common.stunner.core.client.session.command.impl.SwitchGridSessionCommand
-
- All Implemented Interfaces:
org.kie.workbench.common.stunner.core.client.canvas.controls.CanvasControl.SessionAware<EditorSession>,ClientSessionCommand<EditorSession>
@Dependent @Default public class SwitchGridSessionCommand extends AbstractClientSessionCommand<EditorSession>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.workbench.common.stunner.core.client.session.command.ClientSessionCommand
ClientSessionCommand.Callback<V>
-
-
Field Summary
Fields Modifier and Type Field Description static CanvasGrid[]GRIDS
-
Constructor Summary
Constructors Constructor Description SwitchGridSessionCommand()
-
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)-
Methods inherited from class org.kie.workbench.common.stunner.core.client.session.command.AbstractClientSessionCommand
checkEventContext, destroy, enable, execute, fire, getCanvasHandler, getElement, getSession, isEnabled, listen, loadCanvasFactory, newDefaultCallback, setEnabled
-
-
-
-
Field Detail
-
GRIDS
public static final CanvasGrid[] GRIDS
-
-
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>
-
accepts
public boolean accepts(org.kie.workbench.common.stunner.core.client.session.ClientSession session)
- Specified by:
acceptsin classAbstractClientSessionCommand<EditorSession>
-
execute
public <V> void execute(ClientSessionCommand.Callback<V> callback)
-
doDestroy
protected void doDestroy()
- Overrides:
doDestroyin classAbstractClientSessionCommand<EditorSession>
-
-