Class Index | File Index

Classes

Class ox.UI.Controller

Abstract base class of all controllers. Controllers are responsible for connecting widgets to the data model.
Defined in: configuration.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
get(data, value)
Adds a child value to a container value.
 
set(data)
Extracts a child value from a container value.
Class Detail
ox.UI.Controller()
Method Detail
{Any} get(data, value)
Adds a child value to a container value. Optionally, a replacement value for the entire container value may be returned. This is useful for composite widgets which represent scalars (i. e. not objects) as values.
Parameters:
data
The value of the container.
value
The value of the child widget.
Returns:
undefined if the data was modified in-place, or a new value of the container.

set(data)
Extracts a child value from a container value. Throws ox.UI.Controller.InvalidData if the extracted data is invalid.
Parameters:
data
The value of the container.
Returns:
The value of the child widget, or undefined if the default value of the widget should be used.

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Jan 30 2012 16:58:00 GMT+0100 (CET)