MoreMotion Face API

Class ProcessBlock

Object
   |
   +--MoreMotionObject
         |
         +--ProcessBlock

class ProcessBlock
extends MoreMotionObject


Represents a Process Block. A Process Block may contain one or more ProcessRecord objects. This class wraps a container DOM element that can contain child DOM elements.


   <table mo:type="ProcessBlock" mo:name="customers" mo:props="warnColor:'#F5CAC0'" >
     ...
   </table>
 
The mo:name attribute of the element specifies the name of the process block
Defined in Process.js


Field Summary
 Object props
          ProcessBlock Properties Object.
   
Fields inherited from class MoreMotionObject
node, name, type, props
 
Constructor Summary
ProcessBlock(node)
           
 
Method Summary
 ProcessRecord addRecord()
           Creates a new Process Record and appends it at the bottom of the block.
 ProcessRecord addRecordBefore(beforeRecordNumber)
           Creates a new Process Record and inserts it before the given record number.
 void clear()
           Clears the values of all the Process Fields existing in this Process Block
 ProcessRecord copyRecord(fromRecordNumber, before)
           Copies the specified Process Record.
 ProcessRecord getFirstRecord()
           Returns the first Process Record of this block
 ProcessForm getForm()
           Returns the Process Form that this Process Block resides in.
 ProcessRecord getLastRecord()
           Returns the last Process Record of this block
 ProcessRecord getRecord(index)
           Returns the ProcessRecord object associated with the specified record index.
 ProcessRecordIterator getRecordIterator()
           Returns a ProcessRecordIterator object to iterate over the process records of this block.
 Object hasInnerPB()
          
 void processAllSelections(check)
           Checks or unchecks all the process records of this block.
 void removeAllRecords()
           Deletes all the ProcessRecords of this Process Block.
 void removeWarnColor()
           Removes all the marks from the Process Records.
 void reset()
           Resets the values of all the Process Fields existing in this Process Block
 void setRecordNumbers(fields)
           Loops over the records of this block and sets the record numbers of the specified ProcessFields existing in the ProcessRecords
 void setWarnColor()
           Sets a background color to all the Process Records in this Process Block to warn the user that no selection is made.
 void sort(fieldName, sdir, type)
           Sorts the record of this process block
 Boolean validate(acc)
           Validates the Process Fields existing in this Process Block.
 
Methods inherited from class MoreMotionObject
saveProps, setProp, boolProp, numberProp, charProp, getIValue, setIValue, runHandler
 

Field Detail

props

Object props

Constructor Detail

ProcessBlock

ProcessBlock(node)

Method Detail

addRecord

ProcessRecord addRecord()

addRecordBefore

ProcessRecord addRecordBefore(beforeRecordNumber)

clear

void clear()

copyRecord

ProcessRecord copyRecord(fromRecordNumber, before)

getFirstRecord

ProcessRecord getFirstRecord()

getForm

ProcessForm getForm()

getLastRecord

ProcessRecord getLastRecord()

getRecord

ProcessRecord getRecord(index)

getRecordIterator

ProcessRecordIterator getRecordIterator()

hasInnerPB

Object hasInnerPB()

processAllSelections

void processAllSelections(check)

removeAllRecords

void removeAllRecords()

removeWarnColor

void removeWarnColor()

reset

void reset()

setRecordNumbers

void setRecordNumbers(fields)

setWarnColor

void setWarnColor()

sort

void sort(fieldName, sdir, type)

validate

Boolean validate(acc)

MoreMotion Face API

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