Class: Callback

Callback

Callbacks defines events for sending data to subscribers. The data to be sent, are specified in the attributeTypeList.
Constructor: Initializes the AttributeTypeList.

Requires

  • module:easejs
  • module:ParameterList
  • module:AttributeType
  • module:AttributeTypeList

Members

privateattributeTypesAttributeTypeList

Associated Attributes that will be send to Subscriber.

privatenamestring

Name of the Callback (i.e. Update).

Methods

addAttributeType(_attributeType)

Adds an attribute to AttributeTypeList.
Name Type Description
_attributeType AttributeType AttributeType

abstractequals(_callback){boolean}

Compares this instance with the given one.
Name Type Description
_callback Callback Callback that should be compared
Returns the associated attributes (only the types).

getName(){string}

Returns the name.

removeAttributeType(_attributeType)

Removes an attribute from AttributeTypeList.
Name Type Description
_attributeType AttributeType AttributeType

setAttributeTypes(attributeTypes)

Adds a list of AttributeTypes.
Name Type Description
attributeTypes AttributeTypeList AttributeTypeList
Sets the name.
Name Type Description
_name string Name

withAttributeTypes(_attributeTypes){Callback}

Builder for AttributeTypes.
Name Type Description
_attributeTypes AttributeTypeList | Array attributeTypes
Builder for name.
Name Type Description
_name String Name