home *** CD-ROM | disk | FTP | other *** search
- package sun.activator.ocx;
-
- import sun.activator.ActivatorAppletContext;
- import sun.activator.AppletViewer;
-
- public class ActiveXAppletViewer extends AppletViewer {
- private int handle;
-
- private ActiveXAppletViewer(int var1) {
- super(new ActiveXAppletContext(var1));
- this.handle = var1;
- }
-
- protected ActiveXAppletViewer(ActivatorAppletContext var1, int var2) {
- super(var1);
- this.handle = var2;
- }
-
- public boolean bridgeEvents() {
- String var1 = ((AppletViewer)this).getParameter("bridgeevents");
- if (var1 == null) {
- return false;
- } else {
- return var1.equalsIgnoreCase("yes");
- }
- }
-
- public String getParameterFromHTML(String var1) {
- return this.handle != 0 ? this.nativeGetParameter(var1, this.handle) : null;
- }
-
- public void init() {
- ((AppletViewer)this).initProperties();
- super.init();
- }
-
- private synchronized native String nativeGetParameter(String var1, int var2);
-
- public void onClose(int var1) {
- this.handle = 0;
-
- try {
- ((ActiveXAppletContext)((AppletViewer)this).getAppletContext()).onClose();
- } catch (ClassCastException var2) {
- }
-
- super.onClose(var1);
- }
-
- public void showAppletStatus(String var1) {
- if (this.handle != 0) {
- super.showAppletStatus(var1);
- this.statusNotification(super.status);
- }
-
- }
-
- public void showAppletStatus(String var1, Object var2) {
- super.showAppletStatus(var1, var2);
- this.statusNotification(super.status);
- }
-
- private synchronized native void statusNotification(int var1);
- }
-