org.telscenter.pas.steps
Class AppletViewer.InternalAppletStub

java.lang.Object
  extended by org.telscenter.pas.steps.AppletViewer.InternalAppletStub
All Implemented Interfaces:
java.applet.AppletStub
Enclosing class:
AppletViewer

public class AppletViewer.InternalAppletStub
extends java.lang.Object
implements java.applet.AppletStub


Constructor Summary
AppletViewer.InternalAppletStub()
           
 
Method Summary
 void appletResize(int width, int height)
           
 java.applet.AppletContext getAppletContext()
           
 java.net.URL getCodeBase()
          Try to create a URL from the current working directory But avoid using this method when making an applet because it won't work if the classes/images are in a JAR file Use Class.getResource(...) instead.
 java.net.URL getDocumentBase()
          Try to create a URL from the current working directory.
 java.lang.String getParameter(java.lang.String name)
          Returns the value associated with the parameter name This is the method that gets called when the applet looks for a parameter
 boolean isActive()
          Currently always returns true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppletViewer.InternalAppletStub

public AppletViewer.InternalAppletStub()
Method Detail

appletResize

public void appletResize(int width,
                         int height)
Specified by:
appletResize in interface java.applet.AppletStub

getAppletContext

public java.applet.AppletContext getAppletContext()
Specified by:
getAppletContext in interface java.applet.AppletStub
Returns:
the AppletContext of this appletviewer

getCodeBase

public java.net.URL getCodeBase()
Try to create a URL from the current working directory But avoid using this method when making an applet because it won't work if the classes/images are in a JAR file Use Class.getResource(...) instead.

Specified by:
getCodeBase in interface java.applet.AppletStub
Returns:
URL the URL where the java files reside

getDocumentBase

public java.net.URL getDocumentBase()
Try to create a URL from the current working directory. Once again, avoid using this method when making an applet Use Class.getResource(...) instead.

Specified by:
getDocumentBase in interface java.applet.AppletStub
Returns:
URL the URL where html file embedding the applet resides

getParameter

public java.lang.String getParameter(java.lang.String name)
Returns the value associated with the parameter name This is the method that gets called when the applet looks for a parameter

Specified by:
getParameter in interface java.applet.AppletStub
Parameters:
name - the name of the parameter
Returns:
value the String representation of the value associated with the name

isActive

public boolean isActive()
Currently always returns true

Specified by:
isActive in interface java.applet.AppletStub
Returns:
true


Copyright © 2004-2008 TELS Center. All Rights Reserved.