@Dependent public class FlowActionsToolboxControlProvider extends AbstractToolboxControlProvider
It provides buttons for: - Creating a new connection from the source element. It looks for the default connector type and creates a button for it. - Creating new nodes after the source element. As could be many target nodes that can be placed after the source one, as rules are evaluating and passing, to avoid big amount of buttons on the toolbox, it just creates a button for each of the base morph types that match all the given targets.
DEFAULT_ICON_SIZE, DEFAULT_PADDING, toolboxFactory| Modifier | Constructor and Description |
|---|---|
protected |
FlowActionsToolboxControlProvider() |
|
FlowActionsToolboxControlProvider(ToolboxFactory toolboxFactory,
DefinitionUtils definitionUtils,
ToolboxCommandFactory defaultToolboxCommandFactory,
CommonLookups commonLookups) |
| Modifier and Type | Method and Description |
|---|---|
List<ToolboxCommand<AbstractCanvasHandler,?>> |
getCommands(AbstractCanvasHandler context,
Element item) |
ToolboxButtonGrid |
getGrid(AbstractCanvasHandler context,
Element item) |
ToolboxBuilder.Direction |
getOn() |
ToolboxBuilder.Direction |
getTowards() |
boolean |
supports(Object definition) |
protected FlowActionsToolboxControlProvider()
@Inject public FlowActionsToolboxControlProvider(ToolboxFactory toolboxFactory, DefinitionUtils definitionUtils, ToolboxCommandFactory defaultToolboxCommandFactory, CommonLookups commonLookups)
public boolean supports(Object definition)
public ToolboxButtonGrid getGrid(AbstractCanvasHandler context, Element item)
public ToolboxBuilder.Direction getOn()
public ToolboxBuilder.Direction getTowards()
public List<ToolboxCommand<AbstractCanvasHandler,?>> getCommands(AbstractCanvasHandler context, Element item)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.