Class BrowserInterface
java.lang.Object
|
+----BrowserInterface
- public class BrowserInterface
- extends Object
-
cont
-
-
content
-
-
curURL
-
-
dialog
-
-
fi
- Font information.
-
frame
-
-
frameName
-
-
hist
-
-
histCurrent
-
-
inplace
-
-
list
-
-
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.
-
menuHeight
-
-
menuMode
-
-
panel1
-
-
panel2
-
-
r
-
-
very_small
-
-
BrowserInterface(Container)
- Create a BrowserInterface object.
-
BrowserInterface(Container, int, int, String, String, boolean)
-
-
addHist(URL, int)
-
-
compURLs(URL, URL)
-
-
do_URL_Process(BrowserPanel, URL, int, boolean, boolean)
-
-
fileToURL(String)
-
-
findApplet(Container)
-
-
findFrame(Container)
-
-
getFileName()
- Get filename of the current document
-
getMenuHeight()
- Get height of the menu panel (in pixels).
-
getMenuMode()
- Get current menu mode.
-
getMenuPanel()
-
-
getURLName()
- Get URL of the current document
-
goBack()
- Go back in the history list.
-
goForward()
- Go forward in the history list.
-
makeURL(String)
-
-
makeURL(String, String)
-
-
removeMenuPanel()
-
-
setCursor(int)
-
-
setMenuHeight(int)
- Set height of the menu panel.
-
setMenuMode(int)
- Set menu mode.
-
setTitle(String)
-
-
updateHist()
-
-
URL_Process(boolean, boolean)
-
-
URL_Process(String)
- Load and display an HTML file.
-
URL_Process(URL)
- Load and display an HTML file.
-
URL_Process(URL, int, boolean)
-
-
URL_Stop()
- Stop loading HTML file.
frameName
private String frameName
hist
private Vector hist
histCurrent
private int histCurrent
curURL
private URL curURL
menuMode
private int menuMode
menuHeight
private int menuHeight
fi
public FontInfo fi
- Font information.
Keeps information about all the fonts used by the browser.
cont
private Container cont
frame
private Frame frame
panel1
public BrowserPanel panel1
panel2
public BrowserPanel panel2
r
private ReadFileThread r
MENU_PANEL
public static final int MENU_PANEL
- Menu text is displayed in the menu panel.
MENU_INLINE
public static final int MENU_INLINE
- Menu text is displayed in the document.
MENU_BOTH
public static final int MENU_BOTH
- Menu text is displayed in the document and in the menu panel.
content
public String content
inplace
public boolean inplace
dialog
public boolean dialog
very_small
boolean very_small
list
Selection list
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
BrowserInterface
public BrowserInterface(Container c,
int size_x,
int size_y,
String content,
String add_where,
boolean inplace)
fileToURL
String fileToURL(String src)
findFrame
private Frame findFrame(Container c)
findApplet
private Applet findApplet(Container c)
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.
setCursor
void setCursor(int c)
setTitle
void setTitle(String str)
getMenuPanel
BrowserPanel getMenuPanel()
removeMenuPanel
void removeMenuPanel()
updateHist
void updateHist()
addHist
void addHist(URL url,
int pos)
makeURL
URL makeURL(String url_name)
makeURL
URL makeURL(String url_name,
String ref_name)
compURLs
boolean compURLs(URL u1,
URL u2)
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).
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.
URL_Process
void URL_Process(boolean w,
boolean h)
URL_Process
void URL_Process(URL url,
int pos,
boolean add_hist)
do_URL_Process
private void do_URL_Process(BrowserPanel p,
URL url,
int pos,
boolean w_flag,
boolean h_flag)