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

  1. public class JScriptBooleanObject extends JSbxObject implements JSbxPropertyInterface {
  2.    public static final String NAME = "Boolean";
  3.    private boolean bVal = false;
  4.  
  5.    public void SetValue(boolean var1) {
  6.       this.bVal = var1;
  7.    }
  8.  
  9.    public boolean GetValue() {
  10.       return this.bVal;
  11.    }
  12.  
  13.    public JScriptBooleanObject(JScriptConstructor var1) {
  14.       super(var1);
  15.    }
  16.  
  17.    public JSbxValue PropertyCallFunction(JSbxObjectProperty var1, JScriptCallParam var2) throws JSbxExceptionBase {
  18.       return null;
  19.    }
  20.  
  21.    public void PropertyGet(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
  22.    }
  23.  
  24.    public void PropertyPut(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
  25.    }
  26.  
  27.    public String Property_GetJScript_typeofString(JSbxObjectProperty var1) {
  28.       return "booleanobject";
  29.    }
  30.  
  31.    public String GetJScriptString(boolean var1) {
  32.       return String.valueOf(this.bVal);
  33.    }
  34. }
  35.