gui.browser
Class BrowserLogic

java.lang.Object
  extended by gui.browser.BrowserLogic

public class BrowserLogic
extends java.lang.Object


Constructor Summary
BrowserLogic(Main _b)
           
 
Method Summary
 void backward()
          When user click on "Backward", the Backward method is invoked and it then calls the LinkQueue class.
 void forward()
          When user click on "Forward", the forward method is invoked and it then calls the LinkQueue class.
 java.io.File getInputFile(java.lang.String title)
           
 void hyperlinkPage(javax.swing.JEditorPane jep, javax.swing.event.HyperlinkEvent e, javax.swing.JTextField tf)
          hyperlinkPage method get invoked from BrowserListener to update the URL textField, to add the new url to the LinkQueue and to start an external thread that gui.run jep.setPage(url),
 void openHtmlFile()
          When user click on "File:open", the openHtmlFile is invoked to open the selected gui.html file.
 void processTextField(java.lang.String s)
           
 void setUrl(java.net.URL u)
          setUrl method is invoked to start an external thread that gui.run jep.setPage(url), update the URL textField and add the new url to the LinkQueue and
 void setUrlNoException(java.net.URL u)
           
 void updateTextField(java.lang.String urlS)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserLogic

public BrowserLogic(Main _b)
Method Detail

openHtmlFile

public void openHtmlFile()
When user click on "File:open", the openHtmlFile is invoked to open the selected gui.html file.


forward

public void forward()
When user click on "Forward", the forward method is invoked and it then calls the LinkQueue class.


backward

public void backward()
When user click on "Backward", the Backward method is invoked and it then calls the LinkQueue class.


getInputFile

public java.io.File getInputFile(java.lang.String title)

setUrlNoException

public void setUrlNoException(java.net.URL u)

updateTextField

public void updateTextField(java.lang.String urlS)

processTextField

public void processTextField(java.lang.String s)

hyperlinkPage

public void hyperlinkPage(javax.swing.JEditorPane jep,
                          javax.swing.event.HyperlinkEvent e,
                          javax.swing.JTextField tf)
hyperlinkPage method get invoked from BrowserListener to update the URL textField, to add the new url to the LinkQueue and to start an external thread that gui.run jep.setPage(url),


setUrl

public void setUrl(java.net.URL u)
setUrl method is invoked to start an external thread that gui.run jep.setPage(url), update the URL textField and add the new url to the LinkQueue and