Packageorg.spicefactory.parsley.comobserver.receiver
Classpublic class CommandStatusFlag
InheritanceCommandStatusFlag Inheritance AbstractPropertyReceiver Inheritance AbstractObjectProviderReceiver Inheritance AbstractMessageReceiver Inheritance Object
Implements CommandObserver

A message target where a property value serves as a flag for indicating whether there is at least one active command matching the specified message type and selector.



Public Properties
 PropertyDefined By
  kind : MessageReceiverKind
[read-only] The status this observer is interested in.
CommandStatusFlag
 Inheritedorder : int
[read-only] The execution order for this receiver.
AbstractMessageReceiver
 Inheritedprovider : ObjectProvider
[read-only] The provider for the actual instance handling the message.
AbstractObjectProviderReceiver
 Inheritedselector : *
[read-only] An optional selector value to be used for selecting matching messages.
AbstractMessageReceiver
 InheritedtargetProperty : Property
[read-only] The property to process for matching messages.
AbstractPropertyReceiver
 Inheritedtype : Class
[read-only] The class or interface of the message.
AbstractMessageReceiver
Protected Properties
 PropertyDefined By
 Inheritedinfo : MessageReceiverInfo
[read-only] The receiver configuration in one (mutable) model object.
AbstractMessageReceiver
Public Methods
 MethodDefined By
  
Creates a new instance.
CommandStatusFlag
 Inherited
init(provider:ObjectProvider, property:Property):void
Initializes this receiver, passing the target object provider and property.
AbstractPropertyReceiver
  
Invoked when a matching command starts or finishes its execution.
CommandStatusFlag
 Inherited
toString():String
AbstractPropertyReceiver
Protected Methods
 MethodDefined By
 Inherited
Sets the provider for target instances for this receiver.
AbstractObjectProviderReceiver
Property Detail
kindproperty
kind:MessageReceiverKind  [read-only]

The status this observer is interested in.


Implementation
    public function get kind():MessageReceiverKind
Constructor Detail
CommandStatusFlag()Constructor
public function CommandStatusFlag(info:MessageReceiverInfo, kind:MessageReceiverKind, manager:CommandManager)

Creates a new instance.

Parameters
info:MessageReceiverInfo — the mapping information for this receiver
 
kind:MessageReceiverKind — the phase of the command lifecycle this status flag reacts to
 
manager:CommandManager — the command manager to look up matching active commands
Method Detail
observeCommand()method
public function observeCommand(processor:CommandObserverProcessor):void

Invoked when a matching command starts or finishes its execution. The specified processor may be used to control the processing of remaining observers, like canceling or suspending the processor.

Parameters

processor:CommandObserverProcessor — the processor for the command observer