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, setOrder
public NavigationMenuItem(GraphProvider targetGraphProvider, VertexRef sourceVertex)
public MenuCommand getCommand()
MenuItem
MenuItem
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)
MenuItem
MenuItem
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)
MenuItem
MenuItem
is visible.targets
- The current targets (e.g. the selection)operationContext
- The current OperationContext
.public boolean isEnabled(List<VertexRef> targets, OperationContext operationContext)
MenuItem
MenuItem
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.