| Package | com.flextras.autoCompleteComboBox |
| Class | public class AutoCompleteComboBoxEvent |
| Inheritance | AutoCompleteComboBoxEvent flash.events.Event |
See also
| Property | Defined by | ||
|---|---|---|---|
| newText : String
The
newText | AutoCompleteComboBoxEvent | ||
| text : String
The
selectedLabel property contains the display text of the currently selected item. | AutoCompleteComboBoxEvent | ||
| Method | Defined by | ||
|---|---|---|---|
|
AutoCompleteComboBoxEvent(type:String, argText:String = null, argnewText:String = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
| AutoCompleteComboBoxEvent | ||
| Constant | Defined 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 | ||
| newText | property |
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.
public function get newText():String
public function set newText(value:String):void
| text | property |
text:String [read-write]
The selectedLabel property contains the display text of the currently selected item. This is not truncated.
public function get text():String
public function set text(value:String):void
| AutoCompleteComboBoxEvent | () | constructor |
public function AutoCompleteComboBoxEvent(type:String, argText:String = null, argnewText:String = null, bubbles:Boolean = false, cancelable:Boolean = false)Constructor
Parameterstype:String |
|
argText:String (default = null) |
|
argnewText:String (default = null) |
|
bubbles:Boolean (default = false) |
|
cancelable:Boolean (default = false) |
| LABEL_NOT_TRUNCATED | constant |
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.
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The 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. |
target | The 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. |
text | The untruncated text, same value of the selectedLabel |
newText | The untruncated text, in this case same value of the selectedLabel |
type | AutoCompleteComboBoxEvent.LABEL_NOT_TRUNCATED |
See also
| LABEL_TRUNCATED | constant |
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.
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The 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. |
target | The 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. |
text | The untruncated text |
newText | The truncated text |
type | AutoCompleteComboBoxEvent.LABEL_TRUNCATED |
See also
| SELECTED_VALUE_NOT_FOUND | constant |
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.
| Property | Value |
|---|---|
bubbles | false |
cancelable | true |
currentTarget | The 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. |
target | The 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. |
text | The current selected value of the AutoCompleteComboBox |
newText | The value that was not found in the AutoCompleteComboBox |
type | AutoCompleteComboBoxEvent.SELECTED_VALUE_NOT_FOUND |
See also
| TYPE_AHEAD_TEXT_CHANGED | constant |
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.
| Property | Value |
|---|---|
bubbles | false |
cancelable | false |
currentTarget | The 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. |
target | The 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. |
text | The old text |
newText | The changed value |
type | AutoCompleteComboBoxEvent.TYPE_AHEAD_TEXT_CHANGED |
See also