Class JDPBrowserCtl

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPClassLayout
                                   |
                                   +----JDPBrowserCtl

public class JDPBrowserCtl
extends JDPClassLayout
Class JDPBrowser represents a simple HTML browsing class with back and forward buttons for controlling document loading.


Constructor Index

 o JDPBrowserCtl()

Method Index

 o getDocname()
Get the name of the current html document.
 o handleEvent(Event)
Handle screen events.
 o InitClass(JDPUser, Panel, String)
Creates a HTML browser.
 o setDocname(String)
Set the name of the current html document.
 o setDocname(String, boolean)
Set the name of the current html document.
 o setKeywords(String[])
 o setMatchCompleteWords(boolean)

Constructors

 o JDPBrowserCtl
 public JDPBrowserCtl()

Methods

 o getDocname
 public String getDocname()
Get the name of the current html document.

Returns:
the name of the current html document.
 o 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.
 o 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.
 o setKeywords
 public void setKeywords(String keywords[])
 o setMatchCompleteWords
 public void setMatchCompleteWords(boolean matchOnly)
 o 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
 o handleEvent
 public boolean handleEvent(Event e)
Handle screen events.

Overrides:
handleEvent in class Component