jimm.datavision.gui
Class HelpURLStack

java.lang.Object
  extended by jimm.datavision.gui.HelpURLStack

 class HelpURLStack
extends java.lang.Object

A URL stack manages the browser-like behaviour of having a current URL and a list of previous and next URLs. It also updates a URL text field and gives URLs to the JEditorPane that displays them.

We define the home page to be the first page loaded.


Field Summary
protected  java.util.Stack back
           
protected  javax.swing.JEditorPane contentField
           
protected  java.net.URL current
           
protected  java.util.Stack forward
           
protected  java.net.URL home
           
protected  javax.swing.JTextField urlField
           
 
Constructor Summary
HelpURLStack(javax.swing.JEditorPane htmlField, javax.swing.JTextField textField)
           
 
Method Summary
(package private)  void goTo(java.lang.String urlString)
           
(package private)  void goTo(java.net.URL url)
           
(package private)  void goToHomePage()
          The home page is the same as the first page we loaded.
(package private)  void goToNextPage()
           
(package private)  void goToPreviousPage()
           
(package private)  boolean hasNext()
           
(package private)  boolean hasPrevious()
           
protected  void updateGUI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

back

protected java.util.Stack back

home

protected java.net.URL home

current

protected java.net.URL current

forward

protected java.util.Stack forward

contentField

protected javax.swing.JEditorPane contentField

urlField

protected javax.swing.JTextField urlField
Constructor Detail

HelpURLStack

HelpURLStack(javax.swing.JEditorPane htmlField,
             javax.swing.JTextField textField)
Method Detail

hasPrevious

boolean hasPrevious()

hasNext

boolean hasNext()

goTo

void goTo(java.lang.String urlString)

goTo

void goTo(java.net.URL url)

goToHomePage

void goToHomePage()
The home page is the same as the first page we loaded.


goToPreviousPage

void goToPreviousPage()

goToNextPage

void goToNextPage()

updateGUI

protected void updateGUI()