@Dependent public class SaveDiagramSessionCommand extends AbstractClientSessionCommand<EditorSession>
CanvasHandler.getDiagram().
This is responsible to generate the diagram SVG and save it as well.
Does not support undo operation.ClientSessionCommand.Callback<V>| Modifier | Constructor and Description |
|---|---|
protected |
SaveDiagramSessionCommand() |
|
SaveDiagramSessionCommand(ClientDiagramService diagramService,
CanvasFileExport canvasExport) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ClientSession session) |
<V> void |
execute(ClientSessionCommand.Callback<V> callback) |
protected void |
onSaveDiagram(SaveDiagramSessionCommandExecutedEvent event) |
bind, checkEventContext, destroy, doDestroy, enable, execute, fire, getCanvasHandler, getElement, getSession, isEnabled, listen, loadCanvasFactory, newDefaultCallback, setEnabledprotected SaveDiagramSessionCommand()
@Inject public SaveDiagramSessionCommand(ClientDiagramService diagramService, CanvasFileExport canvasExport)
public <V> void execute(ClientSessionCommand.Callback<V> callback)
public boolean accepts(ClientSession session)
accepts in class AbstractClientSessionCommand<EditorSession>protected void onSaveDiagram(@Observes
SaveDiagramSessionCommandExecutedEvent event)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.