| Package | org.spicefactory.parsley.core.state |
| Interface | public interface ChildContextObserver |
| Property | Defined By | ||
|---|---|---|---|
| view : DisplayObject [read-only]
The view where this observer waits for the first child Context. | ChildContextObserver | ||
| Method | Defined 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 | ||
| view | property |
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.
public function get view():DisplayObject| cancel | () | method |
public function cancel():voidCancels the observers, discarding any callbacks added previously.
| timeout | () | method |
public function timeout(timeout:uint, callback:Function = null):voidSets 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
|