Packagecom.elad.framework.autosuggest
Interfacepublic interface IAutoSuggest
ImplementorsAbstractAutoSuggest

Interface to be implemented by AutoSuggest class.



Public Methods
 MethodDefined by
  
convertXMLToArray(xml:XML):Array
Converts an xml list into an array.
IAutoSuggest
  
Method to get the list of keyword after the list was sorted.
IAutoSuggest
  
setKeywordsList(xml:XML):void
Method to feed the list of keywords.
IAutoSuggest
  
sortList(text:String):Array
method to sort the list of keywords for specific letter/s or word/s.
IAutoSuggest
Method detail
convertXMLToArray()method
public function convertXMLToArray(xml:XML):Array

Converts an xml list into an array.

Parameters
xml:XML — XML which will be converted into an array.

Returns
Array — An array with the list of words converted from XML.
getKeywordsList()method 
public function getKeywordsList():Array

Method to get the list of keyword after the list was sorted.

Returns
Array — An array with the list of words.
setKeywordsList()method 
public function setKeywordsList(xml:XML):void

Method to feed the list of keywords.

Parameters
xml:XML — The XML which will be used as original list to sort from.
sortList()method 
public function sortList(text:String):Array

method to sort the list of keywords for specific letter/s or word/s.

Parameters
text:String — the text string that will be used to sort the list.

Returns
Array — An array with the sorted list of words.