home *** CD-ROM | disk | FTP | other *** search
- public class JScriptButtonObject extends JScriptAbstractControlObject {
- private static final String NAME = "button";
- private static final int BUTTON_ID_CLICK = 257;
- private static final int BUTTON_ID_ONCLICK = 258;
-
- public JScriptButtonObject(long var1) {
- super(var1);
-
- try {
- ((JSbxObject)this).Put(new JSbxObjectProperty("click", this, this, 257, true, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("onclick", this, this, 258, true, true));
- } catch (JSbxException var3) {
- }
- }
-
- public JSbxValue PropertyCallFunction(JSbxObjectProperty var1, JScriptCallParam var2) throws JSbxExceptionBase {
- var2.GetParamVector();
- int var3 = var1.GetID();
-
- try {
- switch (var3) {
- case 257:
- this.click();
- break;
- default:
- return super.PropertyCallFunction(var1, var2);
- }
- } catch (UnsatisfiedLinkError var5) {
- }
-
- Object var4 = null;
- JSbxValue var6 = new JSbxValue();
- var2.GetRuntimeParam().SetReturnValue(var6);
- return var6;
- }
-
- public void PropertyGet(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- int var3 = var1.GetID();
-
- try {
- switch (var3) {
- case 258:
- var2.Put(new JSbxValue(this.getOnClick()));
- return;
- default:
- super.PropertyGet(var1, var2);
- }
- } catch (UnsatisfiedLinkError var4) {
- }
- }
-
- public void PropertyPut(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- int var3 = var1.GetID();
-
- try {
- switch (var3) {
- case 258:
- this.setOnClick(var2.GetString());
- return;
- default:
- super.PropertyPut(var1, var2);
- }
- } catch (UnsatisfiedLinkError var4) {
- }
- }
-
- public String Property_GetJScript_typeofString(JSbxObjectProperty var1) {
- return "button";
- }
-
- public String GetJScriptString(boolean var1) {
- return "button";
- }
-
- protected native void click();
-
- protected native JScriptFunctionObject getOnClick_Fct();
-
- protected native void setOnClick_Fct(JScriptFunctionObject var1);
-
- protected native String getOnClick();
-
- protected native void setOnClick(String var1);
- }
-