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

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