|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--MoreMotionObject | +--ProcessRecord
Represents a Process Record. This class wraps a container DOM element that can contain child DOM nodes.
Although there is no restriction in the type of the DOM element, for the repeating process records TR
element is probably the most suitable one.
A Process record should be in a ProcessBlock and may contain one or more ProcessField objects.
<tr mo:type="ProcessRecord" >
<td>
<input name="__selection" type="checkbox" value="checked" onclick="PMgr.toggleSelection(this);">
</td>
<td>
<input name="pf_NAME" type="text" onchange="PMgr.fieldChanged(this);"
mo:type="EditBox" mo:field="true" mo:name="NAME" mo:iValue="" />
</td>
</tr>
Optionally a process record may contain a
INPUT type="checkbox"
element with name __selection
as the record selection element.
After using the remove(), clone(), moveBottom(), moveDown(),
moveTop(), moveUp() methods of this object you have to call
ProcessBlock.setRecordNumbers() method of the owner Process Block object if there are
Process Fields exists in the record that needs the record number e.g. CheckBox.
Defined in Process.js
Field Summary | |
boolean |
isProcessRecord
|
Fields inherited from class MoreMotionObject |
node, name, type, isMoreMotionObject, props
|
Constructor Summary | |
ProcessRecord(node)
|
Method Summary | |
void
|
base(node)
|
void
|
checkRecord(checked, color)
Checks or unchecks this ProcessRecord |
Object
|
clear()
Clears the Process Fields contained in this Process Record |
ProcessRecord
|
clone()
Clones this ProcessRecord and returns it |
ProcessBlock
|
getBlock()
Returns the Process Block that this Process Record resides in |
ProcessField
|
getField(name)
Returns the Process Field located in this ProcessRecord |
ProcessField[]
|
getFields()
Returns an Array of ProcessField objects contained in this record. |
ProcessBlock
|
getInnerBlock(blockName)
Returns the specified inner ProcessBlock object contained in this record. |
ProcessRecord
|
getNext()
Returns the next ProcessRecord |
ProcessRecord
|
getPrevious()
Returns the previous ProcessRecord |
integer
|
getRecordIndex()
Returns the index of this Process Record within the parent Process Block. |
ProcessRecordIterator
|
getRecordIterator()
Creates a ProcessRecordIterator, locates it to this record and returns it. |
RecordStatus
|
getRecordStatus()
Returns RecordStatus object for this record |
HTML_TR_Element
|
getRowNode()
Returns the HTML TR Element node that encloses this Process Record.
|
boolean
|
isModified()
Returns the modified status of this Process Record. |
boolean
|
isSelected()
Returns the selected status of this Process Record |
boolean
|
isVisible()
Returns true if this record is visible
|
ProcessRecord
|
moveBottom()
Moves this record to the bottom of the Process Block |
ProcessRecord
|
moveDown()
Moves this ProcessRecord after the next record |
ProcessRecord
|
moveTop()
Moves this ProcessRecord to the top of the ProcessBlock |
ProcessRecord
|
moveUp()
Moves this ProcessRecord before the previous record |
void
|
remove()
Removes this ProcessRecord |
void
|
setModified(fieldName,modified)
Sets the modified status of this Process Record to "modified". |
void
|
setUnModified(fieldName)
Sets the modified status of this Process Record to "unmodified". |
void
|
setVisible(value)
Sets the visibility of the record. |
boolean
|
validate(acc)
Validates the fields of this record and returns true if validation is
successful and false otherwise.
|
Methods inherited from class MoreMotionObject |
saveProps, boolProp, numberProp, charProp, getIValue, setIValue
|
Field Detail |
boolean isProcessRecord
Constructor Detail |
ProcessRecord(node)
node
- the DOM Element node that is wrapped by this objects
Method Detail |
void base(node)
node
- the DOM Element node that is wrapped by this object
void checkRecord(checked, color)
checked
- Boolean value: true or false
color
- The selection color
Object clear()
ProcessRecord clone()
ProcessBlock getBlock()
ProcessField getField(name)
name
- The name of the Process Field
ProcessField[] getFields()
ProcessBlock getInnerBlock(blockName)
ProcessRecord getNext()
ProcessRecord getPrevious()
integer getRecordIndex()
ProcessRecordIterator getRecordIterator()
RecordStatus getRecordStatus()
HTML_TR_Element getRowNode()
TR
Element node that encloses this Process Record.boolean isModified()
boolean isSelected()
boolean isVisible()
true
if this record is visibleProcessRecord moveBottom()
ProcessRecord moveDown()
ProcessRecord moveTop()
ProcessRecord moveUp()
void remove()
void setModified(fieldName,modified)
fieldName
- The name of the field that is modified.
modified
- Optional boolean parameter. If it contains false
then modified status of the record ise set to "unmodified".
void setUnModified(fieldName)
if fieldName
parameter is supplied, then only that field is removed
from the modified fields list. If after removing no field name remains in the
list then the modified status of this record becomes "unmodified".
fieldName
- The name of the field that is unmodified.
void setVisible(value)
value
- true
or false
boolean validate(acc)
true
if validation is
successful and false
otherwise.
|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |