@Dependent @Default public class DeleteNodeToolboxAction extends Object implements ToolboxAction<AbstractCanvasHandler>
| Constructor and Description |
|---|
DeleteNodeToolboxAction(ClientTranslationService translationService,
SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
org.jboss.errai.ioc.client.api.ManagedInstance<DefaultCanvasCommandFactory> commandFactories,
DefinitionUtils definitionUtils,
javax.enterprise.event.Event<CanvasClearSelectionEvent> clearSelectionEvent) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Glyph |
getGlyph(AbstractCanvasHandler canvasHandler,
String uuid)
The glyph that is being rendered as for the toolbox button's shape/icon.
|
String |
getTitle(AbstractCanvasHandler canvasHandler,
String uuid)
The title to display for the toolbox' button.
|
ToolboxAction<AbstractCanvasHandler> |
onMouseClick(AbstractCanvasHandler canvasHandler,
String uuid,
MouseClickEvent event)
The operation to perform once clicking on the toolbox' button.
|
@Inject public DeleteNodeToolboxAction(ClientTranslationService translationService, SessionCommandManager<AbstractCanvasHandler> sessionCommandManager, @Any org.jboss.errai.ioc.client.api.ManagedInstance<DefaultCanvasCommandFactory> commandFactories, DefinitionUtils definitionUtils, javax.enterprise.event.Event<CanvasClearSelectionEvent> clearSelectionEvent)
public Glyph getGlyph(AbstractCanvasHandler canvasHandler, String uuid)
ToolboxActiongetGlyph in interface ToolboxAction<AbstractCanvasHandler>canvasHandler - The toolbox' canvas handler instance.uuid - The toolbox' element identifier.public String getTitle(AbstractCanvasHandler canvasHandler, String uuid)
ToolboxActiongetTitle in interface ToolboxAction<AbstractCanvasHandler>canvasHandler - The toolbox' canvas handler instance.uuid - The toolbox' element identifier.public ToolboxAction<AbstractCanvasHandler> onMouseClick(AbstractCanvasHandler canvasHandler, String uuid, MouseClickEvent event)
ToolboxActiononMouseClick in interface ToolboxAction<AbstractCanvasHandler>canvasHandler - The toolbox' canvas handler instance.uuid - The toolbox' element identifier.@PreDestroy public void destroy()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.