T
- Transition Target typeK
- Transition key typepublic class TransitionNodeMaker<T,K> extends AbstractNodeMaker
Node
corresponding to a transition
Config properties (without navigation.prefix:
Constructor and Description |
---|
TransitionNodeMaker(AppContext conn) |
Modifier and Type | Method and Description |
---|---|
Node |
childNode(java.lang.String name,
T target,
K key,
FilteredProperties props) |
protected TransitionFactory<K,T> |
getTransitionFactory(java.lang.String name,
FilteredProperties props)
get the
TransitionFactory
A sub-class can override this to hardwire a particular provider. |
Node |
makeNode(java.lang.String name,
FilteredProperties props)
Create a
Node for a named menu item. |
protected void |
setChildName(Node n,
T target) |
addChildren, getContext, getLogger
public TransitionNodeMaker(AppContext conn)
conn
- public Node makeNode(java.lang.String name, FilteredProperties props)
NodeMaker
Node
for a named menu item.
This is allowed to return null to indicate that nodes of this type are disabled/empty and should be
suppressed. The NavigationMenuService
can be configured to substitute a different node
in this case (for example to host child nodes added by the configuration).
Automatic child nodes can be added in this method and will appear first. Followed by nodes from the configuration
then nodes from NodeMaker.addChildren(Node, String, FilteredProperties)
name
- name of the nodeprops
- FilteredProperties
containing the navigation menu configurationNode
protected TransitionFactory<K,T> getTransitionFactory(java.lang.String name, FilteredProperties props)
TransitionFactory
A sub-class can override this to hardwire a particular provider.name
- props
- public Node childNode(java.lang.String name, T target, K key, FilteredProperties props)