home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 March / maximum-cd-1999-03.iso / Feature / Lotus / ORGANIZE / COMPNENT / LTOUIN21.ZIP / sun / activator / ocx / ActiveXAppletViewer.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-03-12  |  1.6 KB  |  65 lines

  1. package sun.activator.ocx;
  2.  
  3. import sun.activator.ActivatorAppletContext;
  4. import sun.activator.AppletViewer;
  5.  
  6. public class ActiveXAppletViewer extends AppletViewer {
  7.    private int handle;
  8.  
  9.    private ActiveXAppletViewer(int var1) {
  10.       super(new ActiveXAppletContext(var1));
  11.       this.handle = var1;
  12.    }
  13.  
  14.    protected ActiveXAppletViewer(ActivatorAppletContext var1, int var2) {
  15.       super(var1);
  16.       this.handle = var2;
  17.    }
  18.  
  19.    public boolean bridgeEvents() {
  20.       String var1 = ((AppletViewer)this).getParameter("bridgeevents");
  21.       if (var1 == null) {
  22.          return false;
  23.       } else {
  24.          return var1.equalsIgnoreCase("yes");
  25.       }
  26.    }
  27.  
  28.    public String getParameterFromHTML(String var1) {
  29.       return this.handle != 0 ? this.nativeGetParameter(var1, this.handle) : null;
  30.    }
  31.  
  32.    public void init() {
  33.       ((AppletViewer)this).initProperties();
  34.       super.init();
  35.    }
  36.  
  37.    private synchronized native String nativeGetParameter(String var1, int var2);
  38.  
  39.    public void onClose(int var1) {
  40.       this.handle = 0;
  41.  
  42.       try {
  43.          ((ActiveXAppletContext)((AppletViewer)this).getAppletContext()).onClose();
  44.       } catch (ClassCastException var2) {
  45.       }
  46.  
  47.       super.onClose(var1);
  48.    }
  49.  
  50.    public void showAppletStatus(String var1) {
  51.       if (this.handle != 0) {
  52.          super.showAppletStatus(var1);
  53.          this.statusNotification(super.status);
  54.       }
  55.  
  56.    }
  57.  
  58.    public void showAppletStatus(String var1, Object var2) {
  59.       super.showAppletStatus(var1, var2);
  60.       this.statusNotification(super.status);
  61.    }
  62.  
  63.    private synchronized native void statusNotification(int var1);
  64. }
  65.