bags/ActivitySequenceElement. ActivitySequenceElement

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

Members

activity :string

Name of the Activity pointed by this element.

Type:
  • string

backJump :module:bags/ActivitySequenceJump.ActivitySequenceJump

Jump to be processed by the 'prev' button action.

delay :number

Time delay (in seconds) before passing to the next/prev activity

Type:
  • number

description :string

Optional description of this sequence element.

Type:
  • string

fwdJump :module:bags/ActivitySequenceJump.ActivitySequenceJump

Jump to be processed by the 'next' button action

What buttons should be active at this point of the sequence. Valid values are:

  • 'none'
  • 'fwd'
  • 'back'
  • 'both'
Type:
  • string

tag :string

Optional unique identifier of this element in the ActivitySequence.

Type:
  • string

Methods

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:
  • The resulting object, with minimal attrributes
Type: 
object

setAttributes(data)

Loads sequence element settings from a data object

Parameters:
NameTypeDescription
dataobject

setProperties($xml)

Loads the object settings from a specific JQuery XML element

Parameters:
NameTypeDescription
$xmlexternal:jQuery