| Package | com.elad.framework.autosuggest |
| Class | public class UIAutoSuggest |
| Inheritance | UIAutoSuggest AbstractAutoSuggest |
| Implements | IUIAutoSuggestClient |
| Property | Defined by | ||
|---|---|---|---|
| input : TextInput [write-only]
Set the TextInput that will be used in the user interface
| UIAutoSuggest | ||
| output : TileBase [write-only]
Set the TileBase that will be used in the user interface.
| UIAutoSuggest | ||
![]() | result : String | AbstractAutoSuggest | |
| Property | Defined by | ||
|---|---|---|---|
![]() | keywordsList : Array | AbstractAutoSuggest | |
![]() | sortedKeywordsList : Array | AbstractAutoSuggest | |
| textInput : TextInput | UIAutoSuggest | ||
| tileList : TileBase | UIAutoSuggest | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
convertXMLToArray(xml:XML):Array
Converts an xml list into an array.
| AbstractAutoSuggest | |
![]() |
getKeywordsList():Array
Method to get the list of keyword after the list was sorted.
| AbstractAutoSuggest | |
|
setKeywordsList(xml:XML):void
Method to feed the list of keywords.
| UIAutoSuggest | ||
![]() |
sortList(text:String):Array
method to sort the list of keywords for specific letter/s or word/s.
| AbstractAutoSuggest | |
| Method | Defined by | ||
|---|---|---|---|
|
ChangeEventHandler(event:Event):void
Event handler after a change in the input box is made.
| UIAutoSuggest | ||
|
initEventListners():void
Initiate the event listners.
| UIAutoSuggest | ||
|
ListKeyDownEventHandler(event:KeyboardEvent):void
Event handler to trace certain keyboard strokes in tile list.
| UIAutoSuggest | ||
|
ListMouseClickedEventHandler(event:MouseEvent):void
Event handler after a change in the tile list is made.
| UIAutoSuggest | ||
|
PressEnterEventHandler(event:FlexEvent):void
Event handler for user clicking the enter key.
| UIAutoSuggest | ||
![]() |
removePunctuationAndSplitWords(text:String):Array
Remove punctuations and split words.
| AbstractAutoSuggest | |
![]() |
searchForTextInList(list:Array, text:String):Array
Search a list of words for a specific text.
| AbstractAutoSuggest | |
|
selectedWord(word:String):void
Set the result.
| UIAutoSuggest | ||
![]() |
stringContainsSubstringCheck(keyword:String, text:String):Boolean
Method to check for a letter/s whithin any part of the keyword.
| AbstractAutoSuggest | |
![]() |
substringBeginsWithString(keyword:String, text:String):Boolean
Method to check for a letter/s whithin the beginning of the keyword.
| AbstractAutoSuggest | |
|
TextInputKeyboardEventHandler(event:KeyboardEvent):void
Event handler to trace certain keyboard strokes in text input.
| UIAutoSuggest | ||
|
updateTileListDataProivder():void
Update the tile list information with the sorted list.
| UIAutoSuggest | ||
| input | property |
input:TextInput [write-only]Set the TextInput that will be used in the user interface
Implementation public function set input(value:TextInput):void
See also
| output | property |
output:TileBase [write-only]Set the TileBase that will be used in the user interface.
Implementation public function set output(value:TileBase):void
See also
| textInput | property |
protected var textInput:TextInput
| tileList | property |
protected var tileList:TileBase
| ChangeEventHandler | () | method |
protected function ChangeEventHandler(event:Event):voidEvent handler after a change in the input box is made.
Parametersevent:Event — the event returned with the value from the keyboard.
|
| initEventListners | () | method |
protected function initEventListners():voidInitiate the event listners.
| ListKeyDownEventHandler | () | method |
protected function ListKeyDownEventHandler(event:KeyboardEvent):voidEvent handler to trace certain keyboard strokes in tile list.
Parametersevent:KeyboardEvent — The event returned with the value from the keyboard.
|
| ListMouseClickedEventHandler | () | method |
protected function ListMouseClickedEventHandler(event:MouseEvent):voidEvent handler after a change in the tile list is made.
Parametersevent:MouseEvent — The event returned with the value from the keyboard.
|
| PressEnterEventHandler | () | method |
protected function PressEnterEventHandler(event:FlexEvent):voidEvent handler for user clicking the enter key.
Parametersevent:FlexEvent — the event returned with the value from the keyboard.
|
| selectedWord | () | method |
protected function selectedWord(word:String):voidSet the result. This method can also be changed to add an option to lunch coringorm event.
This method also set the text input to the value and closes the tile list.
Parametersword:String — the keyword that need to be searched.
|
| setKeywordsList | () | method |
public override function setKeywordsList(xml:XML):voidMethod to feed the list of keywords.
Parametersxml:XML — The XML which will be used as original list to sort from.
|
| TextInputKeyboardEventHandler | () | method |
protected function TextInputKeyboardEventHandler(event:KeyboardEvent):voidEvent handler to trace certain keyboard strokes in text input.
Parametersevent:KeyboardEvent — the event returned with the value from the keyboard.
|
| updateTileListDataProivder | () | method |
protected function updateTileListDataProivder():voidUpdate the tile list information with the sorted list.