Packageorg.spicefactory.parsley.core.state
Interfacepublic interface ChildContextObserver

Represents a single observer that waits for the configuration or initialization of the first child Context in a view.



Public Properties
 PropertyDefined By
  view : DisplayObject
[read-only] The view where this observer waits for the first child Context.
ChildContextObserver
Public Methods
 MethodDefined By
  
cancel():void
Cancels the observers, discarding any callbacks added previously.
ChildContextObserver
  
timeout(timeout:uint, callback:Function = null):void
Sets a timeout and an optional callback for this observer.
ChildContextObserver
Property Detail
viewproperty
view:DisplayObject  [read-only]

The view where this observer waits for the first child Context. The child Context may get created anywhere in the view hierarchy below, not necessarily immediately in this specified view.


Implementation
    public function get view():DisplayObject
Method Detail
cancel()method
public function cancel():void

Cancels the observers, discarding any callbacks added previously.

timeout()method 
public function timeout(timeout:uint, callback:Function = null):void

Sets a timeout and an optional callback for this observer. The callback function must accept a single parameter of type DisplayObject (or a concrete subclass that was used when creating this observer).

Parameters

timeout:uint — the timeout in milliseconds after which observing the first child Context in the view should be aborted
 
callback:Function (default = null) — the callback to invoke once a timeout occurs