|
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 | |
boolean |
isProcessBlock
|
Object |
props
ProcessBlock Properties Object. |
Fields inherited from class MoreMotionObject |
node, name, type, isMoreMotionObject, props
|
Constructor Summary | |
ProcessBlock(node)
|
Method Summary | |
ProcessRecord
|
addRecord()
Creates a new Process Record and appends it at the bottom of the block. |
void
|
base(node)
|
void
|
clear()
Clears the values of all the Process Fields existing in this Process Block |
ProcessRecord
|
copyRecord(fromRecordNumber, beforeRecordNumber)
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
|
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)
Checkes 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
|
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. |
boolean
|
validate(acc)
Validates the Process Fields existing in this Process Block. |
Methods inherited from class MoreMotionObject |
saveProps, boolProp, numberProp, charProp, getIValue, setIValue
|
Field Detail |
boolean isProcessBlock
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()
void base(node)
node
- the DOM Element node that is wrapped by this object
void clear()
ProcessRecord copyRecord(fromRecordNumber, beforeRecordNumber)
fromRecordNumber
parameter is copied
before the record identified by toRecordNumber
parameter.fromRecordNumber
- The number of the source record
beforeRecordNumber
- The number of record that the new record is copied before it. If this parameter is omitted the new record is appended at the block.
ProcessRecord getFirstRecord()
ProcessForm getForm()
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 setRecordNumbers(fields)
fields
- The names of the Process Fields separated with commas.
void setWarnColor()
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 |