Class ZmPrefView
Class Detail
ZmPrefView(params, parent, posStyle, controller)
Creates an empty view of the preference pages.
Author: Conrad Damon.
Method Detail
{Array|Boolean}
getChangedPrefs(dirtyCheck, noValidation, batchCommand)
Gets the changed preferences. Each prefs page is checked in
turn. This method can also be used to check simply whether _any_
prefs have changed, in which case it short-circuits as soon as it finds one that has changed.
{Array}
getPostSaveCallbacks()
This method iterates over the preference pages to see if any of them have
actions to perform after saving. If the page has a
getPostSaveCallback method and it returns a callback, the pref
controller will call it after performing any save. This is done for each page
that returns a callback.
{Array}
getPreSaveCallbacks()
This method iterates over the preference pages to see if any of them have
actions to perform before saving. If the page has a
getPreSaveCallback method and it returns a callback, the pref
controller will call it before performing any save. This is done for each
page that returns a callback.
The pre-save callback is passed a callback that MUST be called upon completion of the pre-save code. This is so the page can perform its pre-save behavior asynchronously without the need to immediately return to the pref controller. Note: When calling the continue callback, the pre-save code MUST pass a single boolean signifying the success of the the pre-save operation. An example pre-save callback implementation: MyPrefView.prototype.getPreSaveCallback = function() { return new AjxCallback(this, this._preSaveAction, []); }; MyPrefView.prototype._preSaveAction = function(continueCallback, batchCommand) { var success = true; // perform some operation continueCallback.run(success); };
{Boolean}
isDirty()
Checks if any preference has changed.
selectSection(sectionId)
Selects the section (tab) with the given id.
|
||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:37 GMT-0400 (EDT)
|