Class ValueVar
Defined in widgets.js
A ValueVar is the simplest type of DOMVariable. It binds to something that has a ".getAttribute('value')" and a ".setAttribute('value', val)" interface, usually an input field or a sub-widget. This is the default DOMVariable type used by Widgets if a type is not explicitly specified.
Field Summary |
Object |
input
Stores the DOM node or widget this instance looks to for our value. |
Constructor Summary |
ValueVar
(widget, nodeName)
|
Method Summary |
Object
|
get()
Retrieve the 'value' of the targetted DOM node or widget.
|
void
|
set(value)
Set the value of the targetted DOM node or widget to the desired
value.
|
input
Object input
Stores the DOM node or widget this instance looks to for our value.
ValueVar
ValueVar(widget, nodeName)
Parameters:
widget
- The widget this ValueVar is being bound to.
nodeName
- The DOM node or Widget to bind to.
get
Object get()
Retrieve the 'value' of the targetted DOM node or widget.
set
void set(value)
Set the value of the targetted DOM node or widget to the desired
value.
Parameters:
value
- The desired value.
Documentation generated by
JSDoc on Tue May 3 17:16:26 2005