Zapatec Utils

Class Zapatec.Widget

Object
   |
   +--Zapatec.EventDriven
         |
         +--Zapatec.Widget
Direct Known Subclasses:
Zapatec.ColorPicker, Zapatec.ChildWidget, Zapatec.EditInline, Zapatec.Spinner, Zapatec.ProgressBar

class Zapatec.Widget
extends Zapatec.EventDriven

Defined in zpwidget.js


Field Summary
 Object config
          
 
Constructor Summary
Zapatec.Widget(<object> oArg)
            Base widget class.
 
Method Summary
 void acceptData(<object> oArg)
           Receives data back from other widget previously passed to it using its Zapatec.Widget.receiveData() method.
 void addCircularRef(<object> oElement, <string> sProperty)
           Saves a property that must be set to null on window unload event.
 void addStandardEventListeners()
           Adds standard event listeners.
 void addUserEventListeners()
           Adds custom event listeners.
 void configure(<object> oArg)
           Configures widget.
 void createProperty(<object> oElement, <string> sProperty, <any> val)
           Assigns a value to a custom property of DOM object.
 void defineConfigOption(<string> sOption, <any> val)
           Defines config option if it is not defined yet.
 void discard()
           Deletes a reference to the object from the internal list and calls method Zapatec.Widget.removeCircularRefs().
 string formElementId(oArg)
           Forms unique element id from widget id, unique counter and provided prefix and suffix.
 string getClassName(oArg)
           Forms class name from theme name and provided prefix and suffix.
 object getConfiguration()
           Returns current configuration of the widget.
 Object getMessage(key)
           Get message for given key, make substitutions and return.
 Object hideContainer(<object> effects, <number> animSpeed, onFinish)
           Hides widget using given effects and animation speed.
 void init(<object> oArg)
           Initializes object.
 void loadData(<object> oArg)
           Loads data from the specified source.
 void loadDataHtml(<object> oSource)
           Loads data from the HTML source.
 void loadDataHtmlText(<string> sSource)
           Loads data from the HTML fragment source.
 void loadDataJson(<object> oSource)
           Loads data from the JSON source.
 void loadDataXml(<object> oSource)
           Loads data from the XML source.
 void loadTheme()
           Loads specified theme.
 void receiveData(<object> oArg)
           Loads data passed from other widget for example to view or edit them.
 void reconfigure(<object> oArg)
           Reconfigures the widget with new config options after it was initialized.
 any replyData()
           Prepares processed data to return them back to the sender in the same format as they were received in Zapatec.Widget.receiveData().
 void replyDataCancel()
           Cancels processing of the data received from the sender in Zapatec.Widget.receiveData().
 void replyDataReturn(<object> oArg)
           Returns processed data back to the specified widget (not necessarily to the same widget from which they were received in Zapatec.Widget.receiveData()).
 Object showContainer(<object> effects, <number> animSpeed, <function> onFinish)
           Shows widget using given effects and animation speed.
 Object showHideContainer(<object> effects, <number> animSpeed, onFinish, <boolean> show)
           Show/hides widget using given effects and animation speed.
<static> any callMethod(<number> iWidgetId, <string> sMethod)
           Finds a widget by id and calls specified method with specified arguments and returns value from that method.
<static> object getElementById(<string> element)
           Converts element id to reference.
<static> string getStyle(<object> element)
           Returns style attribute of the specified element.
<static> object getWidgetById(iId)
           Finds a widget by id.
 
Methods inherited from class Zapatec.EventDriven
addEventListener, unshiftEventListener, removeEventListener, getEventListeners, isEventListener, isEvent, removeEvent, fireEvent
 

Field Detail

config

Object config

Constructor Detail

Zapatec.Widget

Zapatec.Widget(<object> oArg)

Method Detail

acceptData

void acceptData(<object> oArg)

addCircularRef

void addCircularRef(<object> oElement, <string> sProperty)

addStandardEventListeners

void addStandardEventListeners()

addUserEventListeners

void addUserEventListeners()

configure

void configure(<object> oArg)

createProperty

void createProperty(<object> oElement, <string> sProperty, <any> val)

defineConfigOption

void defineConfigOption(<string> sOption, <any> val)

discard

void discard()

formElementId

string formElementId(oArg)

getClassName

string getClassName(oArg)

getConfiguration

object getConfiguration()

getMessage

Object getMessage(key)

hideContainer

Object hideContainer(<object> effects, <number> animSpeed, onFinish)

init

void init(<object> oArg)

loadData

void loadData(<object> oArg)

loadDataHtml

void loadDataHtml(<object> oSource)

loadDataHtmlText

void loadDataHtmlText(<string> sSource)

loadDataJson

void loadDataJson(<object> oSource)

loadDataXml

void loadDataXml(<object> oSource)

loadTheme

void loadTheme()

receiveData

void receiveData(<object> oArg)

reconfigure

void reconfigure(<object> oArg)

replyData

any replyData()

replyDataCancel

void replyDataCancel()

replyDataReturn

void replyDataReturn(<object> oArg)

showContainer

Object showContainer(<object> effects, <number> animSpeed, <function> onFinish)

showHideContainer

Object showHideContainer(<object> effects, <number> animSpeed, onFinish, <boolean> show)

callMethod

<static> any callMethod(<number> iWidgetId, <string> sMethod)

getElementById

<static> object getElementById(<string> element)

getStyle

<static> string getStyle(<object> element)

getWidgetById

<static> object getWidgetById(iId)

Zapatec Utils

Documentation generated by JSDoc on Thu Aug 16 12:18:39 2007