Index

Classes

Class

Methods

Class Banana.Controls.SwitchButton


Extends Banana.Controls.Panel.

Methods borrowed from class Banana.Controls.Panel:
getTagName
Methods borrowed from class Banana.UiControl:
addControl, addCss, addCssClass, getAttribute, getAttributes, getClientId, getCss, getCssClass, getDimensions, getHtml, getHtmlAttributes, getState, getStyle, getStyleProperty, hasCssClass, registerEvents, removeAttribute, removeCssClass, removeState, setAttribute, setClientId, setCss, setEnabled, setState, setStyle, setVisible, switchCssClass, triggerEvent, unregisterEvents
Methods borrowed from class Banana.Control:
applyToChildren, bind, clear, findControl, generateUniqueId, getControls, getDomEventTypes, getFirstUiControl, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setId, setPage, setParent, unbind, unload, updateDisplay

Defined in: SwitchButton.js.

Class Detail
Banana.Controls.SwitchButton()

Creates a switch button. Default state = off (false)

Method Detail
createComponents()
{this} off()

Switches off button

Returns:
{this}
{this} on()

Switches on button

Returns:
{this}
{this} setOffImage(image)

Sets image representing the off status

Parameters:
{String} image
name
Returns:
{this}
{this} setOnImage(image)

Sets image representing the on status

Parameters:
{String} image
name
Returns:
{this}

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 05 2012 22:01:58 GMT+0100 (CET)