Class browser.BrowserInterface
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class browser.BrowserInterface

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

public class BrowserInterface
extends Object

Variable Index

 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 fi
Font information.

Constructor Index

 o BrowserInterface(Container)
Create a BrowserInterface object.

Method Index

 o URL_Process(String, String)
Load and display an HTML file.
 o URL_Process(URL)
Load and display an HTML file.
 o URL_Stop()
Stop loading HTML file.
 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 getURLName()
Get URL of the current document
 o goBack()
Go back in the history list.
 o goForward()
Go forward in the history list.
 o setMenuHeight(int)
Set height of the menu panel.
 o setMenuMode(int)
Set menu mode.

Variables

 o fi
  public FontInfo fi
Font information. Keeps information about all the fonts used by the browser.
 o MENU_PANEL
  public final static int MENU_PANEL
Menu text is displayed in the menu panel.
 o MENU_INLINE
  public final static int MENU_INLINE
Menu text is displayed in the document.
 o MENU_BOTH
  public final static int MENU_BOTH
Menu text is displayed in the document and in the menu panel.

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

Methods

 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 URL_Process
  public void URL_Process(String url,
                          String target)
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.

All Packages  Class Hierarchy  This Package  Previous  Next  Index