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 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

isProcessRecord

boolean isProcessRecord

Constructor Detail

ProcessRecord

ProcessRecord(node)

Method Detail

base

void base(node)

checkRecord

void checkRecord(checked, color)

clear

Object clear()

clone

ProcessRecord clone()

getBlock

ProcessBlock getBlock()

getField

ProcessField getField(name)

getFields

ProcessField[] getFields()

getInnerBlock

ProcessBlock getInnerBlock(blockName)

getNext

ProcessRecord getNext()

getPrevious

ProcessRecord getPrevious()

getRecordIndex

integer getRecordIndex()

getRecordIterator

ProcessRecordIterator getRecordIterator()

getRecordStatus

RecordStatus getRecordStatus()

getRowNode

HTML_TR_Element getRowNode()

isModified

boolean isModified()

isSelected

boolean isSelected()

isVisible

boolean isVisible()

moveBottom

ProcessRecord moveBottom()

moveDown

ProcessRecord moveDown()

moveTop

ProcessRecord moveTop()

moveUp

ProcessRecord moveUp()

remove

void remove()

setModified

void setModified(fieldName,modified)

setUnModified

void setUnModified(fieldName)

setVisible

void setVisible(value)

validate

boolean validate(acc)

MoreMotion Face API

Copyright 2002 - 2008, MOR YAZILIM
Documentation generated by JSDoc on Mon Sep 29 14:52:55 2008