ActivitySequenceElement
Source: ActivitySequenceElement.js:49
This class is the basic component of ActivitySequence objects. It represents a specific
point in the project's sequence of JClic activities.
For each point of the sequence, some options can be set:
- What activity must run at this point
- What to do or where to jump when the activity finishes
- The behavior of the "next" button
- The behavior of the "prev" button
Sequence points can also have a "tag", used to refer to them with a unique name.
Constructor
new ActivitySequenceElement(): ActivitySequenceElementInstance Methods
setProperties($xml: external:jQuery)
Loads the object settings from a specific JQuery XML element
Parameters
$xml(external:jQuery)
getAttributes(): object
Gets a object with the basic attributes needed to rebuild this instance excluding functions,
parent references, constants and also attributes retaining the default value.
The resulting object is commonly usued to serialize elements in JSON format.
Returns
object
setAttributes(data: object)
Loads sequence element settings from a data object
Parameters
data(object)
Instance Fields
tag: string
Optional unique identifier of this element in the ActivitySequence.
description: string
Optional description of this sequence element.
activity: string
Name of the Activity pointed by this element.
fwdJump: module:bags/ActivitySequenceJump.ActivitySequenceJump
Jump to be processed by the 'next' button action
backJump: module:bags/ActivitySequenceJump.ActivitySequenceJump
Jump to be processed by the 'prev' button action.
navButtons: string
What buttons should be active at this point of the sequence. Valid values are:
- 'none'
- 'fwd'
- 'back'
- 'both'
delay: number
Time delay (in seconds) before passing to the next/prev activity