Class Index | File Index

Classes

Class ox.Configuration.Page


Extends ox.Configuration.View.
A configuration page with a single form.
Defined in: configuration.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ox.Configuration.Page(node, title, save_button)
Field Summary
Field Attributes Field Name and Description
 
A callback which is called to get the data for the view.
 
An unmodified copy of the currently edited data object.
 
A callback which is called to save the page's data.
Fields borrowed from class ox.Configuration.View:
childWidth, content, init
Fields borrowed from class ox.UI.Widget:
default_value, enabled, formnode, initialized, isEnabled, isVisible, node, parent, visible, width
Methods borrowed from class ox.Configuration.View:
cancelView, enter, leave, saveView, viewModified
Methods borrowed from class ox.UI.Container:
addCells, addRow, addWidget, deleteWidget, get, set
Methods borrowed from class ox.UI.Widget:
addContent, applyEnabled, applyVisible, disable, enable, hide, remove, resize, setEnabled, setParent, setVisible, show
Class Detail
ox.Configuration.Page(node, title, save_button)
Parameters:
{ox.Configuration.LeafNode} node
A ox.Configuration.LeafNode which will be configured to open this page.
{I18nString} title
The page title.
{Boolean} save_button
Whether the default save button should be displayed in the menu. Defaults to true. Without the save button, viewModified always returns false.
Field Detail
{Function} load
A callback which is called to get the data for the view. It has a continuation function as parameter, which should be called with the data as parameter when the data becomes available. If the continuation is called without a parameter, the view is set to the default value and disabled.

original
An unmodified copy of the currently edited data object.

{Function} save
A callback which is called to save the page's data. It has two parameters: data and cont. data is the data object to save. cont is a continuation functions which should be called after the data was saved successfully. If the continuation function is called with a parameter, the value of the parameter is used as the new value.

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