qnx.events.ClipboardEvent

ClipboardEvent

Methods | Constants


Packageqnx.events
Classpublic class ClipboardEvent
InheritanceClipboardEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a ClipboardEvent object when WebKit reads or writes the clipboard.

There are two types of ClipboardEvent:

  • ClipboardEvent.CLIPBOARD_WRITE: dispatched after WebKit does a cut/copy operation. Cannot be cancelled.
  • ClipboardEvent.CLIPBOARD_READ: dispatched after WebKit does a paste operation. Cannot be cancelled.


Class information:
PlayBook Tablet OS Version:   1.0.6

See also

QNXStageWebView



Public Methods

 MethodDefined By
  
ClipboardEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a ClipboardEvent object.
ClipboardEvent
  
clone():Event
[override] Duplicates an instance of an Event subclass.
ClipboardEvent
  
toString():String
[override] Returns a string that contains all the properties of the ClipboardEvent object.
ClipboardEvent

Public Constants

 ConstantDefined By
  CLIPBOARD_READ : String = clipboardRead
[static]
ClipboardEvent
  CLIPBOARD_WRITE : String = clipboardWrite
[static]
ClipboardEvent

Constructor Detail

ClipboardEvent()


public function ClipboardEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a ClipboardEvent object.

Parameters

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

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 ClipboardEvent object. The string is in the following format:

[ClipboardEvent type=value bubbles=value cancelable=value eventPhase=value

Returns

String

Constant Detail

CLIPBOARD_READ


public static const CLIPBOARD_READ:String = clipboardRead

CLIPBOARD_WRITE


public static const CLIPBOARD_WRITE:String = clipboardWrite