Class: WidgetDescription

WidgetDescription

The description of a Widget and the communication with it.

virtualnew WidgetDescription()

Constructor: Initializes the inAttributeTypes.

Requires

  • module:easejs
  • module:AttributeTypeList

Members

protectedcallbackNamesarray

Array of available callback names.

protectedidstring

Id of the Widget that are described by this object.

protectednamestring

Name of the Widget that are described by this object.

protectedoutAttributeTypesAttributeTypeList

List of attributeTypes that are provided.

Methods

addOutAttributeType(_outAttributeType)

Adds an outAttributeType to the list
Name Type Description
_outAttributeType AttributeType AttributeType that are provided

addOutAttributeTypes(_outAttributeTypes)

Adds outAttributeTypes that are provided by the Widget
Name Type Description
_outAttributeTypes AttributeTypeList | Array List of AttributeType that are provided

doesSatisfyAttributeType(_attributeType){boolean}

Returns true if the widget can satisfy the requested attribute type.
Name Type Description
_attributeType AttributeType
Returns the id of the described widget.
Returns the name of the described widget.
Returns outAttributeTypes of the widget.
Sets the id of the described widget.
Sets the name of the described widget.
Builder for id
Name Type Description
_id string Id of the Widget that are described by this object.

withInAttributeType(_outAttributeType){WidgetDescription}

Builder for outAttributeType
Name Type Description
_outAttributeType AttributeType AttributeType that are provided
Builder for name
Name Type Description
_name string Name of the Widget that are described by this object.

withOutAttributeTypes(_outAttributeTypes){WidgetDescription}

Builder for outAttributeType list
Name Type Description
_outAttributeTypes AttributeTypeList | Array List of AttributeType that are provided