MoreMotion Face API

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
   
Fields inherited from class ProcessField
props, elm, needsValueCloning
   
Fields inherited from class MoreMotionObject
node, name, type, props
 
Constructor Summary
OptionBox(node)
           
 
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
   
Methods inherited from class MoreMotionObject
saveProps, setProp, boolProp, numberProp, charProp, getIValue, setIValue, runHandler
 

Field Detail

options

Array options

Constructor Detail

OptionBox

OptionBox(node)

Method Detail

clear

void clear()

getValue

String getValue()

init

void init()

selectOption

void selectOption()

setRecordNumber

void setRecordNumber()

setValue

void setValue(value)

validate

Object validate()

MoreMotion Face API

Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by JSDoc on Thu Mar 3 18:19:14 2011