This class represents a graphical element.
Defined in: Element.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
jls.gui.Element(parameters, parent)
Creates an element.
|
| Method Attributes | Method Name and Description |
|---|---|
|
addChild(child)
Adds a child.
|
|
|
addChildren(children)
Adds children.
|
|
|
destroy()
Destroys this element.
|
|
|
getAttribute(key)
Returns an attribute.
|
|
|
getChild(index)
Gets a child.
|
|
|
Returns all children.
|
|
|
Returns the layout associated with this element.
|
|
|
getStyle()
Returns the element style.
|
|
| <static> |
jls.gui.Element.invokeAndWait(fn)
Calls a function synchronously in the GUI message thread.
|
| <static> |
jls.gui.Element.invokeLater(fn)
Calls a function asynchronously in the GUI message thread.
|
|
observe(type, handler)
Register an event handler.
|
|
|
removeChild(child)
Removes a child.
|
|
|
Removes all children.
|
|
|
setAttribute(key, value)
Sets an attribute.
|
|
|
setAttributes(attributes)
Sets some attributes.
|
|
|
setLayout(layout)
Sets the layout for this element.
|
|
|
unobserve(type, handler)
Unregister an event handler.
|