UI.ITabElement
Hierarchy
- IFrameElement
- ITabElement
Index
Properties
cleaner
description
descriptionWatcher
elementName
elementRect
isDirty
isTouched
window
x
y
z
Methods
createTexture
Creates a new UI.Texture instance with specified style applied. See UI.Texture.constructor for parameters description.
Parameters
obj: BitmapTypes
Returns Texture
debug
Parameters
canvas: Canvas
scale: number
Returns void
getBinding
Gets any value from the element.
Type parameters
- T = any
Parameters
name: string
binding name, you can access the value from the element by this name; some binding names are reserved for additional element information, e.g.
"element_obj"contains pointer to the current object and"element_rect"contains android.graphics.Rect object containing drawing rectangle
Returns IElement | Rect | T
Value that was get from the element or
nullif the element doesn't exist.
getCleanerCopy
Returns IElementCleaner
invalidate
Returns void
isReleased
Returns boolean
onBindingUpdated
Type parameters
- T
Parameters
name: string
val: T
Returns void
onDraw
Parameters
canvas: Canvas
scale: number
Returns void
onRelease
Returns void
onReset
Returns void
onSetup
Type parameters
- T = UITabElement
Parameters
desc: T
Returns void
onTouchEvent
Parameters
event: ITouchEvent
Returns void
onTouchReleased
Parameters
event: ITouchEvent
Returns void
setBinding
Passes any value to the element.
Type parameters
- T = any
Parameters
bindingName: string
binding name, you can access the value from the element by this name
value: T
value to be passed to the element
Returns void
setPosition
Sets element's position in the window's unit coordinates.
Parameters
x: number
x position
y: number
y position
Returns void
setSize
Sets element's size in the window's unit coordinates.
Parameters
width: number
element's width
height: number
element's height
Returns void
setupInitialBindings
Parameters
container: UiAbstractContainer
elementName: string
Returns void
This is the base Java abstract class, which are all Inner Core element types inherited from. In Java, to create custom element types, you can inherit your element class from this one as well. Whereas in JavaScript, you should use "custom" element type in description object, where you can specify custom behavior for different events. For more information about custom element types in JavaScript, see UI.UICustomElement.