Source: viewmanager.js

goog.provide('sync.view.ViewManager');


/**
 * Helper object used to control the lateral views.
 *
 * This object contains configuration of the views layout. A view is not visible before a view renderer is installed
 * for it.
 *
 * As of oXygen XML WebApp 17.1, the views are displayed in the east side-panel. The order is the one specified below.
 * In future releases, there might be more layout options.
 *
 * Changes to the default layout should be performed when the plugin code is loaded.
 *
 * Frameworks should not modify the layout - they have several reserved views with ids:
 * 'framework-specific-N' with N from 1 to 9.
 *
 * @constructor
 */
sync.view.ViewManager = function() {
};

/**
 * Adds a new view with the given ID. The view is not rendered until a {@link sync.view.ViewRenderer} is installed
 * for it.
 *
 * @param {string} viewId The id of the view to be added.
 */
sync.view.ViewManager.prototype.addView = function(viewId) {
};

/**
 * Removes the given view from the layout.
 *
 * @param {string} viewId The id of the view to be removed.
 */
sync.view.ViewManager.prototype.removeView = function(viewId) {
};

/**
 * @return {Array<string>} The list of IDs of all views defined in the layout.
 */
sync.view.ViewManager.prototype.getViewIds = function() {
};

/**
 * Focuses the view with the given ID.
 *
 * @param {string} viewId The ID of the view to focus.
 */
sync.view.ViewManager.prototype.focusView = function(viewId) {
};

/**
 * Install the view renderer for the view with the given ID.
 * It takes care of rendering the view content.
 *
 * @param {string} viewId The ID of the view to focus.
 * @param {sync.view.ViewRenderer} view The view handler.
 */
sync.view.ViewManager.prototype.installView = function(viewId, view) {
};


/**
 * Hides the application header bar that contains:
 *  - the application logo
 *  - some basic actions - when the header is hidden they migrate to the main toolbar.
 *  - the file name
 *  - the user name
 */
sync.view.ViewManager.prototype.hideAppBar = function() {
};