Package | ardisia.components.autoComplete |
Class | public class AutoComplete |
Inheritance | AutoComplete spark.components.ComboBox |
Note, the selectedIndex refers to the index in the filtered store. Use the "selectedItem" property to extract selections, not the selectedIndex.
Searching is case-insensitive.
View the technical documentation on the Ardisia Labs website for more information.
Default MXML PropertydataProvider
Property | Defined By | ||
---|---|---|---|
dataProvider : IList [override] [write-only] | AutoComplete | ||
emptySetMessage : String
When the matched set is empty, this is the message that will be
displayed. | AutoComplete | ||
hideClearButtonFocusOut : Boolean
When true, on focusOut, even if text is still displayed in this
control, the optional clear button will be hidden. | AutoComplete |
Method | Defined By | ||
---|---|---|---|
applyFilter():void
Apply a filter to the results based on the string entered by the user. | AutoComplete | ||
moveCaretToEnd():void
Moves the caret to the right of the textInput. | AutoComplete |
Method | Defined By | ||
---|---|---|---|
checkEmptySet():void
Sets the visibility of the emptySet label. | AutoComplete | ||
eventHandler(event:Event):void
Handles events on the component. | AutoComplete | ||
filterFunction(item:Object):Boolean
Filter to use. | AutoComplete | ||
matchingFunction(comboBox:ComboBox, inputText:String):Vector.<int>
The matching function. | AutoComplete | ||
textInputHandler(event:Event):void | AutoComplete | ||
updateEmptyLabelPart():void
Update the empty label skin part. | AutoComplete | ||
updateTextInput():void
Update the text input skin part. | AutoComplete |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the optional clear button part is clicked. | AutoComplete |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
Skin Part | Description | Defined By | ||
---|---|---|---|---|
emptyLabelPart:spark.components.Label | Required: false Part Type: Static Displays a message when the filtered set is empty. | AutoComplete |
dataProvider | property |
dataProvider:IList
[write-only] [override] public function set dataProvider(value:IList):void
emptySetMessage | property |
emptySetMessage:String
When the matched set is empty, this is the message that will be displayed.
The default value is "No Results"
.
public function get emptySetMessage():String
public function set emptySetMessage(value:String):void
hideClearButtonFocusOut | property |
hideClearButtonFocusOut:Boolean
When true, on focusOut, even if text is still displayed in this control, the optional clear button will be hidden.
In other words, the clear button part can be displayed only if this control has focus. Only relevant if the textDisplay skin part is of type TextInput.
The default value is true
.
public function get hideClearButtonFocusOut():Boolean
public function set hideClearButtonFocusOut(value:Boolean):void
applyFilter | () | method |
public function applyFilter():void
Apply a filter to the results based on the string entered by the user.
checkEmptySet | () | method |
protected function checkEmptySet():void
Sets the visibility of the emptySet label.
eventHandler | () | method |
protected function eventHandler(event:Event):void
Handles events on the component.
Parameters
event:Event — the Event that triggered the handler
|
filterFunction | () | method |
protected function filterFunction(item:Object):Boolean
Filter to use. Simple needle in haystack search.
Parameters
item:Object — the object to test
|
Boolean — boolean for inclusion in filter
|
matchingFunction | () | method |
protected function matchingFunction(comboBox:ComboBox, inputText:String):Vector.<int>
The matching function. Returns a null set.
Parameters
comboBox:ComboBox — this control
| |
inputText:String — the String entered by the user in the control
|
Vector.<int> — vector of indices
|
moveCaretToEnd | () | method |
public function moveCaretToEnd():void
Moves the caret to the right of the textInput.
textInputHandler | () | method |
protected function textInputHandler(event:Event):void
Parameters
event:Event |
updateEmptyLabelPart | () | method |
protected function updateEmptyLabelPart():void
Update the empty label skin part.
updateTextInput | () | method |
protected function updateTextInput():void
Update the text input skin part.
clear | Event |
ardisia.components.textInput.events.TextInputEvent
ardisia.components.textInput.events.TextInputEvent
Dispatched when the optional clear button part is clicked. Only dispatched if the "textInput" skin part is an Ardisia TextInput component.