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
-
MENU_BOTH
- Menu text is displayed in the document and in the menu panel.
-
MENU_INLINE
- Menu text is displayed in the document.
-
MENU_PANEL
- Menu text is displayed in the menu panel.
-
fi
- Font information.
-
BrowserInterface(Container)
- Create a BrowserInterface object.
-
URL_Process(String, String)
- Load and display an HTML file.
-
URL_Process(URL)
- Load and display an HTML file.
-
URL_Stop()
- Stop loading HTML file.
-
getFileName()
- Get filename of the current document
-
getMenuHeight()
- Get height of the menu panel (in pixels).
-
getMenuMode()
- Get current menu mode.
-
getURLName()
- Get URL of the current document
-
goBack()
- Go back in the history list.
-
goForward()
- Go forward in the history list.
-
setMenuHeight(int)
- Set height of the menu panel.
-
setMenuMode(int)
- Set menu mode.
fi
public FontInfo fi
- Font information.
Keeps information about all the fonts used by the browser.
MENU_PANEL
public final static int MENU_PANEL
- Menu text is displayed in the menu panel.
MENU_INLINE
public final static int MENU_INLINE
- Menu text is displayed in the document.
MENU_BOTH
public final static int MENU_BOTH
- Menu text is displayed in the document and in the menu panel.
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
getMenuMode
public int getMenuMode()
- Get current menu mode.
- Returns:
- Menu mode (MENU_PANEL, MENU_INLINE or MENU_BOTH)
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:
- MENU_PANEL - menu text is drawn in special menu panel
- MENU_INLINE - menu text is treated as normal text
- MENU_BOTH - menu text is drawn both in the document and in the menu panel
- Parameters:
- mode - Menu mode
getMenuHeight
public int getMenuHeight()
- Get height of the menu panel (in pixels).
- Returns:
- Menu height
setMenuHeight
public void setMenuHeight(int h)
- Set height of the menu panel.
- Parameters:
- h - Height of the menu panel
goBack
public void goBack()
- Go back in the history list.
Load previous document.
goForward
public void goForward()
- Go forward in the history list.
Load next document.
getFileName
public String getFileName()
- Get filename of the current document
- Returns:
- filename.
getURLName
public String getURLName()
- Get URL of the current document
- Returns:
- URL name.
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).
URL_Process
public void URL_Process(URL url)
- Load and display an HTML file.
- Parameters:
- url - URL to open.
URL_Stop
public void URL_Stop()
- Stop loading HTML file.
All Packages Class Hierarchy This Package Previous Next Index