class ListView<T>
package buw
extends Widget › Sprite › DisplayObjectContainer › InteractiveObject › DisplayObject › EventDispatcher
list view (to display collections of items)
Item 1 |
Item 2 |
Item 3 |
Constructor
new (renderer:T ‑> Widget, ?listener:T ‑> Void, ?relativeWidth:Float, ?align:Int)
Parameters:
renderer | how to display an item |
---|---|
listener | what to do with the clicked item; defaults to null |
relativeWidth | the widget relative width; defaults to 1 |
align | the widgets alignement (-1=left, 0=centered, 1=right); defaults to 0 |
Throws:
String | if relativeWidth not in [0..1] or if align not in [-1, 0, 1] |
---|