Class OptionBox
Object
|
+--MoreMotionObject
|
+--ProcessField
|
+--OptionBox
- class
OptionBox
- extends ProcessField
This class wraps a container element that includes two or more HTML Input ("radio") Elements
and manages it as an input field. The container element can be any HTML DOM element that can contain
form input elements. i.e. DIV or TABLE
<div mo:type="OptionBox" mo:name="GENDER" mo:value="F"
mo:props="nonBlank:true, warnColor:'Red'" >
<input type="radio" value="M" />
<input type="radio" value="F" />
</div>
The container element should contain one INPUT type="radio" element for each choice.
Defined in OptionBox.js
|
Field Summary |
Array |
options
Array that keeps the references to the wrapped HTML Input ("radio") Elements |
|
Method Summary |
void
|
clear()
Clears the checked option and sets the value to blank
|
String
|
getValue()
Returns the value of this field object
|
void
|
init()
|
void
|
selectOption()
Sets the value of this field object to the value of the selected radio button.
|
void
|
setRecordNumber()
|
void
|
setValue(value)
Sets the value of this field object and checks the
radio button whose value is equal to the specified value.
|
Object
|
validate()
Validates this field object
|
| Methods inherited from class ProcessField |
getCaption, reset, setModified, isModified, getRecord, appendRequestParams, focusTab, notify, notifyEx, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue
|
options
Array options
Array that keeps the references to the wrapped HTML Input ("radio") Elements
OptionBox
OptionBox(node)
clear
void clear()
Clears the checked option and sets the value to blank
getValue
String getValue()
Returns the value of this field object
init
void init()
selectOption
void selectOption()
Sets the value of this field object to the value of the selected radio button.
This method should be called by the onclick event procedures of all the radio button elements.
setRecordNumber
void setRecordNumber()
setValue
void setValue(value)
Sets the value of this field object and checks the
radio button whose value is equal to the specified value.
Parameters:
value - The value to set. It must be equal to the value of one of the radio buttons wrapped by this field object.
validate
Object validate()
Validates this field object
Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by
JSDoc on Thu Mar 3 18:19:14 2011