home *** CD-ROM | disk | FTP | other *** search
- public class JScriptCheckboxObject extends JScriptAbstractControlObject {
- private static final int CHECKBOX_ID_CHECKED = 257;
- private static final int CHECKBOX_ID_DEFAULTCHECKED = 258;
- private static final int CHECKBOX_ID_CLICK = 259;
- private static final int CHECKBOX_ID_ONCLICK = 260;
-
- public JScriptCheckboxObject(long var1) {
- super(var1);
-
- try {
- ((JSbxObject)this).Put(new JSbxObjectProperty("checked", this, this, 257, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("defaultChecked", this, this, 258, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("click", this, this, 259, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("onclick", this, this, 260, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("status", this, this, 257, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("defaultStatus", this, this, 258, true));
- } catch (JSbxException var3) {
- }
- }
-
- public JSbxValue PropertyCallFunction(JSbxObjectProperty var1, JScriptCallParam var2) throws JSbxExceptionBase {
- int var3 = var1.GetID();
-
- try {
- switch (var3) {
- case 259:
- 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 257:
- var2.Put(new JSbxValue(this.getChecked()));
- return;
- case 258:
- var2.Put(new JSbxValue(this.getDefaultChecked()));
- return;
- case 259:
- default:
- super.PropertyGet(var1, var2);
- return;
- case 260:
- var2.Put(new JSbxValue(this.getOnClick()));
- }
- } catch (UnsatisfiedLinkError var4) {
- }
- }
-
- public void PropertyPut(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- int var3 = var1.GetID();
-
- try {
- switch (var3) {
- case 257:
- this.setChecked(var2.GetBool());
- return;
- case 258:
- this.setDefaultChecked(var2.GetBool());
- return;
- case 259:
- default:
- if (var3 == 66) {
- this.setValue(var2.GetString());
- return;
- }
-
- super.PropertyPut(var1, var2);
- return;
- case 260:
- this.setOnClick(var2.GetString());
- }
- } catch (UnsatisfiedLinkError var4) {
- }
- }
-
- public String GetJScriptString(boolean var1) {
- return "checkbox";
- }
-
- protected native boolean getChecked();
-
- protected native void setChecked(boolean var1);
-
- protected native boolean getDefaultChecked();
-
- protected native void setDefaultChecked(boolean var1);
-
- protected native void setValue(String var1);
-
- protected native void click();
-
- protected native String getOnClick();
-
- protected native void setOnClick(String var1);
- }
-