MoreMotion Face API

Class ProcessRecord

Object
   |
   +--MoreMotionObject
         |
         +--ProcessRecord

class ProcessRecord
extends MoreMotionObject


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 type="hidden" name="px_recstat" />
     <input type="checkbox" mo:type="SelectionBox" />

     <input name="NAME" type="text" mo:type="EditBox" />
   </td> 
 </tr>
 
Optionally a process record may contain a INPUT type="checkbox" mo:type="SelectionBox" element 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


 
Fields inherited from class MoreMotionObject
node, name, type, props
 
Constructor Summary
ProcessRecord(node)
           
 
Method Summary
 void checkRecord(checked, color)
           Checks or unchecks this ProcessRecord
 Object clear(silent)
           Clears the Process Fields contained in this Process Record
 ProcessRecord clone()
           Clones this ProcessRecord and returns it
 void copyFieldsFrom(fr,includes,excludes)
           Copies the values of the all or the specified fields of the source process record to this record.
 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.
 String[] getFieldValues(fnames)
           Returns the values of the given fields as a string array.
 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
 Number 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
 DOMNode getRecordStatusElement()
          
 HTML_TR_Element getRowNode()
           Returns the HTML TR Element node that encloses this Process Record.
 DOMNode getSelectionElement()
          
 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 moveBefore(beforeRecord)
           Moves this ProcessRecord before the given process record
 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
 Object reset()
           Resets the Process Fields contained in this Process Record
 void setFieldValues(fnames,fvalues)
           Sets the values of the given fields.
 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, setProp, boolProp, numberProp, charProp, getIValue, setIValue, runHandler
 

Constructor Detail

ProcessRecord

ProcessRecord(node)

Method Detail

checkRecord

void checkRecord(checked, color)

clear

Object clear(silent)

clone

ProcessRecord clone()

copyFieldsFrom

void copyFieldsFrom(fr,includes,excludes)

getBlock

ProcessBlock getBlock()

getField

ProcessField getField(name)

getFields

ProcessField[] getFields()

getFieldValues

String[] getFieldValues(fnames)

getInnerBlock

ProcessBlock getInnerBlock(blockName)

getNext

ProcessRecord getNext()

getPrevious

ProcessRecord getPrevious()

getRecordIndex

Number getRecordIndex()

getRecordIterator

ProcessRecordIterator getRecordIterator()

getRecordStatus

RecordStatus getRecordStatus()

getRecordStatusElement

DOMNode getRecordStatusElement()

getRowNode

HTML_TR_Element getRowNode()

getSelectionElement

DOMNode getSelectionElement()

isModified

Boolean isModified()

isSelected

Boolean isSelected()

isVisible

Boolean isVisible()

moveBefore

ProcessRecord moveBefore(beforeRecord)

moveBottom

ProcessRecord moveBottom()

moveDown

ProcessRecord moveDown()

moveTop

ProcessRecord moveTop()

moveUp

ProcessRecord moveUp()

remove

void remove()

reset

Object reset()

setFieldValues

void setFieldValues(fnames,fvalues)

setModified

void setModified(fieldName,modified)

setUnModified

void setUnModified(fieldName)

setVisible

void setVisible(value)

validate

Boolean validate(acc)

MoreMotion Face API

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