PageRenderTime 129ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/FD3/FlashDevelop/Bin/Debug/Library/AS3/frameworks/FlashIDE/fl/controls/SelectableList.as

https://bitbucket.org/kkszysiu/flashdevelop
ActionScript | 406 lines | 120 code | 4 blank | 282 comment | 0 complexity | 2ab7a13471f2c0caade09567ee41a236 MD5 | raw file
  1. package fl.controls
  2. {
  3. import fl.containers.BaseScrollPane;
  4. import fl.controls.listClasses.CellRenderer;
  5. import fl.controls.listClasses.ICellRenderer;
  6. import fl.controls.listClasses.ListData;
  7. import fl.controls.ScrollPolicy;
  8. import fl.core.InvalidationType;
  9. import fl.core.UIComponent;
  10. import fl.data.DataProvider;
  11. import fl.data.SimpleCollectionItem;
  12. import fl.events.DataChangeEvent;
  13. import fl.events.DataChangeType;
  14. import fl.events.ListEvent;
  15. import fl.events.ScrollEvent;
  16. import fl.managers.IFocusManagerComponent;
  17. import flash.display.DisplayObject;
  18. import flash.display.Sprite;
  19. import flash.events.Event;
  20. import flash.events.KeyboardEvent;
  21. import flash.events.MouseEvent;
  22. import flash.ui.Keyboard;
  23. import flash.utils.Dictionary;
  24. /**
  25. * 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
  26. */
  27. [Event(name="itemRollOut", type="fl.events.ListEvent")]
  28. /**
  29. * 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
  30. */
  31. [Event(name="itemRollOver", type="fl.events.ListEvent")]
  32. /**
  33. * 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
  34. */
  35. [Event(name="rollOver", type="flash.events.MouseEvent")]
  36. /**
  37. * 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
  38. */
  39. [Event(name="rollOut", type="flash.events.MouseEvent")]
  40. /**
  41. * 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
  42. */
  43. [Event(name="itemClick", type="fl.events.ListEvent")]
  44. /**
  45. * 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
  46. */
  47. [Event(name="itemDoubleClick", type="fl.events.ListEvent")]
  48. /**
  49. * Dispatched when a different item is selected in the list. * * @eventType flash.events.Event.CHANGE * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  50. */
  51. [Event(name="change", type="flash.events.Event")]
  52. /**
  53. * Dispatched when the user scrolls horizontally or vertically. * * @eventType fl.events.ScrollEvent.SCROLL * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  54. */
  55. [Event(name="scroll", type="fl.events.ScrollEvent")]
  56. /**
  57. * The class that provides the skin for the background of the component. * * @default List_skin * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  58. */
  59. [Style(name="skin", type="Class")]
  60. /**
  61. * 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
  62. */
  63. [Style(name="cellRenderer", type="Class")]
  64. /**
  65. * 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
  66. */
  67. [Style(name="disabledAlpha", type="Number")]
  68. /**
  69. * 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
  70. */
  71. [Style(name="contentPadding", type="Number", format="Length")]
  72. /**
  73. * The 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
  74. */
  75. public class SelectableList extends BaseScrollPane implements IFocusManagerComponent
  76. {
  77. /**
  78. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  79. */
  80. protected var listHolder : Sprite;
  81. /**
  82. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  83. */
  84. protected var list : Sprite;
  85. /**
  86. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  87. */
  88. protected var _dataProvider : DataProvider;
  89. /**
  90. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  91. */
  92. protected var activeCellRenderers : Array;
  93. /**
  94. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  95. */
  96. protected var availableCellRenderers : Array;
  97. /**
  98. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  99. */
  100. protected var renderedItems : Dictionary;
  101. /**
  102. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  103. */
  104. protected var invalidItems : Dictionary;
  105. /**
  106. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  107. */
  108. protected var _horizontalScrollPosition : Number;
  109. /**
  110. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  111. */
  112. protected var _verticalScrollPosition : Number;
  113. /**
  114. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  115. */
  116. protected var _allowMultipleSelection : Boolean;
  117. /**
  118. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  119. */
  120. protected var _selectable : Boolean;
  121. /**
  122. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  123. */
  124. protected var _selectedIndices : Array;
  125. /**
  126. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  127. */
  128. protected var caretIndex : int;
  129. /**
  130. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  131. */
  132. protected var lastCaretIndex : int;
  133. /**
  134. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  135. */
  136. protected var preChangeItems : Array;
  137. /**
  138. * @private
  139. */
  140. private var collectionItemImport : SimpleCollectionItem;
  141. /**
  142. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  143. */
  144. protected var rendererStyles : Object;
  145. /**
  146. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  147. */
  148. protected var updatedRendererStyles : Object;
  149. /**
  150. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  151. */
  152. private static var defaultStyles : Object;
  153. /**
  154. * @private * Creates the Accessibility class. * This method is called from UIComponent. * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  155. */
  156. public static var createAccessibilityImplementation : Function;
  157. /**
  158. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  159. */
  160. public function set enabled (value:Boolean) : void;
  161. /**
  162. * 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
  163. */
  164. public function get dataProvider () : DataProvider;
  165. /**
  166. * @private (setter) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  167. */
  168. public function set dataProvider (value:DataProvider) : void;
  169. /**
  170. * 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
  171. */
  172. public function get maxHorizontalScrollPosition () : Number;
  173. /**
  174. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  175. */
  176. public function set maxHorizontalScrollPosition (value:Number) : void;
  177. /**
  178. * Gets the number of items in the data provider. * * @includeExample examples/SelectableList.length.1.as -noswf * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  179. */
  180. public function get length () : uint;
  181. /**
  182. * 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
  183. */
  184. public function get allowMultipleSelection () : Boolean;
  185. /**
  186. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  187. */
  188. public function set allowMultipleSelection (value:Boolean) : void;
  189. /**
  190. * 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
  191. */
  192. public function get selectable () : Boolean;
  193. /**
  194. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  195. */
  196. public function set selectable (value:Boolean) : void;
  197. /**
  198. * 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/SelectableList.selectedIndex.1.as -noswf * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  199. */
  200. public function get selectedIndex () : int;
  201. /**
  202. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  203. */
  204. public function set selectedIndex (value:int) : void;
  205. /**
  206. * 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
  207. */
  208. public function get selectedIndices () : Array;
  209. /**
  210. * @private * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  211. */
  212. public function set selectedIndices (value:Array) : void;
  213. /**
  214. * 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/SelectableList.selectedIndex.1.as -noswf * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  215. */
  216. public function get selectedItem () : Object;
  217. /**
  218. * @private (setter) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  219. */
  220. public function set selectedItem (value:Object) : void;
  221. /**
  222. * 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/SelectableList.selectedItems.1.as -noswf * * @see #allowMultipleSelection * @see #selectedIndices * @see #selectedItem * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  223. */
  224. public function get selectedItems () : Array;
  225. /**
  226. * @private (setter) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  227. */
  228. public function set selectedItems (value:Array) : void;
  229. /**
  230. * 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 SelectableList.</p> * * @includeExample examples/SelectableList.rowCount.1.as -noswf * * @default 0 * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  231. */
  232. public function get rowCount () : uint;
  233. /**
  234. * @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
  235. */
  236. public static function getStyleDefinition () : Object;
  237. /**
  238. * Creates a new SelectableList instance. * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  239. */
  240. public function SelectableList ();
  241. /**
  242. * 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
  243. */
  244. public function clearSelection () : void;
  245. /**
  246. * Retrieves the ICellRenderer for a given item object, if there is one. * This method always returns <code>null</code>. * * @param item The item in the data provider. * * @return A value of <code>null</code>. * * @includeExample examples/SelectableList.itemToCellRenderer.1.as -noswf * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  247. */
  248. public function itemToCellRenderer (item:Object) : ICellRenderer;
  249. /**
  250. * 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> * * @param item The item to be added to the data provider. * * @see #addItemAt() * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  251. */
  252. public function addItem (item:Object) : void;
  253. /**
  254. * 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. * * @param item The item to be added to the list. * * @param 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
  255. */
  256. public function addItemAt (item:Object, index:uint) : void;
  257. /**
  258. * Removes all items from the list. * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  259. */
  260. public function removeAll () : void;
  261. /**
  262. * Retrieves the item at the specified index. * * @param index The index of the item to be retrieved. * * @return 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
  263. */
  264. public function getItemAt (index:uint) : Object;
  265. /**
  266. * Removes the specified item from the list. * * @param item The item to be removed. * * @return 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
  267. */
  268. public function removeItem (item:Object) : Object;
  269. /**
  270. * Removes the item at the specified index position. The indices of * items after the specified index location are decremented by 1. * * @param index The index of the item in the data provider to be removed. * * @return The item that was removed. * * @see #removeAll() * @see #removeItem() * @see #replaceItemAt() * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  271. */
  272. public function removeItemAt (index:uint) : Object;
  273. /**
  274. * 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. * * @param item The item to replace the item at the specified index location. * * @param index The index position of the item to be replaced. * * @return 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
  275. */
  276. public function replaceItemAt (item:Object, index:uint) : Object;
  277. /**
  278. * Invalidates the whole list, forcing the list items to be redrawn. * * @see #invalidateItem() * @see #invalidateItemAt() * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  279. */
  280. public function invalidateList () : void;
  281. /**
  282. * Invalidates a specific item renderer. * * @param 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.
  283. */
  284. public function invalidateItem (item:Object) : void;
  285. /**
  286. * Invalidates the renderer for the item at the specified index. * * @param 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?
  287. */
  288. public function invalidateItemAt (index:uint) : void;
  289. /**
  290. * 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. * * @param sortArgs The arguments against which to sort. * * @return 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
  291. */
  292. public function sortItems (...sortArgs:Array) : *;
  293. /**
  294. * Sorts the elements of the current data provider by one or more * of its fields. * * @param field The field on which to sort. * @param options Sort arguments that are used to override the default sort behavior. * Separate two or more arguments with the bitwise OR (|) operator. * * @return 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/SelectableList.sortItemsOn.1.as -noswf * * @see #sortItems() * @see fl.data.DataProvider#sortOn() DataProvider.sortOn() * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  295. */
  296. public function sortItemsOn (field:String, options:Object = null) : *;
  297. /**
  298. * Checks whether the specified item is selected in the list. * * @param item The item to check. * * @return This method returns <code>true</code> 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
  299. */
  300. public function isItemSelected (item:Object) : Boolean;
  301. /**
  302. * 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
  303. */
  304. public function scrollToSelected () : void;
  305. /**
  306. * Scrolls the list to the item at the specified index. If the index * is out of range, the scroll position does not change. * * @param newCaretIndex The index location to scroll to. * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  307. */
  308. public function scrollToIndex (newCaretIndex:int) : void;
  309. /**
  310. * 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. * * @param firstLetter The string character to search for * @param startIndex The index in the dataProvider to start at. * * @return The index of the next item in the dataProvider. * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  311. */
  312. public function getNextIndexAtLetter (firstLetter:String, startIndex:int = -1) : int;
  313. /**
  314. * 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
  315. */
  316. public function itemToLabel (item:Object) : String;
  317. /**
  318. * Sets a style on the renderers in the list. * * @param name The name of the style to be set. * @param style The value of the style to be set. * * @includeExample examples/SelectableList.setRendererStyle.1.as -noswf * @includeExample examples/SelectableList.setRendererStyle.2.as -noswf * @includeExample examples/SelectableList.setRendererStyle.3.as -noswf * @includeExample examples/SelectableList.setRendererStyle.4.as -noswf * * @see #clearRendererStyle() * @see #getRendererStyle() * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  319. */
  320. public function setRendererStyle (name:String, style:Object, column:uint = 0) : void;
  321. /**
  322. * Retrieves a style that is set on the renderers in the list. * * @param name The name of the style to be retrieved. * @param style The value of the style to be retrieved. * * @see #clearRendererStyle() * @see #setRendererStyle() * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  323. */
  324. public function getRendererStyle (name:String, column:int = -1) : Object;
  325. /**
  326. * Clears a style that is set on the renderers in the list. * * @param name The name of the style to be cleared. * * @see #getRendererStyle() * @see #setRendererStyle() * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  327. */
  328. public function clearRendererStyle (name:String, column:int = -1) : void;
  329. /**
  330. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  331. */
  332. protected function configUI () : void;
  333. /**
  334. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  335. */
  336. protected function _invalidateList () : void;
  337. /**
  338. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  339. */
  340. protected function handleDataChange (event:DataChangeEvent) : void;
  341. /**
  342. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  343. */
  344. protected function handleCellRendererMouseEvent (event:MouseEvent) : void;
  345. /**
  346. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  347. */
  348. protected function handleCellRendererClick (event:MouseEvent) : void;
  349. /**
  350. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  351. */
  352. protected function handleCellRendererChange (event:Event) : void;
  353. /**
  354. * @private (protected)
  355. */
  356. protected function handleCellRendererDoubleClick (event:MouseEvent) : void;
  357. /**
  358. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  359. */
  360. protected function setHorizontalScrollPosition (scroll:Number, fireEvent:Boolean = false) : void;
  361. /**
  362. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  363. */
  364. protected function setVerticalScrollPosition (scroll:Number, fireEvent:Boolean = false) : void;
  365. /**
  366. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  367. */
  368. protected function draw () : void;
  369. /**
  370. * @private (protected)
  371. */
  372. protected function drawLayout () : void;
  373. /**
  374. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  375. */
  376. protected function updateRendererStyles () : void;
  377. /**
  378. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  379. */
  380. protected function drawList () : void;
  381. /**
  382. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  383. */
  384. protected function keyDownHandler (event:KeyboardEvent) : void;
  385. /**
  386. * @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> * * @param code The key that was pressed (e.g. Keyboard.LEFT) * * @param shiftKey <code>true</code> if the shift key was held down when * the keyboard key was pressed. * * @param ctrlKey <code>true</code> if the ctrl key was held down when * the keyboard key was pressed *
  387. */
  388. protected function moveSelectionHorizontally (code:uint, shiftKey:Boolean, ctrlKey:Boolean) : void;
  389. /**
  390. * @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. * * @param code The key that was pressed (e.g. Keyboard.DOWN) * * @param shiftKey <code>true</code> if the shift key was held down when * the keyboard key was pressed. * * @param ctrlKey <code>true</code> if the ctrl key was held down when * the keyboard key was pressed * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  391. */
  392. protected function moveSelectionVertically (code:uint, shiftKey:Boolean, ctrlKey:Boolean) : void;
  393. /**
  394. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  395. */
  396. protected function initializeAccessibility () : void;
  397. /**
  398. * @private (protected) * * @langversion 3.0 * @playerversion Flash 9.0.28.0
  399. */
  400. protected function onPreChange (event:DataChangeEvent) : void;
  401. }
  402. }