| Package | qnx.events |
| Class | public class WindowObjectClearedEvent |
| Inheritance | WindowObjectClearedEvent flash.events.Event |
QNXStageWebView object dispatches a WindowObjectClearedEvent object when
the window object is initialized, but before the page is loaded to allow scripts
to be injected.
There is only one type of WindowObjectClearedEvent:
WindowObjectClearedEvent.WINDOW_OBJECT_CLEARED: dispatched after the object is cleared.See also
| Property | Defined By | ||
|---|---|---|---|
| script : String
The optional scripts to inject. | WindowObjectClearedEvent | ||
| Method | Defined By | ||
|---|---|---|---|
WindowObjectClearedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, script:String = null)
Creates an WindowObjectClearedEvent object. | WindowObjectClearedEvent | ||
clone():Event [override]
Duplicates an instance of an Event subclass. | WindowObjectClearedEvent | ||
toString():String [override]
Returns a string that contains all the properties of the WindowObjectClearedEvent object. | WindowObjectClearedEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| WINDOW_OBJECT_CLEARED : String = windowObjectCleared [static]
Signals that the Window object has been cleared and that scripts may now be
optinally injected. | WindowObjectClearedEvent | ||
| script | property |
script:StringThe optional scripts to inject.
public function get script():String public function set script(value:String):void| WindowObjectClearedEvent | () | Constructor |
public function WindowObjectClearedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, script:String = null)
Creates an WindowObjectClearedEvent object.
type:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = false) | |
script:String (default = null) |
| clone | () | method |
override public function clone():EventDuplicates an instance of an Event subclass.
Returns a new Event object that is a copy of the original instance of the Event object.
You do not normally call clone(); the EventDispatcher class calls it automatically
when you redispatch an event—that is, when you call dispatchEvent(event) from a handler
that is handling event.
The new Event object includes all the properties of the original.
When creating your own custom Event class, you must override the
inherited Event.clone() method in order for it to duplicate the
properties of your custom class. If you do not set all the properties that you add
in your event subclass, those properties will not have the correct values when listeners
handle the redispatched event.
Event |
| toString | () | method |
override public function toString():String
Returns a string that contains all the properties of the WindowObjectClearedEvent object.
The string is in the following format:
[WindowObjectClearedEvent type=value bubbles=value
cancelable=value eventPhase=value script=value
String |
| WINDOW_OBJECT_CLEARED | Constant |
public static const WINDOW_OBJECT_CLEARED:String = windowObjectCleared
Signals that the Window object has been cleared and that scripts may now be
optinally injected. Set the scripts property to the javascript that should be
injected and optionally executed.