| Package | com.hillelcoren.components |
| Class | public class AdvancedAutoComplete |
| Inheritance | AdvancedAutoComplete AutoComplete mx.containers.Grid |
| Property | Defined by | ||
|---|---|---|---|
| actionsMenuDataProvider : Object [write-only]
The menu options displayed in the Actions Menu.
| AdvancedAutoComplete | ||
![]() | allowDuplicates : Boolean
A flag that indicates whether or not you can select duplicate items when multiselect mode is enabled
| AutoComplete | |
![]() | allowEditingNewValues : Boolean
A flag that indicates whether or not you can edit a new item which has been added.
| AutoComplete | |
![]() | allowMultipleSelection : Boolean
Flag which sets whether or not we allow the user to
select more than one item
| AutoComplete | |
![]() | allowNewValues : Boolean
A flag that indicates whether or not you can select values which aren't in the dataProvider
| AutoComplete | |
![]() | autoSelectEnabled : Boolean
A flag which indicates whether or not we'll automatically select the value if
either (a) there's only one match and it's equal to the text or (b) matches
the custom autoSelectEnabled
| AutoComplete | |
![]() | autoSelectFunction : Function
A function which controls whether or not to automatically select the item if it's the
only match.
| AutoComplete | |
![]() | backspaceAction : String
The action to take when pressing backspace when the cursor is in front of a selected item.
| AutoComplete | |
| browseLabel : String [write-only]
The text value for the label the browse button.
| AdvancedAutoComplete | ||
| browserClass : Class | AdvancedAutoComplete | ||
| browserFields : Array [write-only]
The fields/columns to display in the browse window.
| AdvancedAutoComplete | ||
![]() | data : Object | AutoComplete | |
![]() | dataProvider : ArrayCollection | AutoComplete | |
![]() | dropDown : List | AutoComplete | |
![]() | dropDownItemRenderer : IFactory
The custom item renderer for the dropdown displayed when searching.
| AutoComplete | |
![]() | dropDownLabelFunction : Function | AutoComplete | |
![]() | dropDownRowCount : uint
The number of rows to show in the dropDown which
appears when searching
| AutoComplete | |
![]() | dropDownWidth : int | AutoComplete | |
![]() | enableClearIcon : Boolean | AutoComplete | |
![]() | errorString : String | AutoComplete | |
![]() | filterFunction : Function
A function that the view will use to eliminate items that do not match the function's criteria.
| AutoComplete | |
![]() | inlineButton : Button | AutoComplete | |
![]() | keyField : String
This field is used in conjuction with the selectedItems or selectedItemId property to
determine if the item matches.
| AutoComplete | |
![]() | labelField : String
The name of the field in the data provider items to display as the label.
| AutoComplete | |
![]() | labelFunction : Function | AutoComplete | |
![]() | listData : BaseListData | AutoComplete | |
![]() | matchType : String | AutoComplete | |
![]() | prompt : String
The prompt to display before the component receives focus
| AutoComplete | |
| removeLabel : String [write-only]
The text value for the label the remove button.
| AdvancedAutoComplete | ||
![]() | searchText : String
Returns the search string.
| AutoComplete | |
![]() | selectedItem : * | AutoComplete | |
![]() | selectedItemId : Number
The id of the initially selected item.
| AutoComplete | |
![]() | selectedItems : ArrayCollection | AutoComplete | |
| selectionLayout : String [write-only]
When allowMultipleSelection is set to true, this specifies whether to layout the selected
items horizontally (in a flow layout) or vertically (in a List).
| AdvancedAutoComplete | ||
| showBrowseButton : Boolean [write-only]
A flag that indicates whether or not to display the browse button.
| AdvancedAutoComplete | ||
| showOrderButtons : Boolean [write-only]
A flag that indicates whether or not we display the ordering buttons and allow the
items to be drag-and-drop reorderd.
| AdvancedAutoComplete | ||
| showRemoveButton : Boolean [write-only]
| AdvancedAutoComplete | ||
![]() | showRemoveIcon : Boolean
A flag that indicates whether or not to display the remove icon in the selected items.
| AutoComplete | |
![]() | text : String | AutoComplete | |
![]() | textInput : PromptTextInput | AutoComplete | |
| useListBuilder : Boolean
If this is set to true, when the user clicks the Browse button we'll
display the List Builder (rather than a DataGrid or List).
| AdvancedAutoComplete | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | _1763739238_dataProvider : ArrayCollection | AutoComplete | |
![]() | _652820454_selectedItems : ArrayCollection | AutoComplete | |
![]() | _allowMultipleSelection : Boolean | AutoComplete | |
| _browserClass : Class | AdvancedAutoComplete | ||
![]() | _filterFunction : Function | AutoComplete | |
![]() | _inlineButton : Button | AutoComplete | |
![]() | _labelField : String | AutoComplete | |
![]() | _labelFunction : Function | AutoComplete | |
| _listBuilderClass : Class | AdvancedAutoComplete | ||
![]() | _selectedItemId : Number | AutoComplete | |
![]() | _showSelectedItems : Boolean = true | AutoComplete | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
addItem(item:Object):void
| AutoComplete | |
![]() |
defaultDropDownLabelFunction(item:Object):String
The default function used to determine the text to display in the dropdown when searching.
| AutoComplete | |
![]() |
filterData():void
| AutoComplete | |
|
getNextItem():*
Returns the next available (un-selected) item in the data provider
| AdvancedAutoComplete | ||
![]() |
handleChange(event:Event):void
| AutoComplete | |
![]() |
hideDropDown():void
| AutoComplete | |
![]() |
isItemSelected(item:Object):Boolean
| AutoComplete | |
![]() |
isSettingValue():Boolean
Checks if the component is in the process of resolving the selecteItemId to it's respective object.
| AutoComplete | |
![]() |
positionDropDown():void
| AutoComplete | |
![]() |
removeAll():void
| AutoComplete | |
![]() |
removeItemAt(index:int):void
| AutoComplete | |
![]() |
search():void
This will cause the component to research the dataProvider and display the popUp if
there are any matches.
| AutoComplete | |
![]() |
setFocus():void
| AutoComplete | |
|
showBrowser():void
| AdvancedAutoComplete | ||
![]() |
showDropDown():void
| AutoComplete | |
| Method | Defined by | ||
|---|---|---|---|
|
commitProperties():void
| AdvancedAutoComplete | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() | Dispatched when the selected items are changed by the user | AutoComplete | ||
| AdvancedAutoComplete | ||||
| These events are active when the context menu is used | AdvancedAutoComplete | |||
| AdvancedAutoComplete | ||||
![]() | Dispatched when the text in the search field is changed | AutoComplete | ||
![]() | Dispatched when the selected items are changed either by the user or programmitcally | AutoComplete | ||
| actionsMenuDataProvider | property |
actionsMenuDataProvider:Object [write-only]The menu options displayed in the Actions Menu. Set this value to enable the menu feature.
Implementation public function set actionsMenuDataProvider(value:Object):void
| browseLabel | property |
browseLabel:String [write-only]The text value for the label the browse button.
The default value is Browse.
public function set browseLabel(value:String):void
| _browserClass | property |
protected var _browserClass:Class
| browserClass | property |
browserClass:Class [read-write]Implementation
public function get browserClass():Class
public function set browserClass(value:Class):void
| browserFields | property |
browserFields:Array [write-only]The fields/columns to display in the browse window. If listBuilder is enable this property is ignored.
Implementation public function set browserFields(value:Array):void
| _listBuilderClass | property |
protected var _listBuilderClass:Class
| removeLabel | property |
removeLabel:String [write-only]The text value for the label the remove button.
The default value is Remove.
public function set removeLabel(value:String):void
| selectionLayout | property |
selectionLayout:String [write-only]When allowMultipleSelection is set to true, this specifies whether to layout the selected items horizontally (in a flow layout) or vertically (in a List).
The default value is horizontal.
public function set selectionLayout(value:String):void
| showBrowseButton | property |
showBrowseButton:Boolean [write-only]A flag that indicates whether or not to display the browse button. Clicking the browse button will show either a DataGrid or a List (depending on whether the dataProvider contains Objects or Strings). It useListBuilder is enabled an alternate List Builder browser will be displayed
The default value is false.
public function set showBrowseButton(value:Boolean):void
| showOrderButtons | property |
showOrderButtons:Boolean [write-only]A flag that indicates whether or not we display the ordering buttons and allow the items to be drag-and-drop reorderd. This is only enabled when allowMultipleSelection is set to true and the multiSelectLayout property is set to AutoComplete.LAYOUT_VERTICAL
Implementation public function set showOrderButtons(value:Boolean):void
| showRemoveButton | property |
showRemoveButton:Boolean [write-only]Implementation
public function set showRemoveButton(value:Boolean):void
| useListBuilder | property |
useListBuilder:Boolean [read-write]If this is set to true, when the user clicks the Browse button we'll display the List Builder (rather than a DataGrid or List).
The List Builder contains two lists next to each other. The user can add/remove items by selecting them and clicking the move left/move right buttons or by drag and dropping the items betweent the lists
The default value is false.
public function get useListBuilder():Boolean
public function set useListBuilder(value:Boolean):void
| commitProperties | () | method |
protected override function commitProperties():void
| getNextItem | () | method |
public function getNextItem():*Returns the next available (un-selected) item in the data provider
Returns* |
| showBrowser | () | method |
public function showBrowser():void
| itemClick | event |
| menuHide | event |
| menuShow | event |