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 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().
 void editData(<object> oArg)
           Loads data passed from other widget to view or edit them.
 void editDataCancel()
           Cancels editing.
 any editDataGet()
           Returns edited data.
 void editDataReceive(<object> oArg)
           Receives data back from other widget previosly passed to it using its Zapatec.Widget.editData() method.
 void editDataReturn(<object> oArg)
           Returns edited data back to the widget from which they were received.
 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 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 reconfigure(<object> oArg)
           Reconfigures the widget with new config options after it was initialized.
 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

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()

editData

void editData(<object> oArg)

editDataCancel

void editDataCancel()

editDataGet

any editDataGet()

editDataReceive

void editDataReceive(<object> oArg)

editDataReturn

void editDataReturn(<object> oArg)

formElementId

string formElementId(oArg)

getClassName

string getClassName(oArg)

getConfiguration

object getConfiguration()

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()

reconfigure

void reconfigure(<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 Apr 5 19:15:07 2007