qnx.events.OpenWindowEvent

OpenWindowEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class OpenWindowEvent
InheritanceOpenWindowEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches an OpenWindowEvent object when a new QNXStageWebView is opened. The URL property specifies the URL that the QNXStageWebView will load. The name property indicates the name for the window.

There is only one type of OpenWindowEvent:

  • OpenWindowEvent.OPEN_WINDOW: dispatched when the browser attempts to open a new window. This event can not be cancelled.


Class information:
BlackBerry 10 Version:   10.0.0

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  action : String
Returns the view that the URL was opened in, or null if it was not opened.
OpenWindowEvent
  name : String
Returns the name of the window.
OpenWindowEvent
  url : String
The URL that the newly opened window will point to.
OpenWindowEvent
  view : QNXStageWebView
Returns the view that the URL was opened in, or null if it was not opened.
OpenWindowEvent

Public Methods

 MethodDefined By
  
OpenWindowEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, url:String = null, name:String = null, view:QNXStageWebView = null, action:String = null)
Creates an OpenWindowEvent object.
OpenWindowEvent
  
clone():Event
[override] Duplicates an instance of an Event subclass.
OpenWindowEvent
  
toString():String
[override] Returns a String that contains all the properties of the OpenWindowEvent object.
OpenWindowEvent

Public Constants

 ConstantDefined By
  ACTION_CREATE : String = create
[static] Indicates that a new web view was created.
OpenWindowEvent
  ACTION_DISCARD : String = discard
[static] Indicates that the window open request is discarded.
OpenWindowEvent
  ACTION_RECYCLE : String = recycle
[static] Indicates that a web view is being recycled.
OpenWindowEvent
  OPEN_WINDOW : String = openWindow
[static] Dispatched when the browser requests that a new QNXStageWebView instance should be opened.
OpenWindowEvent

Property Detail

action


action:String

Returns the view that the URL was opened in, or null if it was not opened.


Implementation

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

name


name:String

Returns the name of the window. If the window is not already open, it should be created. If the window already exists, the URL of that window should be changed to the specified URL.


Implementation

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

url


url:String

The URL that the newly opened window will point to.


Implementation

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

view


view:QNXStageWebView

Returns the view that the URL was opened in, or null if it was not opened.


Implementation

public function get view():QNXStageWebView
public function set view(value:QNXStageWebView):void

Constructor Detail

OpenWindowEvent()


public function OpenWindowEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, url:String = null, name:String = null, view:QNXStageWebView = null, action:String = null)

Creates an OpenWindowEvent object.

Parameters

type:String
bubbles:Boolean (default = false)
cancelable:Boolean (default = false)
url:String (default = null)
name:String (default = null)
view:QNXStageWebView (default = null)
action: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 OpenWindowEvent object.

The String has the following format:

[OpenWindowEvent type=value bubbles=value cancelable=value eventPhase=value url=value name=value view=value action=action

Returns

String

Constant Detail

ACTION_CREATE


public static const ACTION_CREATE:String = create

Indicates that a new web view was created.

ACTION_DISCARD


public static const ACTION_DISCARD:String = discard

Indicates that the window open request is discarded.

ACTION_RECYCLE


public static const ACTION_RECYCLE:String = recycle

Indicates that a web view is being recycled.

OPEN_WINDOW


public static const OPEN_WINDOW:String = openWindow

Dispatched when the browser requests that a new QNXStageWebView instance should be opened. The URL property specifies the URL for the QNXStageWebView instance. The name property indicates the name of the window. If a window with the specified name already exists, the window will be reused, otherwise a new window will be created.





comments powered by Disqus