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
| Methods inherited from class ProcessField |
clear, reset, setModified, isModified, getRecord, focusTab, notify, notifyEx, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue
|
ComboEditBox
ComboEditBox(node)
_setValue
void _setValue(value, text)
appendRequestParams
void appendRequestParams(acc,prefix)
Appends the request parameters and their values to the given request parameter accumulator.
This method is called prior to the submit of the request either with Ajax or with regular Http.
Depending on the type of the process field one or more request parameters can be appended to the parameter accumulator.
Parameters:
prefix - The prefix to be put in front of the parameter name(s)
changed
void changed()
checkValue
void checkValue()
createDropDown
Object createDropDown()
getCaption
Object getCaption()
Returns the caption of this field
getProcessFieldNames
Object getProcessFieldNames(seperator)
getValue
Object getValue()
Returns the value of this field
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)
Sets the value of this field.
Parameters:
value - The value to set to the field.
validate
Boolean validate()
wrapElements
void wrapElements()
Copyright 2002 - 2011, MOR YAZILIM
Documentation generated by
JSDoc on Thu Mar 3 18:19:14 2011