class TableView
haxe.ui.core.Component
↪ haxe.ui.containers.ScrollView
↪ haxe.ui.containers.TableView
Properties |
dataSource:DataSource<Dynamic> |
itemCount:Int |
itemHeight:Float |
itemRenderer:ItemRenderer |
itemRendererClass:Class<ItemRenderer> |
itemRendererFunction:ItemRendererFunction4 |
itemWidth:Float |
longPressSelectionTime:Int |
selectedIndex:Int |
selectedIndices:Array<Int> |
selectedItem:Dynamic |
selectedItems:Array<Dynamic> |
selectionMode:SelectionMode |
variableItemSize:Bool |
Methods |
cloneComponent():TableView |
Display tree related properties and methods |
hidden:Bool
Whether this component is hidden or not
|
numComponents:Int
Gets the number of child components under this component instance
|
rootComponent:Component
The top level component of this component instance
|
addComponent(child:Component):Component
Adds a child component to this component instance
|
addComponentAt(child:Component, index:Int):Component
Adds a child component to this component instance
|
findAncestor(criteria:String = null, type:Class<T> = null, searchType:String = "id"):Null<T>
Finds a specific parent in this components display tree and can optionally cast the result
|
findComponent(criteria:String = null, type:Class<T> = null, recursive:Bool = null, searchType:String = "id"):Null<T>
Finds a specific child in this components display tree (recusively if desired) and can optionally cast the result
|
getComponentAt(index:Int):Component
Gets a child component at a specified index
|
getComponentIndex(child:Component):Int
Gets the index of a child component
|
hide()
Hides this component and all its children
|
removeAllComponents(dispose:Bool = true)
Removes all child components from this component instance
|
removeComponent(child:Component, dispose:Bool = true, invalidate:Bool = true):Component
Removes the specified child component from this component instance
|
removeComponentAt(index:Int, dispose:Bool = true, invalidate:Bool = true):Component
Removes the child component from this component instance
|
show()
Shows this component and all its children
|
Event related properties and methods |
onChange:UIEvent->Void |
onClick:MouseEvent->Void |
onRightClick:MouseEvent->Void |
Layout related properties and methods |
includeInLayout:Bool
Whether to use this component as part of its part layout
Note: invisible components are not included in parent layouts |
layout:Layout
The layout of this component
|
Script related properties and methods |
namedComponents:Array<Component>
Recursively generates list of all child components that have specified an id
|
script:String
A script string to associate with this component
Note: setting this to non-null will cause this component to create and maintain its own script interpreter during initialsation |
scriptAccess:Bool
Whether or not this component is allowed to be exposed to script interpreters (defaults to _true_)
|
addScriptEvent(event:String, script:String)
Registers a piece of hscript to be execute when a certain UIEvent is fired
|
executeScriptCall(expr:String, variablesMap = null)
Execute a script call
Note: this component will first attempt to use its own script interpreter if its avialable otherwise it will scan its parents until it finds one |
Style properties |
backgroundColor:Null<Color> |
borderColor:Null<Color> |
borderRadius:Null<Float> |
borderSize:Null<Float> |
clip:Null<Bool> |
color:Null<Color> |
horizontalAlign:String |
marginBottom:Null<Float> |
marginLeft:Null<Float> |
marginRight:Null<Float> |
marginTop:Null<Float> |
opacity:Null<Float> |
paddingBottom:Null<Float> |
paddingLeft:Null<Float> |
paddingRight:Null<Float> |
paddingTop:Null<Float> |
verticalAlign:String |
Style related properties and methods |
customStyle:Style
A custom style object that will appled to this component after any css rules have been matched and applied
|
styleNames:String
A string representation of the css classes associated with this component
|
styleString:String
An inline css string that will be parsed and applied as a custom style
|
addClass(name:String, invalidate:Bool = true, recursive:Bool = false)
Adds a css style name to this component
|
hasClass(name:String):Bool
Whether or not this component has a css class associated with it
|
removeClass(name:String, invalidate:Bool = true, recursive:Bool = false)
Removes a css style name from this component
|
swapClass(classToAdd:String, classToRemove:String = null, invalidate:Bool = true, recursive:Bool = false)
Adds a css style name to this component
|