Class AbstractToolboxAction
- java.lang.Object
-
- org.kie.workbench.common.stunner.core.client.components.toolbox.actions.AbstractToolboxAction
-
- All Implemented Interfaces:
ToolboxAction<AbstractCanvasHandler>
- Direct Known Subclasses:
CreateConnectorToolboxAction,CreateNodeToolboxAction,MorphNodeToolboxAction
public abstract class AbstractToolboxAction extends Object implements ToolboxAction<AbstractCanvasHandler>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAbstractToolboxAction.ToolboxGlyphConsumer
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractToolboxAction(org.kie.workbench.common.stunner.core.util.DefinitionUtils definitionUtils, ClientTranslationService translationService)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.kie.workbench.common.stunner.core.util.DefinitionUtilsgetDefinitionUtils()org.kie.workbench.common.stunner.core.definition.shape.GlyphgetGlyph(AbstractCanvasHandler canvasHandler, String uuid)The glyph that is being rendered as for the toolbox button's shape/icon.protected abstract StringgetGlyphId(AbstractCanvasHandler canvasHandler, String uuid)StringgetTitle(AbstractCanvasHandler canvasHandler, String uuid)The title to display for the toolbox' button.protected abstract StringgetTitleDefinitionId(AbstractCanvasHandler canvasHandler, String uuid)protected abstract StringgetTitleKey(AbstractCanvasHandler canvasHandler, String uuid)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.workbench.common.stunner.core.client.components.toolbox.actions.ToolboxAction
onMouseClick
-
-
-
-
Constructor Detail
-
AbstractToolboxAction
protected AbstractToolboxAction(org.kie.workbench.common.stunner.core.util.DefinitionUtils definitionUtils, ClientTranslationService translationService)
-
-
Method Detail
-
getTitleKey
protected abstract String getTitleKey(AbstractCanvasHandler canvasHandler, String uuid)
-
getTitleDefinitionId
protected abstract String getTitleDefinitionId(AbstractCanvasHandler canvasHandler, String uuid)
-
getGlyphId
protected abstract String getGlyphId(AbstractCanvasHandler canvasHandler, String uuid)
-
getTitle
public String getTitle(AbstractCanvasHandler canvasHandler, String uuid)
Description copied from interface:ToolboxActionThe title to display for the toolbox' button.- Specified by:
getTitlein interfaceToolboxAction<AbstractCanvasHandler>- Parameters:
canvasHandler- The toolbox' canvas handler instance.uuid- The toolbox' element identifier.- Returns:
- The title to display for the toolbox' button.
-
getDefinitionUtils
protected org.kie.workbench.common.stunner.core.util.DefinitionUtils getDefinitionUtils()
-
getGlyph
public org.kie.workbench.common.stunner.core.definition.shape.Glyph getGlyph(AbstractCanvasHandler canvasHandler, String uuid)
Description copied from interface:ToolboxActionThe glyph that is being rendered as for the toolbox button's shape/icon.- Specified by:
getGlyphin interfaceToolboxAction<AbstractCanvasHandler>- Parameters:
canvasHandler- The toolbox' canvas handler instance.uuid- The toolbox' element identifier.- Returns:
- The glyph definition that will be rendered as for the toolbox button's shape/icon.
-
-