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

  1. import java.io.PrintStream;
  2.  
  3. public class JSbxValueProperty extends JSbxProperty {
  4.    private boolean bReadOnly;
  5.    private JSbxValue aValue;
  6.  
  7.    public void SetValue(JSbxValue var1) {
  8.       this.aValue = var1;
  9.    }
  10.  
  11.    private JSbxValue GetValue() {
  12.       if (this.aValue == null) {
  13.          this.aValue = new JSbxValue();
  14.       }
  15.  
  16.       return this.aValue;
  17.    }
  18.  
  19.    public JSbxValueProperty(String var1, JSbxObject var2, JSbxValue var3, boolean var4, boolean var5) {
  20.       super(var1, var2);
  21.       this.aValue = var3;
  22.       this.bReadOnly = var4;
  23.       if (var5) {
  24.          ((JSbxBase)this).SetFlag(4);
  25.       }
  26.  
  27.    }
  28.  
  29.    public JSbxValueProperty(String var1, JSbxObject var2, JSbxValue var3) {
  30.       this(var1, var2, var3, false, false);
  31.    }
  32.  
  33.    public JSbxValueProperty(String var1, JSbxObject var2) {
  34.       this(var1, var2, (JSbxValue)null, false, false);
  35.    }
  36.  
  37.    public void Get(JSbxValue var1) throws JSbxException {
  38.       this.GetValue().Get(var1);
  39.    }
  40.  
  41.    public void Put(JSbxValue var1) throws JSbxException {
  42.       if (!this.bReadOnly) {
  43.          this.GetValue().Put(var1);
  44.       }
  45.  
  46.    }
  47.  
  48.    public JSbxValue CallFunction(JScriptCallParam var1) throws JSbxExceptionBase {
  49.       return this.GetValue().CallFunction(var1);
  50.    }
  51.  
  52.    public String GetJScript_typeofString() {
  53.       return this.GetValue().GetJScript_typeofString();
  54.    }
  55.  
  56.    public void Dump(PrintStream var1, int var2, int var3) throws JSbxException {
  57.       new JSbxValue("");
  58.       var1.print("Property \"" + ((JSbxProperty)this).GetName() + "\" = ");
  59.       this.GetValue().Dump(var1, var2, var3);
  60.    }
  61.  
  62.    public String GetBrowserTypeInfo() {
  63.       return this.GetValue().GetBrowserTypeInfo();
  64.    }
  65.  
  66.    public String GetBrowserValueInfo() {
  67.       return this.GetValue().GetBrowserValueInfo();
  68.    }
  69.  
  70.    public String GetBrowserInfo() {
  71.       return this.GetValue().GetBrowserInfo();
  72.    }
  73. }
  74.