Packagecom.flextras.autoCompleteComboBox
Classpublic class AutoCompleteComboBoxEvent
InheritanceAutoCompleteComboBoxEvent Inheritance flash.events.Event

The AutoCompleteComboBoxEvent class represents generic events associated with the AutoCompleteComboBox.

See also

com.flextras.autoCompleteComboBox.AutoCompleteComboBox


Public Properties
 PropertyDefined by
  newText : String
The newText property contains the truncated text of the currently selected item.
AutoCompleteComboBoxEvent
  text : String
The selectedLabel property contains the display text of the currently selected item.
AutoCompleteComboBoxEvent
Public Methods
 MethodDefined by
  
AutoCompleteComboBoxEvent(type:String, argText:String = null, argnewText:String = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
AutoCompleteComboBoxEvent
Public Constants
 ConstantDefined by
  LABEL_NOT_TRUNCATED : String = "labelNotTruncated"
[static] The AutoCompleteComboBoxEvent.LABEL_NOT_TRUNCATED constant defines the value of the type property of the event object for an event that is dispatched when the AutoCompleteComboBox truncateToFit is set to true, but there was enough room to display the selectedLabel without truncating it.
AutoCompleteComboBoxEvent
  LABEL_TRUNCATED : String = "labelTruncated"
[static] The AutoCompleteComboBoxEvent.LABEL_TRUNCATED constant defines the value of the type property of the event object for an event that is dispatched when the AutoCompleteComboBox truncates the label the label.
AutoCompleteComboBoxEvent
  SELECTED_VALUE_NOT_FOUND : String = "selectedValueNotFound"
[static] The AutoCompleteComboBoxEvent.SELECTED_VALUE_NOT_FOUND constant defines the value of the type property of the event object for an event that is dispatched when the AutoCompleteComboBox selectedValue was set, but the value was not found in the dataProvider.
AutoCompleteComboBoxEvent
  TYPE_AHEAD_TEXT_CHANGED : String = "typeAheadTextChanged"
[static] The AutoCompleteComboBoxEvent.TYPE_AHEAD_TEXT_CHANGED constant defines the value of the type property of the event object for an event that is dispatched when the type-ahead text is changed.
AutoCompleteComboBoxEvent
Property detail
newTextproperty
newText:String  [read-write]

The newText property contains the truncated text of the currently selected item. The text was truncated based on the width for the display and a truncation indicator was added to it.

Implementation
    public function get newText():String
    public function set newText(value:String):void
textproperty 
text:String  [read-write]

The selectedLabel property contains the display text of the currently selected item. This is not truncated.

Implementation
    public function get text():String
    public function set text(value:String):void
Constructor detail
AutoCompleteComboBoxEvent()constructor
public function AutoCompleteComboBoxEvent(type:String, argText:String = null, argnewText:String = null, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
argText:String (default = null)
 
argnewText:String (default = null)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Constant detail
LABEL_NOT_TRUNCATEDconstant
public static const LABEL_NOT_TRUNCATED:String = "labelNotTruncated"

The AutoCompleteComboBoxEvent.LABEL_NOT_TRUNCATED constant defines the value of the type property of the event object for an event that is dispatched when the AutoCompleteComboBox truncateToFit is set to true, but there was enough room to display the selectedLabel without truncating it.

The properties of the event object have the following values. Not all properties are meaningful for all kinds of events. See the detailed property descriptions for more information.

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
textThe untruncated text, same value of the selectedLabel
newTextThe untruncated text, in this case same value of the selectedLabel
typeAutoCompleteComboBoxEvent.LABEL_NOT_TRUNCATED

See also

LABEL_TRUNCATEDconstant 
public static const LABEL_TRUNCATED:String = "labelTruncated"

The AutoCompleteComboBoxEvent.LABEL_TRUNCATED constant defines the value of the type property of the event object for an event that is dispatched when the AutoCompleteComboBox truncates the label the label.

The properties of the event object have the following values. Not all properties are meaningful for all kinds of events. See the detailed property descriptions for more information.

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
textThe untruncated text
newTextThe truncated text
typeAutoCompleteComboBoxEvent.LABEL_TRUNCATED

See also

SELECTED_VALUE_NOT_FOUNDconstant 
public static const SELECTED_VALUE_NOT_FOUND:String = "selectedValueNotFound"

The AutoCompleteComboBoxEvent.SELECTED_VALUE_NOT_FOUND constant defines the value of the type property of the event object for an event that is dispatched when the AutoCompleteComboBox selectedValue was set, but the value was not found in the dataProvider. If cancelled, the selectedIndex and selectedItem will not change. If not cancelled, the AutoCompleteComboBox will be put into the unselected state where selectedIndex = -1

The properties of the event object have the following values. Not all properties are meaningful for all kinds of events. See the detailed property descriptions for more information.

PropertyValue
bubblesfalse
cancelabletrue
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
textThe current selected value of the AutoCompleteComboBox
newTextThe value that was not found in the AutoCompleteComboBox
typeAutoCompleteComboBoxEvent.SELECTED_VALUE_NOT_FOUND

See also

TYPE_AHEAD_TEXT_CHANGEDconstant 
public static const TYPE_AHEAD_TEXT_CHANGED:String = "typeAheadTextChanged"

The AutoCompleteComboBoxEvent.TYPE_AHEAD_TEXT_CHANGED constant defines the value of the type property of the event object for an event that is dispatched when the type-ahead text is changed. This event will trigger if autoCompleteEnabled or typeAheadEnabled are set to true.

The properties of the event object have the following values. Not all properties are meaningful for all kinds of events. See the detailed property descriptions for more information.

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myButton.addEventListener() to register an event listener, myButton is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
textThe old text
newTextThe changed value
typeAutoCompleteComboBoxEvent.TYPE_AHEAD_TEXT_CHANGED

See also