Package org.openstreetmap.josm.gui.help
Class HelpBrowserHistory
- java.lang.Object
-
- org.openstreetmap.josm.gui.util.ChangeNotifier
-
- org.openstreetmap.josm.gui.help.HelpBrowserHistory
-
public class HelpBrowserHistory extends ChangeNotifier
Help browser history.- Since:
- 2274
-
-
Field Summary
Fields Modifier and Type Field Description private IHelpBrowserbrowserprivate java.util.List<java.lang.String>historyprivate inthistoryPos
-
Constructor Summary
Constructors Constructor Description HelpBrowserHistory(IHelpBrowser browser)Constructs a newHelpBrowserHistory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidback()Go back.booleancanGoBack()Determines if the help browser can go back.booleancanGoForward()Determines if the help browser can go forward.voidclear()Clears the history.voidforward()Go forward.voidsetCurrentUrl(java.lang.String url)Remembers the new current URL.-
Methods inherited from class org.openstreetmap.josm.gui.util.ChangeNotifier
addChangeListener, fireStateChanged, removeChangeListener
-
-
-
-
Field Detail
-
browser
private final IHelpBrowser browser
-
history
private java.util.List<java.lang.String> history
-
historyPos
private int historyPos
-
-
Constructor Detail
-
HelpBrowserHistory
public HelpBrowserHistory(IHelpBrowser browser)
Constructs a newHelpBrowserHistory.- Parameters:
browser- help browser
-
-
Method Detail
-
clear
public void clear()
Clears the history.
-
canGoBack
public boolean canGoBack()
Determines if the help browser can go back.- Returns:
trueif a previous history position exists
-
canGoForward
public boolean canGoForward()
Determines if the help browser can go forward.- Returns:
trueif a following history position exists
-
back
public void back()
Go back.
-
forward
public void forward()
Go forward.
-
setCurrentUrl
public void setCurrentUrl(java.lang.String url)
Remembers the new current URL.- Parameters:
url- the new current URL
-
-