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.
-
JDPBrowserCtl()
-
-
getDocname()
- Get the name of the current html document.
-
handleEvent(Event)
- Handle screen events.
-
InitClass(JDPUser, Panel, String)
- Creates a HTML browser.
-
setDocname(String)
- Set the name of the current html document.
-
setDocname(String, boolean)
- Set the name of the current html document.
-
setKeywords(String[])
-
-
setMatchCompleteWords(boolean)
-
JDPBrowserCtl
public JDPBrowserCtl()
getDocname
public String getDocname()
- Get the name of the current html document.
- Returns:
- the name of the current html document.
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[])
setMatchCompleteWords
public void setMatchCompleteWords(boolean matchOnly)
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
handleEvent
public boolean handleEvent(Event e)
- Handle screen events.
- Overrides:
- handleEvent in class Component