qnx.events.TextSelectionChangedEvent

TextSelectionChangedEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class TextSelectionChangedEvent
InheritanceTextSelectionChangedEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a TextSelectionChangedEvent object when the text selection on the web page changes.

There is only one type of TextSelectionChangedEvent:

  • TextSelectionChangedEvent.TEXT_SELECTION_CHANGED: dispatched after selection changes. Cannot be cancelled.


Class information:
PlayBook Tablet OS Version:   1.0.6

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  endRect : Rectangle
The rectangle of the caret position at the end of the selection.
TextSelectionChangedEvent
  startRect : Rectangle
The rectangle of the caret position at the start of the selection.
TextSelectionChangedEvent

Public Methods

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

Public Constants

 ConstantDefined By
  TEXT_SELECTION_CHANGED : String = textSelectionChanged
[static] Dispatched when the selection changes.
TextSelectionChangedEvent

Property Detail

endRect


endRect:Rectangle

The rectangle of the caret position at the end of the selection.


Implementation

public function get endRect():Rectangle
public function set endRect(value:Rectangle):void

startRect


startRect:Rectangle

The rectangle of the caret position at the start of the selection.


Implementation

public function get startRect():Rectangle
public function set startRect(value:Rectangle):void

Constructor Detail

TextSelectionChangedEvent()


public function TextSelectionChangedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, startRect:Rectangle = null, endRect:Rectangle = null)

Creates a TextSelectionChangedEvent object.

Parameters

type:String
bubbles:Boolean (default = false)
cancelable:Boolean (default = false)
startRect:Rectangle (default = null)
endRect:Rectangle (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 TextSelectionChangedEvent object. The string is in the following format:

[TextSelectionChangedEvent type=value bubbles=value cancelable=value eventPhase=value startRect=value endRect=value

Returns

String

Constant Detail

TEXT_SELECTION_CHANGED


public static const TEXT_SELECTION_CHANGED:String = textSelectionChanged

Dispatched when the selection changes. The startRect and endRect properties of the event indicate the caret position of the start and end of the selection. NOTE: The selected region is not bounded by these parameters.