Class Widget

Defined in widgets.js

Widget is the base class that XBLinJS is built on. It is too complicated to explain here; see the documentation .


Field Summary
 Object content
          Contains the content of the widget.
 
Constructor Summary
Widget ()
            Widget is the base class that implements all of the features of the framework.
 
Method Summary
 void appendChild(element, target)
           Appends a DOM node, text fragment, or widget to the specified append target.
 void appendTo(parent)
           Appends this widget to some DOM node.
 void checkObjectDef(def)
           A function to issue various warnings with the object specs as they occur.
 Object create(tagName, attDict, childText)
           A convenience function for creating DOM elements, drawing on the XBLinJS flavor for the creation of the base widget.
 void createObjectCustom(objDef, child)
           This method should be overridden to perform any custom object creation.
 void finishReplacementChildrenAdding()
           This method will be called when replaceElementWithWidget has finished adding any children there are for the tag.
 Object getGlobals()
           Returns the relevant global storage for this widget.
 void hide()
           Hides the widget.
 void init(atts)
          
 void initDOM(atts)
           This initializes the data storage and DOM nodes of the widget.
 void initWidget(atts)
           This should do any final initialization of the widget now that we have all the DOM nodes, such as setting up the value of those nodes and such.
 void prependChild(element, target)
           Prepends a DOM node, text fragment, or Widget to the specified append target.
 Object registerEventHandler(eventType, handleMethod, target, context)
           Registers an event handler.
 void show()
           Shows the widget.
 Object toString()
           Returns a string identifying the type of the widget, and how to retrieve it: [type WidgetGlobals.Widgets[id]].

Field Detail

content

Object content

Constructor Detail

Widget

Widget()

Method Detail

appendChild

void appendChild(element, target)

appendTo

void appendTo(parent)

checkObjectDef

void checkObjectDef(def)

create

Object create(tagName, attDict, childText)

createObjectCustom

void createObjectCustom(objDef, child)

finishReplacementChildrenAdding

void finishReplacementChildrenAdding()

getGlobals

Object getGlobals()

hide

void hide()

init

void init(atts)

initDOM

void initDOM(atts)

initWidget

void initWidget(atts)

prependChild

void prependChild(element, target)

registerEventHandler

Object registerEventHandler(eventType, handleMethod, target, context)

show

void show()

toString

Object toString()


Documentation generated by JSDoc on Tue May 3 17:16:26 2005