Skip to content

API UIElement Method List

fahimc edited this page Mar 30, 2013 · 11 revisions

display - DOM Element.

layoutCollection - Array of Layout Managers

className(value):String - getter and setter for setting the display element's class name.

x(value):Number - getter and setter for setting the display element's left position.

y(value):Number - getter and setter for setting the display element's top position.

width(value):Number - getter and setter for setting the display element's width.

height(value):Number - getter and setter for setting the display element's height.

visible(value):Boolean - getter and setter for setting the display element's visibility.

alpha(value):Number - getter and setter for setting the display element's alpha.

buttonMode(value):Boolean - getter and setter for setting the display element's cursor to a pointer.

build() - sets up the element.

addChild(value) - adds a child element (value must be a UIElement or an extension).

removeChild(value) - removes a child element (value must be a UIElement or an extension).

addUIChild(value) - adds a child element which does not get effected by layouts (value must be a UIElement or an extension).

removeUIChild(value) - removes a child element which does not get effected by layouts (value must be a UIElement or an extension).

layout(value):Layout - getter and setter for adding layout decorators. Returns the last Layout in the Array or if you pass in the Layout Class (not a new instance) then it will return the instance of that layout.

removeLayout(value) - removes a layout. pass in the Layout Class (not a new instance).

setStyle(value) - getter and setter for setting styles of this element.

arrange(value) - getter and setter for setting arrangements of this element.

bareWidth() - get the raw width of this element.

bareHeight() - get the raw height of this element.

createHandler(Class,function): returns a Event Handler - wraps a function with an event handler to ensure that 'this' is still the parent. provide 'this' as the Class (or another Class) and your callback method.

removeHandler(Class,function) - remove the event handler that you created.

Clone this wiki locally