Function
A base widget to "run" a task on an event or a topic
This widget represents a controller task to be run when an event (a function) or a topic is issued. Sub-classes must implement _run() method to implement their tasks. 'trigger' specifies an event scope, an ID of a widget or an DOM element, or its property with the optional dotted notation. If this widget has child ActionFilter widgets, their filter() methods are called with the arguments to the event or the topic. If one of filter() methods returns false, run() won't be invoked. This widget also can serve as a composite task to run child Actions on an event or a topic specified to this widget.
An
event scope
An
event (function) name
A
topic name
Function
Call _connect()
See _connect().
Function
Connect run() method to an event or a topic
If 'triggerEvent' and 'trigger' are specified, connect() is used to set up run() to be called on the event. If 'triggerTopic' is specified, subscribe() is used to set up run() to be called on the topic.
Function
Disconnect run() method from an event or a topic
If 'triggerEvent' and 'trigger' are specified, disconnect() is used to set up run() not to be called on the event. If 'triggerTopic' is specified, unsubscribe() is used to set up run() not to be called on the topic.
Function
Run a task
This method calls filter() method of child ActionFilter widgets. If one of them returns false, this method returns. Otherwise, _run() method is called.
Function
Call run() methods of child Action widgets
If this widget has child Action widgets, their run() methods are called.
Function
Over-ride of base widget unitialize function to do some connection cleanup.
Function
A widget to define a filter for the parent Action to run
This base class checks a required property specified with 'required' attribute. If 'message' is specified, the message is set to a property specified with 'error'. Subclasses may implement their own filter() method.
A
property required
Optional.
A specific value the property is required to have. If this isn't provided than any non-false/non-null value of the required propery will cause this filter to pass.
Optional.
A specific type to compare the values as (if requiredValue is set) Valid values for type are boolean, int, string. Default is string.
An
error message to emit if the filter doesn't execute due to property mismatch.
A
property to store an error due to property mismatch.
Function
Check if a required property is specified. Also, if provided, check to see if the required property contains a specific value.
If a value is undefined for a property, specified with 'required', this method returns false. If the value for a property is defined, but there isn't a requiredValue for it then any non-false value will cause the method to return true. if requiredValue is set, then filter compares that value with the value from the required property and returns true if and only if they match. The type option just allows for a way to convert the required property values into a proper form for comparison (boolean, number, etc). If 'message' is specified, it is set to a proeprty specified with 'error' or shown with alert(). If 'required' starts with "arguments", a property of the method arguments are checked.
True if a required property is specified (and if requiredValue is specified, that they match), otherwise false
Boolean|boolean
Object
Object
Object