|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MoreMotionObject
|
+--ProcessBlock
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
| 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 |
Object props
| recordManip | The flag that specifies that the process records of this block can be manipulated (add, remove, clone, etc). Please note that record manipulation also requires an additional record in the block to be used as the template. When this flag is true and when this object is initialized it locates the first record in the block and makes it invisible to use it as a template. |
| selectionColor | The code of a color to use to mark the selected process records of this block |
| warnColor | The code of a color to use to mark the whole process block background along with a warning such as "No record is selected". |
| Constructor Detail |
ProcessBlock(node)
| Method Detail |
ProcessRecord addRecord()
ProcessRecord addRecordBefore(beforeRecordNumber)
beforeRecordNumber - The number of the record to insert before it
void clear()
ProcessRecord copyRecord(fromRecordNumber, before)
fromRecordNumber parameter is copied
before the record identified by toRecordNumber parameter.fromRecordNumber - The number of the source record. If this paremeter is null then source is an empty record.
before - Can be a record number or a ProcessRecord. The new record is copied before it.
ProcessRecord getFirstRecord()
ProcessForm getForm()
ProcessRecord getLastRecord()
ProcessRecord getRecord(index)
index - The index number of the ProcessRecord
ProcessRecordIterator getRecordIterator()
Object hasInnerPB()
void processAllSelections(check)
check - Boolean value: true or false
void removeAllRecords()
void removeWarnColor()
void reset()
void setRecordNumbers(fields)
fields - The names of the Process Fields separated with commas.
void setWarnColor()
void sort(fieldName, sdir, type)
fieldName - The name of the process field to sort
sdir - Either a string that contains the sort direction or a DOM Node to cache and automatize it. Valid values for the sort direction are 'a' for ascending and 'd' for descending
type - The compare type for field values. Valid values are 'n' for number, 's' for string
Boolean validate(acc)
true if all the fields are validates false otherwise.
|
MoreMotion Face API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||