qnx.fuse.ui.events.TextEvent

TextEvent

Properties | Methods | Constants


Packageqnx.fuse.ui.events
Classpublic class TextEvent
InheritanceTextEvent Inheritance flash.events.Event

Defines events related to the text input controls.

Class information:
BlackBerry 10 Version:   10.0.0
Found in:  qnxui.swc



Public Properties

 PropertyDefined By
  url : String
The url of a LINK event.
TextEvent

Public Methods

 MethodDefined By
  
TextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a TextEvent instance.
TextEvent

Public Constants

 ConstantDefined By
  EDIT_START : String = editStart
[static] This event is fired when an editing session starts on the text component.
TextEvent
  EDIT_STOP : String = editStop
[static] This event is fired when an editing session stops on the text component.
TextEvent
  LAYOUT_ESTIMATE_CHANGE : String = layoutEstimateChange
[static] This event is fired when the dimensions of the text have changed.
TextEvent
  LINK : String = textLink
[static] This event is fired when a user presses on a link in the text.
TextEvent
  SELECTION_CHANGED : String = selectionChanged
[static] This event is fired when a selection is changed or cleared.
TextEvent

Property Detail

url


public var url:String

The url of a LINK event.

Constructor Detail

TextEvent()


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

Creates a TextEvent instance.

Parameters

type:String — The type of event.
bubbles:Boolean (default = false) — A boolean that determines if the event will bubble up. Default is false.
cancelable:Boolean (default = false) — A boolean that determines if the event can be cancelled. Default is false.

Constant Detail

EDIT_START


public static const EDIT_START:String = editStart

This event is fired when an editing session starts on the text component.

The TextEvent.EDIT_START constant defines the value of the type property of the event object for an editStart event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeTextEvent.EDIT_START

EDIT_STOP


public static const EDIT_STOP:String = editStop

This event is fired when an editing session stops on the text component.

The TextEvent.EDIT_STOP constant defines the value of the type property of the event object for an editStop event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeTextEvent.EDIT_STOP

LAYOUT_ESTIMATE_CHANGE


public static const LAYOUT_ESTIMATE_CHANGE:String = layoutEstimateChange

This event is fired when the dimensions of the text have changed.

The TextEvent.LAYOUT_ESTIMATE_CHANGE constant defines the value of the type property of the event object for an layoutEstimateChange event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeTextEvent.LAYOUT_ESTIMATE_CHANGE

LINK


public static const LINK:String = textLink

This event is fired when a user presses on a link in the text.

The TextEvent.LINK constant defines the value of the type property of the event object for an textLink event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeTextEvent.LINK
urlThe url of the link that was clicked in the text.

See also

qnx.fuse.ui.text.Label.htmlText

SELECTION_CHANGED


public static const SELECTION_CHANGED:String = selectionChanged

This event is fired when a selection is changed or cleared.

The TextEvent.SELECTION_CHANGED constant defines the value of the type property of the event object for an selectionChanged event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe object that is actively processing the Event object with an event listener.
typeTextEvent.SELECTION_CHANGED





comments powered by Disqus