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 IHelpBrowser
browser
private java.util.List<java.lang.String>
history
private int
historyPos
-
Constructor Summary
Constructors Constructor Description HelpBrowserHistory(IHelpBrowser browser)
Constructs a newHelpBrowserHistory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
back()
Go back.boolean
canGoBack()
Determines if the help browser can go back.boolean
canGoForward()
Determines if the help browser can go forward.void
clear()
Clears the history.void
forward()
Go forward.void
setCurrentUrl(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:
true
if a previous history position exists
-
canGoForward
public boolean canGoForward()
Determines if the help browser can go forward.- Returns:
true
if 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
-
-