Applicet Framework for Applets and Applications v2.03

be.arci.pub
Class EricAlbertBrowser

java.lang.Object
  |
  +--be.arci.pub.EricAlbertBrowser
All Implemented Interfaces:
Browser

public class EricAlbertBrowser
extends java.lang.Object
implements Browser

Implementation of Browser that delegates to Eric Albert's BrowserLauncher.

We supply this Browser implementation as a free service to all Applicet users. You are allowed to modify this source code, provided you move the class out of the be.arci package hierarchy.

Currently the sTarget argument is ignored.

Since:
01/feb/2000
See Also:
BrowserLauncher class, Eric Albert's BrowserLauncher website

Constructor Summary
EricAlbertBrowser()
           
 
Method Summary
 void showDocument(Framework application, java.net.URL urlDocument, java.lang.String sTarget)
          Shows the document at the given URL in the Browser window or HTML frame indicated by sTarget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EricAlbertBrowser

public EricAlbertBrowser()
Method Detail

showDocument

public void showDocument(Framework application,
                         java.net.URL urlDocument,
                         java.lang.String sTarget)
Description copied from interface: Browser
Shows the document at the given URL in the Browser window or HTML frame indicated by sTarget. This code is called by an Applicet application's getAppletContext().showDocument(URL url), with sTarget = "_top" supplied as default, and by getAppletContext().showDocument(URL url, String sTarget). The sTarget argument is interpreted as follows:

"_self" Not applicable when running as application; acts the same as _top.
"_parent"Not applicable when running as application; acts the same as _top.
"_top" Show in the top-level frame of the current Browser window.
"_blank" Show in a new, unnamed top-level window.
name Show in the frame or window named name. If a target named name does not already exist, a new top-level window with the specified name is created, and the document is shown there.
Implementers may simply ignore the complete showDocument request (as per the java.applet.Applet.AppletContext specs!) or the sTarget argument.

Specified by:
showDocument in interface Browser
Following copied from interface: be.arci.applet.Browser
Parameters:
application - the Applicet application on behalf of which the document must be shown
urlDocument - the absolute url of the requested document (note: implementers may prefer to handle relative url's as well)
sTarget - name indicating where to display the document.
See Also:
Applicet.Context.showDocument, Viewing HTML documents

Applicet Framework for Applets and Applications v2.03