Package org.opentrafficsim.editor
Class Navigation
java.lang.Object
org.opentrafficsim.editor.Navigation
Navigation through coupled nodes.
Copyright (c) 2026-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear navigation list.Returns the go-back action.Returns go-to-coupled-item action.voidsetCoupledNode(XsdTreeNode toNode, XsdTreeNode fromNode, String fromAttribute) Sets coupled node from user action, i.e. the node that contains the key value to which a user selected node with keyref refers to.
-
Constructor Details
-
Navigation
Constructor.- Parameters:
editor- editormaxNavigate- maximum number of navigation steps
-
-
Method Details
-
clear
public void clear()Clear navigation list. -
setCoupledNode
Sets coupled node from user action, i.e. the node that contains the key value to which a user selected node with keyref refers to.- Parameters:
toNode- key node that is coupled to from a keyref node, may benull.fromNode- keyref node that is coupled from to a key node, may benull.fromAttribute- attribute in keyref node that refers to coupled node, may benull.
-
getGoBackAction
Returns the go-back action.- Returns:
- go-back action
-
getGotoCoupledNodeAction
Returns go-to-coupled-item action.- Returns:
- go-to-coupled-item action
-