org.apache.batik.apps.svgbrowser
public class LocalHistory extends Object
Nested Class Summary | |
---|---|
protected class | LocalHistory.RadioListener
To listen to the radio buttons. |
Field Summary | |
---|---|
protected ActionListener | actionListener
The action listener. |
protected static int | BACK_PENDING_STATE |
protected int | currentURI
The index of the current URI. |
protected static int | FORWARD_PENDING_STATE |
protected ButtonGroup | group
The button group for the menu items. |
protected int | index
The index of the first history item in this menu. |
protected JMenu | menu
The menu which contains the history. |
protected static int | RELOAD_PENDING_STATE |
protected int | state
The current state. |
protected JSVGViewerFrame | svgFrame
The frame to manage. |
protected static int | STABLE_STATE |
protected List | visitedURIs
The visited URIs. |
Constructor Summary | |
---|---|
LocalHistory(JMenuBar mb, JSVGViewerFrame svgFrame)
Creates a new local history. |
Method Summary | |
---|---|
void | back()
Goes back of one position in the history.
|
boolean | canGoBack()
Whether it is possible to go back. |
boolean | canGoForward()
Whether it is possible to go forward. |
void | forward()
Goes forward of one position in the history.
|
void | reload()
Reloads the current document. |
void | update(String uri)
Updates the history. |
protected void | update()
Updates the state of this history. |
Parameters: mb The menubar used to display the history. It must contain one '@@@' item used as marker to place the history items. svgFrame The frame to manage.
Parameters: uri The URI of the document just loaded.