PhidgetDictionaryKeyListener

EventDispatcher
PhidgetDictionaryKeyListener

A class for listening to key/value changes on a PhidgetDictionary See the programming manual for more specific API details, supported functionality, units, etc.

Summary
PhidgetDictionaryKeyListenerA class for listening to key/value changes on a PhidgetDictionary See the programming manual for more specific API details, supported functionality, units, etc.
EventsEvents supported by all PhidgetDictionaryKeyListener.
Functions
PhidgetDictionaryKeyListenerCreates a KeyListener for a specified dictionary and key pattern.
startStart listening for keys.
stopStop listening for keys.

Events

Events supported by all PhidgetDictionaryKeyListener.  Pass these constants to the addEventListener() function when adding event listeners to a Phidget object.

PhidgetDictionaryEvent.KEY_CHANGEkey/value added or changed
PhidgetDictionaryEvent.KEY_REMOVALkey removed

Functions

PhidgetDictionaryKeyListener

public function PhidgetDictionaryKeyListener(dict: PhidgetDictionary,
pattern: String)

Creates a KeyListener for a specified dictionary and key pattern.

Parameters

dictPhidgetDictionary on which to listen for keys
patternextended regular expression key pattern to listen for

start

public function start():void

Start listening for keys.  Make sure that the dictionary has connected before you call this.  This can be called in the Dictionary CONNECT event.

stop

public function stop():void

Stop listening for keys.

A class for accessing the Phidget Dictionary.
public function PhidgetDictionaryKeyListener(dict: PhidgetDictionary,
pattern: String)
Creates a KeyListener for a specified dictionary and key pattern.
public function start():void
Start listening for keys.
public function stop():void
Stop listening for keys.
Close