home *** CD-ROM | disk | FTP | other *** search
- import java.io.PrintStream;
- import stardiv.tools.HoldJavaEnvironment;
-
- public class JSbxObjectProperty extends JSbxProperty {
- private JSbxPropertyInterface aValueInterfaceObj;
- private int nID;
- private boolean bIsPropertyNative;
-
- public void SetValueInterface(JSbxPropertyInterface var1) {
- this.aValueInterfaceObj = var1;
- }
-
- public int GetID() {
- return this.nID;
- }
-
- public JSbxObjectProperty(String var1, JSbxObject var2, JSbxPropertyInterface var3, int var4, boolean var5, boolean var6) {
- super(var1, var2);
- this.bIsPropertyNative = var5;
- this.aValueInterfaceObj = var3;
- this.nID = var4;
- if (var6) {
- ((JSbxBase)this).SetFlag(4);
- }
-
- }
-
- public JSbxObjectProperty(String var1, JSbxObject var2, JSbxPropertyInterface var3, int var4, boolean var5) {
- this(var1, var2, var3, var4, var5, false);
- }
-
- public JSbxObjectProperty(String var1, JSbxObject var2, JSbxPropertyInterface var3, int var4) {
- this(var1, var2, var3, var4, false, false);
- }
-
- public void Get(JSbxValue var1) throws JSbxException {
- if (this.bIsPropertyNative && !HoldJavaEnvironment.CanIAskApplication()) {
- var1.Put(new JSbxValue("*** not safe to inspect ***"));
- } else {
- this.aValueInterfaceObj.PropertyGet(this, var1);
- }
- }
-
- public void Put(JSbxValue var1) throws JSbxException {
- if (!this.bIsPropertyNative || HoldJavaEnvironment.CanIAskApplication()) {
- this.aValueInterfaceObj.PropertyPut(this, var1);
- }
-
- }
-
- public JSbxValue CallFunction(JScriptCallParam var1) throws JSbxExceptionBase {
- return this.bIsPropertyNative && !HoldJavaEnvironment.CanIAskApplication() ? new JSbxValue() : this.aValueInterfaceObj.PropertyCallFunction(this, var1);
- }
-
- public String GetJScript_typeofString() {
- return this.aValueInterfaceObj.Property_GetJScript_typeofString(this);
- }
-
- public void Dump(PrintStream var1, int var2, int var3) throws JSbxException {
- new JSbxValue("");
- var1.print("Property \"" + ((JSbxProperty)this).GetName() + "\" = ");
- JSbxValue var4 = new JSbxValue();
- this.Get(var4);
- var1.print("Object-Property (ID=" + this.GetID() + ") Liefert: ");
- var4.Dump(var1, var2, var3);
- }
-
- public String GetBrowserTypeInfo() {
- JSbxValue var1 = new JSbxValue();
-
- try {
- this.Get(var1);
- } catch (JSbxException var3) {
- System.out.println("Exception: " + var3);
- }
-
- return new String("Obj-Prop (ID=" + this.GetID() + "): " + var1.GetBrowserTypeInfo());
- }
-
- public String GetBrowserValueInfo() {
- JSbxValue var1 = new JSbxValue();
-
- try {
- this.Get(var1);
- } catch (JSbxException var3) {
- System.out.println("Exception: " + var3);
- }
-
- return new String(var1.GetBrowserValueInfo());
- }
-
- public String GetBrowserInfo() {
- JSbxValue var1 = new JSbxValue();
-
- try {
- this.Get(var1);
- } catch (JSbxException var3) {
- System.out.println("Exception: " + var3);
- }
-
- return new String("Obj-Prop (ID=" + this.GetID() + "): " + var1.GetBrowserInfo());
- }
- }
-