NavigationSvc Class
- public class NavigationSvc
extends Object
This service allows for forward and backward navigation between points as set. The behavior is
similar to forward/back navigation in a web browser: navigation back and forth does not alter the
stack; adding a new item clears the forward stack.
NavigationSvc has a very simple interface: consumers simply push INavigationPoints, which contain
code to return the user to the position in question. INavigationPoints should be dropped on any
navigable action. Good examples of places where they should be dropped are on switching to a new
document, jumping to a line using find, etc. Actions which should not drop navigation points
include cursor movements and typing.
Once an INavigationPoint is pushed into the stack no further action is required. They will be
navigated to or deleted automatically as navigation (forward/back) actions are performed.
-
Hierarchy
-
Object
NavigationSvc
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
protected static NavigationSvc.I
instance
- Static instance of the service interface.
NavigationSvc
public NavigationSvc()
get() Method
public static NavigationSvc.I
get()
Obtain the service interface. Value is cached in the instance variable after the first use.