V - The actions toolbox' view type.public class ActionsToolbox<V extends ActionsToolboxView<?>> extends Object implements Toolbox<ActionsToolbox>, Iterable<ToolboxAction>
Several ToolboxAction instances can be added in this
toolbox, depending on the current context. On the other hand,
this toolbox uses a concrete inmutable view, given at instance
construction time, which finally displays the toolbox' actions
as toolbox' button in the canvas.
| Constructor and Description |
|---|
ActionsToolbox(Supplier<AbstractCanvasHandler> canvasHandlerSupplier,
Element<?> element,
V view) |
| Modifier and Type | Method and Description |
|---|---|
ActionsToolbox |
add(ToolboxAction<AbstractCanvasHandler> action) |
void |
destroy() |
AbstractCanvas |
getCanvas() |
String |
getElementUUID() |
Shape<?> |
getShape() |
V |
getView() |
ActionsToolbox |
hide() |
void |
hideAndDestroy() |
ActionsToolbox<V> |
init() |
Iterator<ToolboxAction> |
iterator() |
ActionsToolbox |
show() |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ActionsToolbox(Supplier<AbstractCanvasHandler> canvasHandlerSupplier, Element<?> element, V view)
public ActionsToolbox<V> init()
public ActionsToolbox add(ToolboxAction<AbstractCanvasHandler> action)
public Iterator<ToolboxAction> iterator()
iterator in interface Iterable<ToolboxAction>public int size()
public String getElementUUID()
public AbstractCanvas getCanvas()
public Shape<?> getShape()
public ActionsToolbox show()
show in interface Toolbox<ActionsToolbox>public ActionsToolbox hide()
hide in interface Toolbox<ActionsToolbox>public void destroy()
destroy in interface Toolbox<ActionsToolbox>public void hideAndDestroy()
hideAndDestroy in interface Toolbox<ActionsToolbox>public V getView()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.