home *** CD-ROM | disk | FTP | other *** search
- public class JScriptTextObject extends JScriptAbstractControlObject {
- private static final int TEXT_ID_DEFAULTVALUE = 257;
- private static final int TEXT_ID_FOCUS = 258;
- private static final int TEXT_ID_BLUR = 259;
- private static final int TEXT_ID_SELECT = 260;
- private static final int TEXT_ID_ONBLUR = 261;
- private static final int TEXT_ID_ONFOCUS = 262;
- private static final int TEXT_ID_ONSELECT = 263;
- private static final int TEXT_ID_ONCHANGE = 264;
-
- public JScriptTextObject(long var1) {
- super(var1);
-
- try {
- ((JSbxObject)this).Put(new JSbxObjectProperty("defaultValue", this, this, 257, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("focus", this, this, 258, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("blur", this, this, 259, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("select", this, this, 260, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("onblur", this, this, 261, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("onfocus", this, this, 262, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("onselect", this, this, 263, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("onchange", this, this, 264, true));
- } catch (JSbxException var3) {
- }
- }
-
- public JSbxValue PropertyCallFunction(JSbxObjectProperty var1, JScriptCallParam var2) throws JSbxExceptionBase {
- int var3 = var1.GetID();
-
- try {
- switch (var3) {
- case 258:
- this.focus();
- break;
- case 259:
- this.blur();
- break;
- case 260:
- this.select();
- 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.getDefaultValue()));
- return;
- case 261:
- var2.Put(new JSbxValue(this.getOnBlur()));
- return;
- case 262:
- var2.Put(new JSbxValue(this.getOnFocus()));
- return;
- case 263:
- var2.Put(new JSbxValue(this.getOnSelect()));
- return;
- case 264:
- var2.Put(new JSbxValue(this.getOnChange()));
- 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 257:
- this.setDefaultValue(var2.GetString());
- return;
- case 261:
- this.setOnBlur(var2.GetString());
- return;
- case 262:
- this.setOnFocus(var2.GetString());
- return;
- case 263:
- this.setOnSelect(var2.GetString());
- return;
- case 264:
- this.setOnChange(var2.GetString());
- return;
- default:
- super.PropertyPut(var1, var2);
- }
- } catch (UnsatisfiedLinkError var4) {
- }
- }
-
- public String GetJScriptString(boolean var1) {
- return "text";
- }
-
- protected native String getDefaultValue();
-
- protected native void setDefaultValue(String var1);
-
- protected native void focus();
-
- protected native void blur();
-
- protected native void select();
-
- protected native String getOnBlur();
-
- protected native void setOnBlur(String var1);
-
- protected native String getOnChange();
-
- protected native void setOnChange(String var1);
-
- protected native String getOnFocus();
-
- protected native void setOnFocus(String var1);
-
- protected native String getOnSelect();
-
- protected native void setOnSelect(String var1);
- }
-