| Package | qnx.events |
| Class | public class OpenWindowEvent |
| Inheritance | OpenWindowEvent flash.events.Event |
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.See also
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| action | property |
action:StringReturns the view that the URL was opened in, or null if it was not opened.
public function get action():String public function set action(value:String):void| name | property |
name:StringReturns 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.
public function get name():String public function set name(value:String):void| url | property |
url:StringThe URL that the newly opened window will point to.
public function get url():String public function set url(value:String):void| view | property |
view:QNXStageWebViewReturns the view that the URL was opened in, or null if it was not opened.
public function get view():QNXStageWebView public function set view(value:QNXStageWebView):void| OpenWindowEvent | () | Constructor |
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.
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) |
| 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 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
String |
| ACTION_CREATE | Constant |
public static const ACTION_CREATE:String = createIndicates that a new web view was created.
| ACTION_DISCARD | Constant |
public static const ACTION_DISCARD:String = discardIndicates that the window open request is discarded.
| ACTION_RECYCLE | Constant |
public static const ACTION_RECYCLE:String = recycleIndicates that a web view is being recycled.
| OPEN_WINDOW | Constant |
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.