qnx.events.TextAttributeQueryEvent

TextAttributeQueryEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class TextAttributeQueryEvent
InheritanceTextAttributeQueryEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a TextAttributeQueryEvent object when the textHasAttribute call is received.

There is only one type of TextAttributeQueryEvent:

  • TextAttributeQueryEvent.TEXT_ATTRIBUTE_QUERY: dispatched after a textHasAttribute call is received. Cannot be cancelled.


Class information:
PlayBook Tablet OS Version:   1.0.6

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  attribute : String
The string that contains the attribute queried.
TextAttributeQueryEvent
  value : String
A string containing the value of the attribute.
TextAttributeQueryEvent

Public Methods

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

Public Constants

 ConstantDefined By
  TEXT_ATTRIBUTE_QUERY : String = textAttributeQuery
[static] Dispatched after a textHasAttribute is received.
TextAttributeQueryEvent

Property Detail

attribute


attribute:String

The string that contains the attribute queried.


Implementation

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

value


value:String

A string containing the value of the attribute.


Implementation

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

Constructor Detail

TextAttributeQueryEvent()


public function TextAttributeQueryEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, attribute:String = null, value:String = null)

Creates a TextAttributeQueryEvent object.

Parameters

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

[TextAttributeQueryEvent type=value bubbles=value cancelable=value eventPhase=value attribute=value value=value

Returns

String

Constant Detail

TEXT_ATTRIBUTE_QUERY


public static const TEXT_ATTRIBUTE_QUERY:String = textAttributeQuery

Dispatched after a textHasAttribute is received. The attribute and value properties of the event contain the results of the query. Note that for many attributes the value string will be either "true" or "false" indicating whether the attribute is present or not. For example, the text attribute "bold" will have a value of "true" or "false", but the attribute "fontName" will have an actual font name as its value. If an attribute is queried which does not exist, its value will be the empty string.