Applicet Framework for Applets and Applications v2.03

be.arci.applet
Interface Browser

All Known Implementing Classes:
DummyBrowser, EricAlbertBrowser, SwingBrowser, ExecBrowser

public interface Browser

Interface describing helper programs for the AppletContext of an Applicet application: Applicet.getAppletContext().showDocument(), if instanceof Applicet.Context, delegates to Browser.showDocument(). The Applicet argument can be used to retrieve the Applicet's Frame, bounds and other properties. The actual Browser implementation to used can be set by a call to the Applicet application's setBrowser() method.

See Also:
setBrowser Applicet.Context.setBrowser, AppletContext.showDocument, Viewing HTML documents

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.
 

Method Detail

showDocument

public 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. 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.

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