Index

Classes

Class

Methods

Class Banana.Controls.DataControl


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, createComponents, findControl, generateUniqueId, getControls, getDomEventTypes, getFirstUiControl, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setId, setPage, setParent, unbind, unload

Defined in: DataControl.js.

Class Detail
Banana.Controls.DataControl()

Creates a base data control. Most Data controls in Banana are derived from this base data control. It adds set/get data support. And as well support to bind to datasets. @see Banana.Data.DataSet Changes made in controls are automatically redirected to the data property to ensure always up to date data. Still you can as a user bind on the 'dataChanged' event to listen to data changes. Depending on the type of the control you can also use dom events to detect changes.

Method Detail
{this} dataSetBind(bind)

binds a value from data from dataset to data in this control

Parameters:
{mixed} Banana.Data.DataSet
|| name of the dataset
{string} bind
property of the data. can be like value.subvalue.subsubvalue
Returns:
{this}
{mixed} getData()

returns the most up to date data from the control

Returns:
{mixed} data
{this} setData(data, ignoreEvent, ignoreDom)

Sets data on control. when this function is called we also trigger a datachanged event and update the dom.

Parameters:
{mixed} data
for control
{boolean} ignoreEvent
when true no datachanged is triggered. This is useful when you are running in a circle or performance issues.
{boolean} ignoreDom
when true setDomData function is not called. Useful in cases of optimizing performance.
Returns:
{this}
unDataSetBind()

Unbinds this control from dataset

Parameters:
{mixed} Banana.Data.DataSet
|| name of the dataset
updateDisplay()

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