Class ox.UI.Controller
Abstract base class of all controllers.
Controllers are responsible for connecting widgets to the data model.
Defined in: configuration.js.
Constructor Attributes | Constructor Name and Description |
---|---|
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.
|
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.