qnx.events.WindowObjectClearedEvent

WindowObjectClearedEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class WindowObjectClearedEvent
InheritanceWindowObjectClearedEvent Inheritance flash.events.Event

A 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.


Class information:
BlackBerry 10 Version:   10.0.0

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  script : String
The optional scripts to inject.
WindowObjectClearedEvent

Public Methods

 MethodDefined 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

Public Constants

 ConstantDefined By
  WINDOW_OBJECT_CLEARED : String = windowObjectCleared
[static] Signals that the Window object has been cleared and that scripts may now be optinally injected.
WindowObjectClearedEvent

Property Detail

script


script:String

The optional scripts to inject.


Implementation

public function get script():String
public function set script(value:String):void

Constructor Detail

WindowObjectClearedEvent()


public function WindowObjectClearedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, script:String = null)

Creates an WindowObjectClearedEvent object.

Parameters

type:String
bubbles:Boolean (default = false)
cancelable:Boolean (default = false)
script:String (default = null)

Method Detail

clone()


override public function clone():Event

Duplicates 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.

Returns

Event

toString()


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

Returns

String

Constant Detail

WINDOW_OBJECT_CLEARED


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.





comments powered by Disqus