Class JDPBrowser
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----JDPClassLayout
|
+----JDPBrowser
- public class JDPBrowser
- extends JDPClassLayout
Class JDPBrowser represents a simple HTML browsing class.
-
JDPBrowser()
-
-
back()
- Step back and load the previously loaded document.
-
forward()
- Step forward and load the previously loaded document.
-
getDocname()
- Get the name of the current html document.
-
getFontSize()
- Get the default font size for the browser
-
getFullDocname()
- Get the full path of the current html document.
-
getMatchCompleteWords()
- Get the value of matchCompleteWords.
-
handleEvent(Event)
-
-
InitClass(JDPUser, Panel, String)
- Creates a HTML browser.
-
layout()
-
-
minimumSize()
-
-
paint(Graphics)
-
-
preferredSize()
-
-
setDocname(String)
- Set the name of the current html document.
-
setDocname(String, boolean)
- Set the name of the current html document.
-
setFontSize(int)
- Set the default font size for the browser
-
setFullDocname(String)
- Set the full path of the current html document.
-
setKeywords(String[])
-
-
setMatchCompleteWords(boolean)
- Set the new value of matchCompleteWords.
-
update(Graphics)
-
JDPBrowser
public JDPBrowser()
getDocname
public String getDocname()
- Get the name of the current html document.
- Returns:
- the name of the current html document.
getFullDocname
public String getFullDocname()
- Get the full path of the current html document.
- Returns:
- the full path of the current html document.
setFullDocname
public boolean setFullDocname(String name)
- Set the full path of the current html document.
- Parameters:
- docName - the name of the html document.
- Returns:
- true is the html document was found and loaded.
getMatchCompleteWords
public boolean getMatchCompleteWords()
- Get the value of matchCompleteWords.
- Returns:
- matchCompleteWords.
setDocname
public boolean setDocname(String docName)
- Set the name of the current html document. This will also load the
requested document.
- Parameters:
- docName - the name of the html document.
- Returns:
- true is the html document was found and loaded.
setDocname
public boolean setDocname(String docName,
boolean displayErrors)
- Set the name of the current html document. This will also load the
requested document.
- Parameters:
- docName - the name of the html document.
- displayErrors - set true to display any error messages received
while attempting to load the document.
- Returns:
- true is the html document was found and loaded.
setKeywords
public void setKeywords(String keywords[])
setFontSize
public void setFontSize(int size)
- Set the default font size for the browser
- Parameters:
- size - the new default font size
getFontSize
public int getFontSize()
- Get the default font size for the browser
- Returns:
- the default font size
setMatchCompleteWords
public void setMatchCompleteWords(boolean matchCompleteWords)
- Set the new value of matchCompleteWords.
InitClass
public void InitClass(JDPUser user,
Panel targetPanel,
String moduleParameter)
- Creates a HTML browser.
- Parameters:
- user - JDPUser the global user parameter used to pass handles
in JDP.
- targetPanel - the parent panel that this one will be added to.
- moduleParameter - a generic parameter used for specific internal
functions.
- Overrides:
- InitClass in class JDPClassLayout
back
public boolean back()
- Step back and load the previously loaded document.
- Returns:
- true is the html document was found and loaded.
forward
public boolean forward()
- Step forward and load the previously loaded document. This is only
valid if back() has been called prior.
- Returns:
- true is the html document was found and loaded.
handleEvent
public synchronized boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
layout
public void layout()
- Overrides:
- layout in class Container
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Container
paint
public synchronized void paint(Graphics g)
- Overrides:
- paint in class Container
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
update
public synchronized void update(Graphics g)
- Overrides:
- update in class Component