public abstract class AbstractToolboxAction extends Object implements ToolboxAction<AbstractCanvasHandler>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractToolboxAction.ToolboxGlyphConsumer |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractToolboxAction(DefinitionUtils definitionUtils,
ClientTranslationService translationService) |
| Modifier and Type | Method and Description |
|---|---|
protected DefinitionUtils |
getDefinitionUtils() |
Glyph |
getGlyph(AbstractCanvasHandler canvasHandler,
String uuid)
The glyph that is being rendered as for the toolbox button's shape/icon.
|
protected abstract String |
getGlyphId(AbstractCanvasHandler canvasHandler,
String uuid) |
String |
getTitle(AbstractCanvasHandler canvasHandler,
String uuid)
The title to display for the toolbox' button.
|
protected abstract String |
getTitleDefinitionId(AbstractCanvasHandler canvasHandler,
String uuid) |
protected abstract String |
getTitleKey(AbstractCanvasHandler canvasHandler,
String uuid) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonMouseClickprotected AbstractToolboxAction(DefinitionUtils definitionUtils, ClientTranslationService translationService)
protected abstract String getTitleKey(AbstractCanvasHandler canvasHandler, String uuid)
protected abstract String getTitleDefinitionId(AbstractCanvasHandler canvasHandler, String uuid)
protected abstract String getGlyphId(AbstractCanvasHandler canvasHandler, String uuid)
public String getTitle(AbstractCanvasHandler canvasHandler, String uuid)
ToolboxActiongetTitle in interface ToolboxAction<AbstractCanvasHandler>canvasHandler - The toolbox' canvas handler instance.uuid - The toolbox' element identifier.protected DefinitionUtils getDefinitionUtils()
public Glyph getGlyph(AbstractCanvasHandler canvasHandler, String uuid)
ToolboxActiongetGlyph in interface ToolboxAction<AbstractCanvasHandler>canvasHandler - The toolbox' canvas handler instance.uuid - The toolbox' element identifier.Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.