public class NavigationMenuItem extends AbstractMenuItem
| Constructor and Description |
|---|
NavigationMenuItem(GraphProvider targetGraphProvider,
VertexRef sourceVertex) |
| Modifier and Type | Method and Description |
|---|---|
MenuCommand |
getCommand()
Returns the command to execute if the
MenuItem is selected. |
boolean |
isChecked(List<VertexRef> targets,
OperationContext operationContext)
Defines if the current
MenuItem is checked. |
boolean |
isEnabled(List<VertexRef> targets,
OperationContext operationContext)
Defines if the current
MenuItem is enabled. |
boolean |
isVisible(List<VertexRef> targets,
OperationContext operationContext)
Defines if the current
MenuItem is visible. |
addChildren, getChildren, getLabel, getOrder, isCheckable, setCheckable, setLabel, setOrderpublic NavigationMenuItem(GraphProvider targetGraphProvider, VertexRef sourceVertex)
public MenuCommand getCommand()
MenuItemMenuItem is selected.
Please Note, that it MUST return null if MenuItem.getChildren() is NOT empty.MenuItem is selected, or null if MenuItem.getChildren() is NOT empty.public boolean isChecked(List<VertexRef> targets, OperationContext operationContext)
MenuItemMenuItem is checked.
If MenuItem.isCheckable() returns false, this is never called.targets - The current targets (e.g. the selection)operationContext - The current OperationContext.public boolean isVisible(List<VertexRef> targets, OperationContext operationContext)
MenuItemMenuItem is visible.targets - The current targets (e.g. the selection)operationContext - The current OperationContext.public boolean isEnabled(List<VertexRef> targets, OperationContext operationContext)
MenuItemMenuItem is enabled.
If MenuItem.isVisible(List, OperationContext) returns false, this is never called.targets - The current targets (e.g. the selection)operationContext - The current OperationContext.Copyright © 2021. All rights reserved.