// args from parent if ( parent['password'] != null ) args.password = parent.password; parent._field = this; super.construct( parent, args ); if (parent['onfocus']) parent.onfocus.sendEvent(s); if (parent['onblur']) parent.onblur.sendEvent(s); if (! this.ignorecallup) { parent.setValue(this.getText(),false,true); } this.ignorecallup = false; var fx = parent.getAttributeRelative('x',canvas); var fy = parent.getAttributeRelative('y',canvas); var fw = parent.getAttributeRelative('width',canvas); var fh = parent.getAttributeRelative('height',canvas); return [fx,fy,fw,fh]; if ( parent['getPrevSelection'] ) return parent.getPrevSelection() return null; // default tab order occurs if ( parent['getNextSelection'] ) return parent.getNextSelection() return null; // default tab order occurs super.setAttribute('height', h); this._initialtexty = (!this._initcomplete); if (this._initcomplete) this._placeTextY() this.multiline = newMultiline; if (this._initcomplete) { this._field.setAttribute('multiline', newMultiline); this._placeTextY(); } if (this._field) { if (this.multiline) { this._field.setAttribute('y', 2); } else { this._field.setAttribute('y', (this.height - this._field.fontsize) / 2 - 3 ); } } this.setValue(t,isinitvalue); this.setValue('', isinitvalue); this.setAttribute('maxlength', n); this._field.setMaxlength(n); this._field.setSelection(start, end); return this._field.getSelectionPosition(); return this._field.getSelectionSize(); this.setAttribute('pattern', r); this._field.setAttribute('pattern', r); if (this._initcomplete) { return (this._field ? this._field.getText() : ""); } else { return this._initialtext; } if (this._initcomplete) { return (this._field ? this._field.getText() : ""); } else { return this._initialtext; } this._field.setAttribute('enabled', this._enabled); if (this.style != null) { if (this.bgcolor) { this._field.setAttribute('bgcolor',s.textfieldcolor); } if (this['_face']) { this._face.setAttribute('bgcolor',s.textfieldcolor); } }