home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Component;
-
- abstract class JScriptControlObject extends JSbxObject implements JSbxPropertyInterface {
- private static final int CONTROL_ID_NAME = 16;
- private static final int CONTROL_ID_VALUE = 17;
- private Component aComponent;
- private String aName;
-
- protected Component GetControl() {
- return this.aComponent;
- }
-
- public String GetName() {
- return this.aName;
- }
-
- public void SetName(String var1) {
- this.aName = var1;
- }
-
- public JScriptControlObject(String var1, Component var2) {
- this.aComponent = var2;
- this.aName = var1;
-
- try {
- ((JSbxObject)this).Put(new JSbxObjectProperty("name", this, this, 16));
- ((JSbxObject)this).Put(new JSbxObjectProperty("value", this, this, 17));
- } catch (JSbxException var3) {
- System.out.println("Unerwartete Exception im JScriptControlObject()-Ctor");
- }
- }
-
- public JSbxValue PropertyCallFunction(JSbxObjectProperty var1, JScriptCallParam var2) throws JSbxExceptionBase {
- var2.GetParamVector();
- int var3 = var1.GetID();
- switch (var3) {
- case 0:
- default:
- throw new JSbxException(0, "no such method in Control (ID=" + var3 + ")");
- }
- }
-
- public void PropertyGet(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- int var3 = var1.GetID();
- switch (var3) {
- case 16:
- var2.Put(new JSbxValue(this.GetName()));
- return;
- case 17:
- var2.Put(new JSbxValue(this.GetValue()));
- return;
- default:
- throw new JSbxException(0, "no such property in Control (ID=" + var3 + ")");
- }
- }
-
- public void PropertyPut(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- int var3 = var1.GetID();
- switch (var3) {
- case 16:
- this.SetName(var2.GetString());
- return;
- case 17:
- this.SetValue(var2.GetString());
- return;
- default:
- throw new JSbxException(0, "no such property in Control (ID=" + var3 + ")");
- }
- }
-
- public String Property_GetJScript_typeofString(JSbxObjectProperty var1) {
- return "control";
- }
-
- public String GetJScriptString(boolean var1) {
- return "Control (internal) ?";
- }
-
- public abstract String GetValue();
-
- public abstract void SetValue(String var1);
- }
-