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

  1. public class JScriptAbstractControlObject extends JSbxArrayObject {
  2.    protected static final String NAME = "AbstractControl";
  3.    protected static final int CONTROL_ID_NAME = 65;
  4.    protected static final int CONTROL_ID_VALUE = 66;
  5.    protected static final int CONTROL_ID_TYPE = 67;
  6.    protected static final int CONTROL_ID_FORM = 68;
  7.  
  8.    protected JScriptAbstractControlObject(long var1) {
  9.       super(var1);
  10.  
  11.       try {
  12.          ((JSbxObject)this).Put(new JSbxObjectProperty("type", this, this, 67, true));
  13.          ((JSbxObject)this).Put(new JSbxObjectProperty("name", this, this, 65, true));
  14.          ((JSbxObject)this).Put(new JSbxObjectProperty("form", this, this, 68, true));
  15.          ((JSbxObject)this).Put(new JSbxObjectProperty("value", this, this, 66, true));
  16.       } catch (JSbxException var3) {
  17.       }
  18.    }
  19.  
  20.    public void PropertyGet(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
  21.       int var3 = var1.GetID();
  22.  
  23.       try {
  24.          switch (var3) {
  25.             case 65:
  26.                var2.Put(new JSbxValue(this.getName()));
  27.                return;
  28.             case 66:
  29.                var2.Put(new JSbxValue(this.getValue()));
  30.                return;
  31.             case 67:
  32.                var2.Put(new JSbxValue(this.getType()));
  33.                return;
  34.             case 68:
  35.                var2.Put(new JSbxValue(this.getForm()));
  36.                return;
  37.             default:
  38.                super.PropertyGet(var1, var2);
  39.          }
  40.       } catch (UnsatisfiedLinkError var4) {
  41.       }
  42.    }
  43.  
  44.    public void PropertyPut(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
  45.       int var3 = var1.GetID();
  46.  
  47.       try {
  48.          switch (var3) {
  49.             case 65:
  50.                this.setName(var2.GetString());
  51.                return;
  52.             case 66:
  53.                this.setValue(var2.GetString());
  54.                return;
  55.             default:
  56.                super.PropertyPut(var1, var2);
  57.          }
  58.       } catch (UnsatisfiedLinkError var4) {
  59.       }
  60.    }
  61.  
  62.    public String Property_GetJScript_typeofString(JSbxObjectProperty var1) {
  63.       return this.GetJScriptString(true);
  64.    }
  65.  
  66.    public String GetJScriptString(boolean var1) {
  67.       return "AbstractControl";
  68.    }
  69.  
  70.    protected String MakeExceptionString(int var1) {
  71.       return "no such property in " + ((JSbxObject)this).GetJScriptString() + " (ID=" + var1 + ")";
  72.    }
  73.  
  74.    protected native String getName();
  75.  
  76.    protected native void setName(String var1);
  77.  
  78.    protected native String getValue();
  79.  
  80.    protected native void setValue(String var1);
  81.  
  82.    protected native String getType();
  83.  
  84.    protected native JSbxObject getForm();
  85. }
  86.