qnx.events.FindStringEvent

FindStringEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class FindStringEvent
InheritanceFindStringEvent Inheritance flash.events.Event

A QNXStageWebView object dispatches a FindStringEvent object when the result of a search is available.

There is only one type of FindStringEvent:

  • FindStringEvent.FIND_STRING: dispatched when a find result is available. Cannot be cancelled.


Class information:
BlackBerry 10 Version:   10.0.0

See also

QNXStageWebView



Public Properties

 PropertyDefined By
  found : Boolean
The result of a search, found or not.
FindStringEvent

Public Methods

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

Public Constants

 ConstantDefined By
  FIND_STRING : String = findString
[static] Indicates that the String that was searched for was found or not.
FindStringEvent

Property Detail

found


found:Boolean

The result of a search, found or not.


Implementation

public function get found():Boolean
public function set found(value:Boolean):void

Constructor Detail

FindStringEvent()


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

Creates a FindStringEvent object.

Parameters

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

[FindStringEvent type=value bubbles=value cancelable=value eventPhase=value url=value

Returns

String

Constant Detail

FIND_STRING


public static const FIND_STRING:String = findString

Indicates that the String that was searched for was found or not.





comments powered by Disqus