MoreMotion Face API

Class ComboEditBox

Object
   |
   +--MoreMotionObject
         |
         +--ProcessField
               |
               +--ComboEditBox

class ComboEditBox
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:field="true" mo:name="GENDER" mo:needsInit="true"
   mo:props="nonBlank:true, warnColor:'Red'" class="c3" mo:value="F" >

   <input type="radio" value="M" onclick="PMgr.selectOption(this)" name="_x"/>
   <input type="radio" value="F" onclick="PMgr.selectOption(this)" name="_x"/>
   <input type="hidden" name="pf_GENDER">

 </div> 
The container element should contain a INPUT type="hidden" element whose name attribute has a prefix "pf_" to indicate that it is a Process Field. The values of the name attributes of the INPUT type="radio" elements must be identical so that they act as a group.
Defined in ComboEditBox.js


 
Fields inherited from class ProcessField
props, elm, needsValueCloning
   
Fields inherited from class MoreMotionObject
node, name, type, props
 
Constructor Summary
ComboEditBox(node)
           
 
Method Summary
 void _setValue(value, text)
          
 void appendRequestParams(acc,prefix)
           Appends the request parameters and their values to the given request parameter accumulator.
 void changed()
          
 void checkValue()
          
 Object createDropDown()
          
 Object getCaption()
           Returns the caption of this field
 Object getProcessFieldNames(seperator)
          
 Object getValue()
           Returns the value of this field
 void init()
          
 void onClick()
          
 void onKeyDown(arrowKey)
          
 void refreshOptions(response, valueNode, optionNode, staticOptionsQty)
          
 void selectItemByText(text)
          
 void selectItemByValue(value)
          
 void selectTheFirst()
          
 void setValue(value)
           Sets the value of this field.
 Boolean validate()
           Validates this Process Field with the built-in validation methods that are applicable to the type of the Process Field.
 void wrapElements()
          
 
Methods inherited from class ProcessField
clear, reset, setModified, isModified, getRecord, focusTab, notify, notifyEx, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue
   
Methods inherited from class MoreMotionObject
saveProps, setProp, boolProp, numberProp, charProp, getIValue, setIValue, runHandler
 

Constructor Detail

ComboEditBox

ComboEditBox(node)

Method Detail

_setValue

void _setValue(value, text)

appendRequestParams

void appendRequestParams(acc,prefix)

changed

void changed()

checkValue

void checkValue()

createDropDown

Object createDropDown()

getCaption

Object getCaption()

getProcessFieldNames

Object getProcessFieldNames(seperator)

getValue

Object getValue()

init

void init()

onClick

void onClick()

onKeyDown

void onKeyDown(arrowKey)

refreshOptions

void refreshOptions(response, valueNode, optionNode, staticOptionsQty)

selectItemByText

void selectItemByText(text)

selectItemByValue

void selectItemByValue(value)

selectTheFirst

void selectTheFirst()

setValue

void setValue(value)

validate

Boolean validate()

wrapElements

void wrapElements()

MoreMotion Face API

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