/*! * ObjectOriented UserInterface Inspector class. * * @copyright 2011-2013 OOJS Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * Non-modal interface in a child frame. * * @class * @abstract * @extends OO.ui.Window * * @constructor * @param {OO.ui.WindowSet} windowSet Window set this dialog is part of * @param {Object} [config] Configuration options */ OO.ui.Inspector = function OoUiInspector( windowSet, config ) { // Parent constructor OO.ui.Window.call( this, windowSet, config ); // Properties this.initialSelection = null; // Initialization this.$element.addClass( 'oo-ui-inspector' ); }; /* Inheritance */ OO.inheritClass( OO.ui.Inspector, OO.ui.Window ); /* Static Properties */ OO.ui.Inspector.static.titleMessage = 'oo-ui-inspector-title'; /** * Symbolic name of dialog. * * @abstract * @static * @property {string} * @inheritable */ OO.ui.Inspector.static.name = ''; /** * The inspector comes with a remove button * @static * @inheritable * @property {boolean} */ OO.ui.Inspector.static.removeable = true; /* Methods */ /** * Handle frame ready events. * * @method */ OO.ui.Inspector.prototype.initialize = function () { // Parent method OO.ui.Window.prototype.initialize.call( this ); // Initialization this.frame.$content.addClass( 'oo-ui-inspector-content' ); this.$form = this.$( '