student-ar-fl-controls-SelectableList.ax [swf] flex
Dispatched when the user rolls the pointer off of an item in the component. @eventType fl.events.ListEvent.ITEM_ROLL_OUT
see: #event:itemRollOver @langversion 3.0 @playerversion Flash 9.0.28.0
Dispatched when the user rolls the pointer over an item in the component. @eventType fl.events.ListEvent.ITEM_ROLL_OVER
see: #event:itemRollOut @langversion 3.0 @playerversion Flash 9.0.28.0
Dispatched when the user rolls the pointer over the component. @eventType flash.events.MouseEvent.ROLL_OVER
see: #event:rollOut @langversion 3.0 @playerversion Flash 9.0.28.0
Dispatched when the user rolls the pointer off of the component. @eventType flash.events.MouseEvent.ROLL_OUT
see: #event:rollOver @langversion 3.0 @playerversion Flash 9.0.28.0
Dispatched when the user clicks an item in the component. <p>The <code>click</code> event is dispatched before the value of the component is changed. To identify the row and column that were clicked, use the properties of the event object; do not use the <code>selectedIndex</code> and <code>selectedItem</code> properties.</p> @eventType fl.events.ListEvent.ITEM_CLICK @langversion 3.0 @playerversion Flash 9.0.28.0
Dispatched when the user clicks an item in the component twice in rapid succession. Unlike the <code>click</code> event, the doubleClick event is dispatched after the <code>selectedIndex</code> of the component is changed. @eventType fl.events.ListEvent.ITEM_DOUBLE_CLICK @langversion 3.0 @playerversion Flash 9.0.28.0
Dispatched when a different item is selected in the list. @eventType flash.events.Event.CHANGE @langversion 3.0 @playerversion Flash 9.0.28.0
Dispatched when the user scrolls horizontally or vertically. @eventType fl.events.ScrollEvent.SCROLL @langversion 3.0 @playerversion Flash 9.0.28.0
The class that provides the skin for the background of the component. @default List_skin @langversion 3.0 @playerversion Flash 9.0.28.0
The class that provides the cell renderer for each item in the component. @default fl.contols.listClasses.CellRenderer @langversion 3.0 @playerversion Flash 9.0.28.0
The alpha value to set the list to when the <code>enabled</code> property is <code>false</code>. @default null @langversion 3.0 @playerversion Flash 9.0.28.0
The padding that separates the border of the list from its contents, in pixels. @default null @langversion 3.0 @playerversion Flash 9.0.28.0
The @ax-student-ar-fl-controls-SelectableList is the base class for all list-based components--for example, the List, TileList, DataGrid, and ComboBox components. This class provides methods and properties that are used for the rendering and layout of rows, and to set scroll bar styles and data providers. <p><strong>Note:</strong> This class does not create a component; it is exposed only so that it can be extended.</p>
see: fl.controls.DataGrid
see: fl.controls.List
see: fl.controls.TileList
see: fl.data.DataProvider @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
@copy fl.core.UIComponent#getStyleDefinition() @includeExample ../core/examples/UIComponent.getStyleDefinition.1.as -noswf
see: fl.core.UIComponent#getStyle()
see: fl.core.UIComponent#setStyle()
see: fl.managers.StyleManager @langversion 3.0 @playerversion Flash 9.0.28.0
@private Creates the Accessibility class. This method is called from UIComponent. @langversion 3.0 @playerversion Flash 9.0.28.0
Creates a new @ax-student-ar-fl-controls-SelectableList instance. @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
Gets or sets the data model of the list of items to be viewed. A data provider can be shared by multiple list-based components. Changes to the data provider are immediately available to all components that use it as a data source. @default null @langversion 3.0 @playerversion Flash 9.0.28.0
@private (setter) @langversion 3.0 @playerversion Flash 9.0.28.0
Gets or sets the number of pixels that the list scrolls to the right when the <code>horizontalScrollPolicy</code> property is set to <code>ScrollPolicy.ON</code>.
see: fl.containers.BaseScrollPane#horizontalScrollPosition
see: fl.containers.BaseScrollPane#maxVerticalScrollPosition @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
Gets the number of items in the data provider. @includeExample examples/@ax-student-ar-fl-controls-SelectableList.length.1.as -noswf @langversion 3.0 @playerversion Flash 9.0.28.0
Gets a Boolean value that indicates whether more than one list item can be selected at a time. A value of <code>true</code> indicates that multiple selections can be made at one time; a value of <code>false</code> indicates that only one item can be selected at one time. @default false @includeExample examples/List.allowMultipleSelection.1.as -noswf
see: #selectable @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
Gets or sets a Boolean value that indicates whether the items in the list can be selected. A value of <code>true</code> indicates that the list items can be selected; a value of <code>false</code> indicates that they cannot be. @default true
see: #allowMultipleSelection @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
Gets or sets the index of the item that is selected in a single-selection list. A single-selection list is a list in which only one item can be selected at a time. <p>A value of -1 indicates that no item is selected; if multiple selections are made, this value is equal to the index of the item that was selected last in the group of selected items.</p> <p>When ActionScript is used to set this property, the item at the specified index replaces the current selection. When the selection is changed programmatically, a <code>change</code> event object is not dispatched. </p>
see: #selectedIndices
see: #selectedItem @includeExample examples/@ax-student-ar-fl-controls-SelectableList.selectedIndex.1.as -noswf @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
Gets or sets an array that contains the items that were selected from a multiple-selection list. <p>To replace the current selection programmatically, you can make an explicit assignment to this property. You can clear the current selection by setting this property to an empty array or to a value of <code>undefined</code>. If no items are selected from the list of items, this property is <code>undefined</code>. </p> <p>The sequence of values in the array reflects the order in which the items were selected from the multiple-selection list. For example, if you click the second item from the list, then the third item, and finally the first item, this property contains an array of values in the following sequence: <code>[1,2,0]</code>.</p>
see: #allowMultipleSelection
see: #selectedIndex
see: #selectedItems @langversion 3.0 @playerversion Flash 9.0.28.0
@private @langversion 3.0 @playerversion Flash 9.0.28.0
Gets or sets the item that was selected from a single-selection list. For a multiple-selection list in which multiple items are selected, this property contains the item that was selected last. <p>If no selection is made, the value of this property is <code>null</code>.</p>
see: #selectedIndex
see: #selectedItems @includeExample examples/@ax-student-ar-fl-controls-SelectableList.selectedIndex.1.as -noswf @langversion 3.0 @playerversion Flash 9.0.28.0
@private (setter) @langversion 3.0 @playerversion Flash 9.0.28.0
Gets or sets an array that contains the objects for the items that were selected from the multiple-selection list. <p>For a single-selection list, the value of this property is an array containing the one selected item. In a single-selection list, the <code>allowMultipleSelection</code> property is set to <code>false</code>.</p> @includeExample examples/@ax-student-ar-fl-controls-SelectableList.selectedItems.1.as -noswf
see: #allowMultipleSelection
see: #selectedIndices
see: #selectedItem @langversion 3.0 @playerversion Flash 9.0.28.0
@private (setter) @langversion 3.0 @playerversion Flash 9.0.28.0
Gets the number of rows that are at least partially visible in the list. <p><strong>Note:</strong> This property must be overridden in any class that extends @ax-student-ar-fl-controls-SelectableList.</p> @includeExample examples/@ax-student-ar-fl-controls-SelectableList.rowCount.1.as -noswf @default 0 @langversion 3.0 @playerversion Flash 9.0.28.0
Clears the currently selected item in the list and sets the <code>selectedIndex</code> property to -1. @includeExample examples/List.clearSelection.1.as -noswf @langversion 3.0 @playerversion Flash 9.0.28.0
Retrieves the ICellRenderer for a given item object, if there is one. This method always returns <code>null</code>.
parameter: item The item in the data provider.
returns: A value ofnull
. @includeExample examples/@ax-student-ar-fl-controls-SelectableList.itemToCellRenderer.1.as -noswf @langversion 3.0 @playerversion Flash 9.0.28.0
Appends an item to the end of the list of items. <p>An item should contain <code>label</code> and <code>data</code> properties; however, items that contain other properties can also be added to the list. By default, the <code>label</code> property of an item is used to display the label of the row; the <code>data</code> property is used to store the data of the row. </p>
parameter: item The item to be added to the data provider.
see: #addItemAt() @langversion 3.0 @playerversion Flash 9.0.28.0
Inserts an item into the list at the specified index location. The indices of items at or after the specified index location are incremented by 1.
parameter: item The item to be added to the list.
parameter: index The index at which to add the item. @throws RangeError The specified index is less than 0 or greater than or equal to the length of the data provider.
see: #addItem()
see: #replaceItemAt() @langversion 3.0 @playerversion Flash 9.0.28.0
Removes all items from the list. @langversion 3.0 @playerversion Flash 9.0.28.0
Retrieves the item at the specified index.
parameter: index The index of the item to be retrieved.
returns: The object at the specified index location. @throws RangeError The specified index is less than 0 or greater than or equal to the length of the data provider. @langversion 3.0 @playerversion Flash 9.0.28.0
Removes the specified item from the list.
parameter: item The item to be removed.
returns: The item that was removed. @throws RangeError The item could not be found.
see: #removeAll()
see: #removeItemAt() @langversion 3.0 @playerversion Flash 9.0.28.0
Removes the item at the specified index position. The indices of items after the specified index location are decremented by 1.
parameter: index The index of the item in the data provider to be removed.
returns: The item that was removed.
see: #removeAll()
see: #removeItem()
see: #replaceItemAt() @langversion 3.0 @playerversion Flash 9.0.28.0
Replaces the item at the specified index location with another item. This method modifies the data provider of the List component. If the data provider is shared with other components, the data that is provided to those components is also updated.
parameter: item The item to replace the item at the specified index location.
parameter: index The index position of the item to be replaced.
returns: The item that was replaced. @throws RangeError The specified index is less than 0 or greater than or equal to the length of the data provider.
see: #removeItemAt() @langversion 3.0 @playerversion Flash 9.0.28.0
Invalidates the whole list, forcing the list items to be redrawn.
see: #invalidateItem()
see: #invalidateItemAt() @langversion 3.0 @playerversion Flash 9.0.28.0
Invalidates a specific item renderer.
parameter: item The item in the data provider to invalidate.
see: #invalidateItemAt()
see: #invalidateList() @langversion 3.0 @playerversion Flash 9.0.28.0 @internal [kenos] This doesn't make sense. It says the method invalidates an item renderer, but the param description for item says that it receives "the data provider to invalidate." Isn't the item renderer distinct from the item? There is a similar problem in the next method.
Invalidates the renderer for the item at the specified index.
parameter: index The index of the item in the data provider to invalidate.
see: #invalidateItem()
see: #invalidateList() @langversion 3.0 @playerversion Flash 9.0.28.0 @internal [kenos] This method appears to invalid an item, but it is described as invalidating an item renderer. What is correct?
Sorts the elements of the current data provider. This method performs a sort based on the Unicode values of the elements. ASCII is a subset of Unicode.
parameter: sortArgs The arguments against which to sort.
returns: The return value depends on whether any parameters are passed to this method. For more information, see the <code>Array.sort()</code> method. Note that this method returns 0 when the <code>sortArgs</code> parameter is set to <code>Array.UNIQUESORT</code>.
see: #sortItemsOn()
see: Array#sort() @langversion 3.0 @playerversion Flash 9.0.28.0
Sorts the elements of the current data provider by one or more of its fields.
parameter: field The field on which to sort.
parameter: options Sort arguments that are used to override the default sort behavior. Separate two or more arguments with the bitwise OR (|) operator.
returns: The return value depends on whether any parameters are passed to this method. For more information, see the <code>Array.sortOn()</code> method. Note that this method returns 0 when the <code>sortOption</code> parameter is set to <code>Array.UNIQUESORT</code>. @includeExample examples/@ax-student-ar-fl-controls-SelectableList.sortItemsOn.1.as -noswf
see: #sortItems()
see: fl.data.DataProvider#sortOn() DataProvider.sortOn() @langversion 3.0 @playerversion Flash 9.0.28.0
Checks whether the specified item is selected in the list.
parameter: item The item to check.
returns: This method returnstrue
if the specified item is selected; otherwise, if the specified item has a value of <code>null</code> or is not included in the list, this method returns <code>false</code>. @langversion 3.0 @playerversion Flash 9.0.28.0
Scrolls the list to the item at the location indicated by the current value of the <code>selectedIndex</code> property.
see: #selectedIndex
see: #scrollToIndex() @langversion 3.0 @playerversion Flash 9.0.28.0
Scrolls the list to the item at the specified index. If the index is out of range, the scroll position does not change.
parameter: newCaretIndex The index location to scroll to. @langversion 3.0 @playerversion Flash 9.0.28.0
Returns the index of the next item in the dataProvider in which the label's first character matches a specified string character. If the search reaches the end of the dataProvider without searching all the items, it will loop back to the start. The search does not include the startIndex.
parameter: firstLetter The string character to search for
parameter: startIndex The index in the dataProvider to start at.
returns: The index of the next item in the dataProvider. @langversion 3.0 @playerversion Flash 9.0.28.0
@private
Retrieves the string that the renderer displays for the given data object based on the <code>label</code> properties of the object. This method is intended to be overwritten in sub-components. For example, List has a <code>labelField</code> and a <code>labelFunction</code> to derive the label. @langversion 3.0 @playerversion Flash 9.0.28.0
Sets a style on the renderers in the list.
parameter: name The name of the style to be set.
parameter: style The value of the style to be set. @includeExample examples/@ax-student-ar-fl-controls-SelectableList.setRendererStyle.1.as -noswf @includeExample examples/@ax-student-ar-fl-controls-SelectableList.setRendererStyle.2.as -noswf @includeExample examples/@ax-student-ar-fl-controls-SelectableList.setRendererStyle.3.as -noswf @includeExample examples/@ax-student-ar-fl-controls-SelectableList.setRendererStyle.4.as -noswf
see: #clearRendererStyle()
see: #getRendererStyle() @langversion 3.0 @playerversion Flash 9.0.28.0
Retrieves a style that is set on the renderers in the list.
parameter: name The name of the style to be retrieved.
parameter: style The value of the style to be retrieved.
see: #clearRendererStyle()
see: #setRendererStyle() @langversion 3.0 @playerversion Flash 9.0.28.0
Clears a style that is set on the renderers in the list.
parameter: name The name of the style to be cleared.
see: #getRendererStyle()
see: #setRendererStyle() @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected)
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected)
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) Moves the selection in a horizontal direction in response to the user selecting items using the left-arrow or right-arrow keys and modifiers such as the Shift and Ctrl keys. <p>Not implemented in List because the default list is single column and therefore doesn't scroll horizontally.</p>
parameter: code The key that was pressed (e.g. Keyboard.LEFT)
parameter: shiftKeytrue
if the shift key was held down when the keyboard key was pressed.
parameter: ctrlKeytrue
if the ctrl key was held down when the keyboard key was pressed
@private (protected) Moves the selection in a vertical direction in response to the user selecting items using the up-arrow or down-arrow Keys and modifiers such as the Shift and Ctrl keys.
parameter: code The key that was pressed (e.g. Keyboard.DOWN)
parameter: shiftKeytrue
if the shift key was held down when the keyboard key was pressed.
parameter: ctrlKeytrue
if the ctrl key was held down when the keyboard key was pressed @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0
(C) Æliens 27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.