Class BrowserInterface

java.lang.Object
   |
   +----BrowserInterface

public class BrowserInterface
extends Object

Variable Index

 o cont
 o content
 o curURL
 o dialog
 o fi
Font information.
 o frame
 o frameName
 o hist
 o histCurrent
 o inplace
 o list
 o MENU_BOTH
Menu text is displayed in the document and in the menu panel.
 o MENU_INLINE
Menu text is displayed in the document.
 o MENU_PANEL
Menu text is displayed in the menu panel.
 o menuHeight
 o menuMode
 o panel1
 o panel2
 o r
 o very_small

Constructor Index

 o BrowserInterface(Container)
Create a BrowserInterface object.
 o BrowserInterface(Container, int, int, String, String, boolean)

Method Index

 o addHist(URL, int)
 o compURLs(URL, URL)
 o do_URL_Process(BrowserPanel, URL, int, boolean, boolean)
 o fileToURL(String)
 o findApplet(Container)
 o findFrame(Container)
 o getFileName()
Get filename of the current document
 o getMenuHeight()
Get height of the menu panel (in pixels).
 o getMenuMode()
Get current menu mode.
 o getMenuPanel()
 o getURLName()
Get URL of the current document
 o goBack()
Go back in the history list.
 o goForward()
Go forward in the history list.
 o makeURL(String)
 o makeURL(String, String)
 o removeMenuPanel()
 o setCursor(int)
 o setMenuHeight(int)
Set height of the menu panel.
 o setMenuMode(int)
Set menu mode.
 o setTitle(String)
 o updateHist()
 o URL_Process(boolean, boolean)
 o URL_Process(String)
Load and display an HTML file.
 o URL_Process(URL)
Load and display an HTML file.
 o URL_Process(URL, int, boolean)
 o URL_Stop()
Stop loading HTML file.

Variables

 o frameName
 private String frameName
 o hist
 private Vector hist
 o histCurrent
 private int histCurrent
 o curURL
 private URL curURL
 o menuMode
 private int menuMode
 o menuHeight
 private int menuHeight
 o fi
 public FontInfo fi
Font information. Keeps information about all the fonts used by the browser.

 o cont
 private Container cont
 o frame
 private Frame frame
 o panel1
 public BrowserPanel panel1
 o panel2
 public BrowserPanel panel2
 o r
 private ReadFileThread r
 o MENU_PANEL
 public static final int MENU_PANEL
Menu text is displayed in the menu panel.

 o MENU_INLINE
 public static final int MENU_INLINE
Menu text is displayed in the document.

 o MENU_BOTH
 public static final int MENU_BOTH
Menu text is displayed in the document and in the menu panel.

 o content
 public String content
 o inplace
 public boolean inplace
 o dialog
 public boolean dialog
 o very_small
 boolean very_small
 o list
 Selection list

Constructors

 o BrowserInterface
 public BrowserInterface(Container c)
Create a BrowserInterface object. Initializes the browser data, appends a browser panel to a container (Frame or Panel).

Parameters:
c - Parent Container for the browser
 o BrowserInterface
 public BrowserInterface(Container c,
                         int size_x,
                         int size_y,
                         String content,
                         String add_where,
                         boolean inplace)

Methods

 o fileToURL
 String fileToURL(String src)
 o findFrame
 private Frame findFrame(Container c)
 o findApplet
 private Applet findApplet(Container c)
 o getMenuMode
 public int getMenuMode()
Get current menu mode.

Returns:
Menu mode (MENU_PANEL, MENU_INLINE or MENU_BOTH)
 o setMenuMode
 public void setMenuMode(int mode)
Set menu mode. The mode determines how the html data between <MENU> and </MENU> tags is treated. Currently supoprted modes:

Parameters:
mode - Menu mode
 o getMenuHeight
 public int getMenuHeight()
Get height of the menu panel (in pixels).

Returns:
Menu height
 o setMenuHeight
 public void setMenuHeight(int h)
Set height of the menu panel.

Parameters:
h - Height of the menu panel
 o goBack
 public void goBack()
Go back in the history list. Load previous document.

 o goForward
 public void goForward()
Go forward in the history list. Load next document.

 o getFileName
 public String getFileName()
Get filename of the current document

Returns:
filename.
 o getURLName
 public String getURLName()
Get URL of the current document

Returns:
URL name.
 o setCursor
 void setCursor(int c)
 o setTitle
 void setTitle(String str)
 o getMenuPanel
 BrowserPanel getMenuPanel()
 o removeMenuPanel
 void removeMenuPanel()
 o updateHist
 void updateHist()
 o addHist
 void addHist(URL url,
              int pos)
 o makeURL
 URL makeURL(String url_name)
 o makeURL
 URL makeURL(String url_name,
             String ref_name)
 o compURLs
 boolean compURLs(URL u1,
                  URL u2)
 o URL_Process
 public void URL_Process(String urls)
Load and display an HTML file.

Parameters:
url - URL (as unparsed text) to open.
target - Target inside the document (null if no target).
 o URL_Process
 public void URL_Process(URL url)
Load and display an HTML file.

Parameters:
url - URL to open.
 o URL_Stop
 public void URL_Stop()
Stop loading HTML file.

 o URL_Process
 void URL_Process(boolean w,
                  boolean h)
 o URL_Process
 void URL_Process(URL url,
                  int pos,
                  boolean add_hist)
 o do_URL_Process
 private void do_URL_Process(BrowserPanel p,
                             URL url,
                             int pos,
                             boolean w_flag,
                             boolean h_flag)