| Field Summary | |
|---|---|
| static String | CSS color property
|
| static String | jsx30textbox
|
| static String | as needed by content
|
| static String | none
|
| static String | persistent scrollbars
|
| static int | password type 2 |
| static int | texbox type 0 |
| static int | text area type 1 |
| static String | email |
| static String | letter |
| static String | none |
| static String | numbers only |
| static String | telephone |
| static String | us ssn |
| static String | uszip |
| static int | no wrap |
| static int | wrap text (default) |
| Constructor Summary | |
|---|---|
| void | init(strName : String, vntLeft : int | String, vntTop : int | String, vntWidth : int | String, vntHeight : int | String, strValue : String, TYPE : String) instance initializer |
| Method Summary | |
|---|---|
| void | beep() call to designate an error or alert the user's attention to the textbox on-screen. |
| boolean | Validates the text box against its validation type. |
| protected String | formatValue(value : Object) Formats the value of this text box before displaying it in the onscreen input box. |
| String | Returns value of textbox object when it was first initialized. |
| int | if TYPE for the object is jsx3.gui.TextBox.TYPETEXT, and this returns a positive integer, the maxlen property for the textbox will be set to this value; returns null if no value found |
| int | Returns whether this text box is read only. |
| Array<int> | Returns the current selection of this text box. |
| int | getType() Returns the type of TextBox. |
| String | Returns the custom validation expression (a regular expression pattern to match). |
| String | Returns the ID (CONSTANT) for one of the pre-canned regular expression filters that can be used to validate the user's response. |
| String | getValue() logically tries to determine the value for the text box by 1) checking for value of on-screen VIEW; 2) checking for 'value' property for in-memory MODEL 3) checking getDefaultValue() for value when object was first initialized. |
| static String | Deprecated. |
| String | getWrap() Returns the text-wrapping/ word-breaking property for object if object type is jsx3.gui.TextBox.TYPETEXTAREA. |
| String | paint() Returns the DHTML, used for this object's on-screen view. |
| protected Object | parseValue(input : String) Parses the value of the onscreen input box before it is used as the value of the text box. |
| jsx3.gui.TextBox | setDefaultValue(strValue : String) set during object initialization; useful for tracking edits/updates to an object by doing a string comparison between getValue() and getDefaultValue();
returns a reference to self to facilitate method chaining |
| jsx3.gui.TextBox | setMaxLength(intMaxLength : int) if TYPE for the object is jsx3.gui.TextBox.TYPETEXT, setting this to a positive integer affects the maxlen property for the textbox;
returns a reference to self to facilitate method chaining |
| jsx3.gui.TextBox | setOverflow(OVERFLOW : String) Sets the overflow property of this object, which defines how its on-screen view will behave when its contents
are larger than its specified width and/or height. |
| void | setReadonly(val : int) Sets whether this text box is read only. |
| void | Sets the current selection of this text box. |
| jsx3.gui.TextBox | Sets the type of jsx3.gui.TextBox
returns a reference to self to facilitate method chaining |
| jsx3.gui.TextBox | setValidationExpression(strValidationExpression : String) Sets the custom validation expression (a regular expression pattern to match). |
| jsx3.gui.TextBox | setValidationType(VALIDATIONTYPE : String) when set, applies one of the pre-canned regular expression filters that can be used to validate the user's response;
returns a reference to self to facilitate method chaining. |
| jsx3.gui.TextBox | updates value property for both on-screen VIEW (if object is painted) and in-memory MODEL;
returns a reference to self to facilitate method chaining |
| jsx3.gui.TextBox | Sets the text-wrapping/ word-breaking property for object if object type is jsx3.gui.TextBox.TYPETEXTAREA. |
| Methods Inherited From jsx3.gui.Form |
|---|
| doKeyBinding, doReset, getDisabledBackgroundColor, getDisabledColor, getEnabled, getKeyBinding, getRequired, getValidationState, setDisabledBackgroundColor, setDisabledColor, setEnabled, setKeyBinding, setRequired, setValidationState |
| Methods Inherited From jsx3.gui.Interactive |
|---|
| doEvent, getCanDrag, getCanDrop, getCanMove, getCanSpy, getEvent, getEvents, getMenu, hasEvent, registerHotKey, removeEvent, removeEvents, setCanDrag, setCanDrop, setCanMove, setCanSpy, setEvent, setMenu, setSpyStyles, showSpy |
| Methods Inherited From jsx3.gui.Painted |
|---|
| focus, getAbsolutePosition, getAttribute, getAttributes, getRendered, insertHTML, onAfterPaint, onAfterRestoreView, paintChild, paintChildren, recalcBox, removeAttribute, removeAttributes, repaint, setAttribute |
| Methods Inherited From jsx3.util.EventDispatcher |
|---|
| publish, subscribe, unsubscribe, unsubscribeAll |
| Methods Inherited From jsx3.lang.Object |
|---|
| clone, equals, eval, getClass, getInstanceOf, getInstanceOfClass, getInstanceOfPackage, instanceOf, isInstanceOf, isSubclassOf, jsxmix, jsxsuper, jsxsupermix, setInstanceOf |
| Field Detail |
|---|
| Constructor Detail |
|---|
| Method Detail |
|---|
re, the following
expression must evaluate to true: this.getValue().search(re) == 0.
String.search() may behave differently than RegExp.test(); consult the JavaScript
documentation for more information.
null value returns the empty string.true) or 0.
[startIndex, endIndex] TYPETEXTAREA.OVERFLOWNORMAL, OVERFLOWAUTO, or OVERFLOWSCROLL.true) or 0.