home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 August / PCO0897.ISO / filesbbs / os2 / fp1os2.arj / OS2 / DATA / 49 / C / 0 / F_26836 / JScriptLinkObject.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-05-15  |  2.0 KB  |  115 lines

  1. public class JScriptLinkObject extends JScriptAbstractLinkObject {
  2.    private static final int LINK_ID_TARGET = 257;
  3.    private static final int LINK_ID_ONMOUSEOVER = 258;
  4.    private static final int LINK_ID_ONMOUSEOUT = 259;
  5.    private static final int LINK_ID_ONCLICK = 260;
  6.  
  7.    public JScriptLinkObject(long var1) {
  8.       super(var1);
  9.  
  10.       try {
  11.          ((JSbxObject)this).Put(new JSbxObjectProperty("target", this, this, 257, true, true));
  12.          ((JSbxObject)this).Put(new JSbxObjectProperty("onmouseover", this, this, 258, true, true));
  13.          ((JSbxObject)this).Put(new JSbxObjectProperty("onmouseout", this, this, 259, true, true));
  14.          ((JSbxObject)this).Put(new JSbxObjectProperty("onclick", this, this, 260, true, true));
  15.       } catch (JSbxException var3) {
  16.       }
  17.    }
  18.  
  19.    public void PropertyGet(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
  20.       int var3 = var1.GetID();
  21.  
  22.       try {
  23.          switch (var3) {
  24.             case 257:
  25.                var2.Put(new JSbxValue(this.getTarget()));
  26.                return;
  27.             case 258:
  28.                var2.Put(new JSbxValue(this.getOnMouseOver()));
  29.                return;
  30.             case 259:
  31.                var2.Put(new JSbxValue(this.getOnMouseOut()));
  32.                return;
  33.             case 260:
  34.                var2.Put(new JSbxValue(this.getOnClick()));
  35.                return;
  36.             default:
  37.                super.PropertyGet(var1, var2);
  38.          }
  39.       } catch (UnsatisfiedLinkError var4) {
  40.       }
  41.    }
  42.  
  43.    public void PropertyPut(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
  44.       int var3 = var1.GetID();
  45.  
  46.       try {
  47.          switch (var3) {
  48.             case 257:
  49.                this.setTarget(var2.GetString());
  50.                return;
  51.             case 258:
  52.                this.setOnMouseOver(var2.GetString());
  53.                return;
  54.             case 259:
  55.                this.setOnMouseOut(var2.GetString());
  56.                return;
  57.             case 260:
  58.                this.setOnClick(var2.GetString());
  59.                return;
  60.             default:
  61.                super.PropertyPut(var1, var2);
  62.          }
  63.       } catch (UnsatisfiedLinkError var4) {
  64.       }
  65.    }
  66.  
  67.    protected native String getHash();
  68.  
  69.    protected native void setHash(String var1);
  70.  
  71.    protected native String getHost();
  72.  
  73.    protected native void setHost(String var1);
  74.  
  75.    protected native String getHostname();
  76.  
  77.    protected native void setHostname(String var1);
  78.  
  79.    protected native String getHref();
  80.  
  81.    protected native void setHref(String var1);
  82.  
  83.    protected native String getPathname();
  84.  
  85.    protected native void setPathname(String var1);
  86.  
  87.    protected native String getPort();
  88.  
  89.    protected native void setPort(String var1);
  90.  
  91.    protected native String getProtocol();
  92.  
  93.    protected native void setProtocol(String var1);
  94.  
  95.    protected native String getSearch();
  96.  
  97.    protected native void setSearch(String var1);
  98.  
  99.    protected native String getTarget();
  100.  
  101.    protected native void setTarget(String var1);
  102.  
  103.    protected native String getOnMouseOut();
  104.  
  105.    protected native void setOnMouseOut(String var1);
  106.  
  107.    protected native String getOnMouseOver();
  108.  
  109.    protected native void setOnMouseOver(String var1);
  110.  
  111.    protected native String getOnClick();
  112.  
  113.    protected native void setOnClick(String var1);
  114. }
  115.