Class CreateNodeToolboxAction
- java.lang.Object
-
- org.kie.workbench.common.stunner.core.client.components.toolbox.actions.AbstractToolboxAction
-
- org.kie.workbench.common.stunner.core.client.components.toolbox.actions.CreateNodeToolboxAction
-
- All Implemented Interfaces:
IsToolboxActionDraggable<AbstractCanvasHandler>,ToolboxAction<AbstractCanvasHandler>
@Dependent @FlowActionsToolbox @Default public class CreateNodeToolboxAction extends AbstractToolboxAction implements IsToolboxActionDraggable<AbstractCanvasHandler>
A toolbox action/operation for creating a new node, connector and connections from the source toolbox' element.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kie.workbench.common.stunner.core.client.components.toolbox.actions.AbstractToolboxAction
AbstractToolboxAction.ToolboxGlyphConsumer
-
-
Constructor Summary
Constructors Constructor Description CreateNodeToolboxAction(org.jboss.errai.ioc.client.api.ManagedInstance<GeneralCreateNodeAction> createNodeActions, org.kie.workbench.common.stunner.core.util.DefinitionUtils definitionUtils, ClientTranslationService translationService, ClientFactoryManager clientFactoryManager, NodeProxy nodeProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()booleanequals(Object o)protected StringgetGlyphId(AbstractCanvasHandler canvasHandler, String uuid)StringgetNodeId()protected StringgetTitleDefinitionId(AbstractCanvasHandler canvasHandler, String uuid)protected StringgetTitleKey(AbstractCanvasHandler canvasHandler, String uuid)inthashCode()ToolboxAction<AbstractCanvasHandler>onMouseClick(AbstractCanvasHandler canvasHandler, String uuid, org.kie.workbench.common.stunner.core.client.shape.view.event.MouseClickEvent event)The operation to perform once clicking on the toolbox' button.ToolboxAction<AbstractCanvasHandler>onMoveStart(AbstractCanvasHandler canvasHandler, String uuid, org.kie.workbench.common.stunner.core.client.shape.view.event.MouseMoveEvent event)The operation to perform once start "moving" the toolbox' button.CreateNodeToolboxActionsetEdgeId(String edgeId)CreateNodeToolboxActionsetNodeId(String nodeId)-
Methods inherited from class org.kie.workbench.common.stunner.core.client.components.toolbox.actions.AbstractToolboxAction
getDefinitionUtils, getGlyph, getTitle
-
-
-
-
Constructor Detail
-
CreateNodeToolboxAction
@Inject public CreateNodeToolboxAction(@Any org.jboss.errai.ioc.client.api.ManagedInstance<GeneralCreateNodeAction> createNodeActions, org.kie.workbench.common.stunner.core.util.DefinitionUtils definitionUtils, ClientTranslationService translationService, ClientFactoryManager clientFactoryManager, NodeProxy nodeProxy)
-
-
Method Detail
-
getNodeId
public String getNodeId()
-
setNodeId
public CreateNodeToolboxAction setNodeId(String nodeId)
-
setEdgeId
public CreateNodeToolboxAction setEdgeId(String edgeId)
-
getTitleKey
protected String getTitleKey(AbstractCanvasHandler canvasHandler, String uuid)
- Specified by:
getTitleKeyin classAbstractToolboxAction
-
getTitleDefinitionId
protected String getTitleDefinitionId(AbstractCanvasHandler canvasHandler, String uuid)
- Specified by:
getTitleDefinitionIdin classAbstractToolboxAction
-
getGlyphId
protected String getGlyphId(AbstractCanvasHandler canvasHandler, String uuid)
- Specified by:
getGlyphIdin classAbstractToolboxAction
-
onMouseClick
public ToolboxAction<AbstractCanvasHandler> onMouseClick(AbstractCanvasHandler canvasHandler, String uuid, org.kie.workbench.common.stunner.core.client.shape.view.event.MouseClickEvent event)
Description copied from interface:ToolboxActionThe operation to perform once clicking on the toolbox' button.- Specified by:
onMouseClickin interfaceToolboxAction<AbstractCanvasHandler>- Parameters:
canvasHandler- The toolbox' canvas handler instance.uuid- The toolbox' element identifier.- Returns:
- This instance (cascade).
-
onMoveStart
public ToolboxAction<AbstractCanvasHandler> onMoveStart(AbstractCanvasHandler canvasHandler, String uuid, org.kie.workbench.common.stunner.core.client.shape.view.event.MouseMoveEvent event)
Description copied from interface:IsToolboxActionDraggableThe operation to perform once start "moving" the toolbox' button.- Specified by:
onMoveStartin interfaceIsToolboxActionDraggable<AbstractCanvasHandler>- Parameters:
canvasHandler- The toolbox' canvas handler instance.uuid- The toolbox' element identifier.
-
destroy
@PreDestroy public void destroy()
-
-