Index

Classes

Class

Methods

Class Banana.Controls.ListControl


Extends Banana.Controls.DataControl.

Methods borrowed from class Banana.Controls.DataControl:
dataSetBind, getData, setData, unDataSetBind, updateDisplay
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: ListControl.js.

Class Detail
Banana.Controls.ListControl()

Create a base list control. Providing functionality to bind the datasource of this control to datasets. This control should only used as an extension class for more specific controls.

Method Detail
{this} dataSetSourceBind(bind)

binds a value from datasource from dataset to datasource 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} getDataSource()
Returns:
{mixed}
setDataKeyField(key)
Parameters:
{String} key
of the field where the key resists in. Only use this when your datasource contains complex objects
Returns:
this;
{this} setDataSource(data, when)

sets datasource on control. when this method is called we invalidate the control to let the page rerender the control. We also trigger a dataSourceChanged event

Parameters:
{mixed} data
for control
{boolean} when
true no dataSourCechanged event is triggered
Returns:
{this}
setDataValueField(key)
Parameters:
{String} key
of the field where the value resists in. Only use this when your datasource contains complex objects
Returns:
this;

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