/*!
- * OOjs UI v0.1.0-pre (ac0cc69508)
+ * OOjs UI v0.1.0-pre (53f2410336)
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2014 OOjs Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: Thu Mar 13 2014 17:11:12 GMT-0700 (PDT)
+ * Date: Wed Mar 19 2014 15:51:16 GMT-0700 (PDT)
*/
( function () {
*/
OO.ui.Frame = function OoUiFrame( config ) {
// Parent constructor
- OO.ui.Element.call( this, config );
+ OO.ui.Frame.super.call( this, config );
// Mixin constructors
OO.EventEmitter.call( this );
*/
OO.ui.Window = function OoUiWindow( config ) {
// Parent constructor
- OO.ui.Element.call( this, config );
+ OO.ui.Window.super.call( this, config );
// Mixin constructors
OO.EventEmitter.call( this );
*/
OO.ui.WindowSet = function OoUiWindowSet( factory, config ) {
// Parent constructor
- OO.ui.Element.call( this, config );
+ OO.ui.WindowSet.super.call( this, config );
// Mixin constructors
OO.EventEmitter.call( this );
config = $.extend( { 'size': 'large' }, config );
// Parent constructor
- OO.ui.Window.call( this, config );
+ OO.ui.Dialog.super.call( this, config );
// Properties
this.visible = false;
*/
OO.ui.Dialog.prototype.initialize = function () {
// Parent method
- OO.ui.Window.prototype.initialize.call( this );
+ OO.ui.Dialog.super.prototype.initialize.call( this );
// Properties
this.closeButton = new OO.ui.ButtonWidget( {
*/
OO.ui.Dialog.prototype.setup = function ( data ) {
// Parent method
- OO.ui.Window.prototype.setup.call( this, data );
+ OO.ui.Dialog.super.prototype.setup.call( this, data );
// Prevent scrolling in top-level window
this.$( window ).on( 'mousewheel', this.onWindowMouseWheelHandler );
*/
OO.ui.Dialog.prototype.teardown = function ( data ) {
// Parent method
- OO.ui.Window.prototype.teardown.call( this, data );
+ OO.ui.Dialog.super.prototype.teardown.call( this, data );
// Allow scrolling in top-level window
this.$( window ).off( 'mousewheel', this.onWindowMouseWheelHandler );
// Allow transition to complete before actually closing
setTimeout( function () {
// Parent method
- OO.ui.Window.prototype.close.call( dialog, data );
+ OO.ui.Dialog.super.prototype.close.call( dialog, data );
}, 250 );
}
};
config = config || {};
// Parent constructor
- OO.ui.Element.call( this, config );
+ OO.ui.Layout.super.call( this, config );
// Mixin constructors
OO.EventEmitter.call( this );
config = $.extend( { 'disabled': false }, config );
// Parent constructor
- OO.ui.Element.call( this, config );
+ OO.ui.Widget.super.call( this, config );
// Mixin constructors
OO.EventEmitter.call( this );
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.Tool.super.call( this, config );
// Mixin constructors
OO.ui.IconedElement.call( this, this.$( '<span>' ), config );
* @mixins OO.ui.GroupElement
*
* @constructor
- * @param {OO.Factory} toolFactory Factory for creating tools
+ * @param {OO.ui.ToolFactory} toolFactory Factory for creating tools
* @param {Object} [config] Configuration options
* @cfg {boolean} [actions] Add an actions section opposite to the tools
* @cfg {boolean} [shadow] Add a shadow below the toolbar
config = config || {};
// Parent constructor
- OO.ui.Element.call( this, config );
+ OO.ui.Toolbar.super.call( this, config );
// Mixin constructors
OO.EventEmitter.call( this );
/**
* Get the tool factory.
*
- * @return {OO.Factory} Tool factory
+ * @return {OO.ui.ToolFactory} Tool factory
*/
OO.ui.Toolbar.prototype.getToolFactory = function () {
return this.toolFactory;
*/
OO.ui.ToolFactory = function OoUiToolFactory() {
// Parent constructor
- OO.Factory.call( this );
+ OO.ui.ToolFactory.super.call( this );
};
/* Inheritance */
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.ToolGroup.super.call( this, config );
// Mixin constructors
OO.ui.GroupElement.call( this, this.$( '<div>' ), config );
config = config || {};
// Parent constructor
- OO.ui.Layout.call( this, config );
+ OO.ui.FieldsetLayout.super.call( this, config );
// Mixin constructors
OO.ui.IconedElement.call( this, this.$( '<div>' ), config );
config = $.extend( { 'align': 'left' }, config );
// Parent constructor
- OO.ui.Layout.call( this, config );
+ OO.ui.FieldLayout.super.call( this, config );
// Mixin constructors
OO.ui.LabeledElement.call( this, this.$( '<label>' ), config );
config = config || {};
// Parent constructor
- OO.ui.Layout.call( this, config );
+ OO.ui.GridLayout.super.call( this, config );
// Properties
this.panels = [];
config = config || {};
// Parent constructor
- OO.ui.Layout.call( this, config );
+ OO.ui.BookletLayout.super.call( this, config );
// Properties
this.currentPageName = null;
config = config || {};
// Parent constructor
- OO.ui.Layout.call( this, config );
+ OO.ui.PanelLayout.super.call( this, config );
// Initialization
this.$element.addClass( 'oo-ui-panelLayout' );
config = $.extend( { 'scrollable': true }, config );
// Parent constructor
- OO.ui.PanelLayout.call( this, config );
+ OO.ui.PageLayout.super.call( this, config );
// Properties
this.name = name;
config = $.extend( { 'scrollable': true }, config );
// Parent constructor
- OO.ui.PanelLayout.call( this, config );
+ OO.ui.StackLayout.super.call( this, config );
// Mixin constructors
OO.ui.GroupElement.call( this, this.$element, config );
*/
OO.ui.BarToolGroup = function OoUiBarToolGroup( toolbar, config ) {
// Parent constructor
- OO.ui.ToolGroup.call( this, toolbar, config );
+ OO.ui.BarToolGroup.super.call( this, toolbar, config );
// Initialization
this.$element.addClass( 'oo-ui-barToolGroup' );
config = config || {};
// Parent constructor
- OO.ui.ToolGroup.call( this, toolbar, config );
+ OO.ui.PopupToolGroup.super.call( this, toolbar, config );
// Mixin constructors
OO.ui.IconedElement.call( this, this.$( '<span>' ), config );
*/
OO.ui.ListToolGroup = function OoUiListToolGroup( toolbar, config ) {
// Parent constructor
- OO.ui.PopupToolGroup.call( this, toolbar, config );
+ OO.ui.ListToolGroup.super.call( this, toolbar, config );
// Initialization
this.$element.addClass( 'oo-ui-listToolGroup' );
config = config || {};
// Parent constructor
- OO.ui.PopupToolGroup.call( this, toolbar, config );
+ OO.ui.MenuToolGroup.super.call( this, toolbar, config );
// Events
this.toolbar.connect( this, { 'updateState': 'onUpdateState' } );
*/
OO.ui.PopupTool = function OoUiPopupTool( toolbar, config ) {
// Parent constructor
- OO.ui.Tool.call( this, toolbar, config );
+ OO.ui.PopupTool.super.call( this, toolbar, config );
// Mixin constructors
OO.ui.PopuppableElement.call( this, config );
*/
OO.ui.GroupWidget = function OoUiGroupWidget( $element, config ) {
// Parent constructor
- OO.ui.GroupElement.call( this, $element, config );
+ OO.ui.GroupWidget.super.call( this, $element, config );
};
/* Inheritance */
var i, len;
// Parent method
- OO.ui.Widget.prototype.setDisabled.call( this, disabled );
+ OO.ui.GroupWidget.super.prototype.setDisabled.call( this, disabled );
// During construction, #setDisabled is called before the OO.ui.GroupElement constructor
if ( this.items ) {
*/
OO.ui.ItemWidget.prototype.setElementGroup = function ( group ) {
// Parent method
- OO.ui.Element.prototype.setElementGroup.call( this, group );
+ OO.ui.ItemWidget.super.prototype.setElementGroup.call( this, group );
// Initialize item disabled states
this.updateDisabled();
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.IconWidget.super.call( this, config );
// Mixin constructors
OO.ui.IconedElement.call( this, this.$element, config );
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.IndicatorWidget.super.call( this, config );
// Mixin constructors
OO.ui.IndicatedElement.call( this, this.$element, config );
*/
OO.ui.ButtonGroupWidget = function OoUiButtonGroupWidget( config ) {
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.ButtonGroupWidget.super.call( this, config );
// Mixin constructors
OO.ui.GroupElement.call( this, this.$element, config );
config = $.extend( { 'target': '_blank' }, config );
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.ButtonWidget.super.call( this, config );
// Mixin constructors
OO.ui.ButtonedElement.call( this, this.$( '<a>' ), config );
config = $.extend( { 'readOnly': false }, config );
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.InputWidget.super.call( this, config );
// Properties
this.$input = this.getInputElement( config );
*/
OO.ui.CheckboxInputWidget = function OoUiCheckboxInputWidget( config ) {
// Parent constructor
- OO.ui.InputWidget.call( this, config );
+ OO.ui.CheckboxInputWidget.super.call( this, config );
// Initialization
this.$element.addClass( 'oo-ui-checkboxInputWidget' );
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.LabelWidget.super.call( this, config );
// Mixin constructors
OO.ui.LabeledElement.call( this, this.$element, config );
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.OptionWidget.super.call( this, config );
// Mixin constructors
OO.ui.ItemWidget.call( this );
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.SelectWidget.super.call( this, config );
// Mixin constructors
OO.ui.GroupWidget.call( this, this.$element, config );
config = $.extend( { 'icon': 'check' }, config );
// Parent constructor
- OO.ui.OptionWidget.call( this, data, config );
+ OO.ui.MenuItemWidget.super.call( this, data, config );
// Initialization
this.$element.addClass( 'oo-ui-menuItemWidget' );
config = config || {};
// Parent constructor
- OO.ui.SelectWidget.call( this, config );
+ OO.ui.MenuWidget.super.call( this, config );
// Mixin constructors
OO.ui.ClippableElement.call( this, this.$group, config );
*/
OO.ui.MenuWidget.prototype.selectItem = function ( item ) {
// Parent method
- OO.ui.SelectWidget.prototype.selectItem.call( this, item );
+ OO.ui.MenuWidget.super.prototype.selectItem.call( this, item );
if ( !this.disabled ) {
if ( item ) {
var i, len, item;
// Parent method
- OO.ui.SelectWidget.prototype.addItems.call( this, items, index );
+ OO.ui.MenuWidget.super.prototype.addItems.call( this, items, index );
// Auto-initialize
if ( !this.newItems ) {
config = $.extend( { 'indicator': 'down' }, config );
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.InlineMenuWidget.super.call( this, config );
// Mixin constructors
OO.ui.IconedElement.call( this, this.$( '<span>' ), config );
*/
OO.ui.MenuSectionItemWidget = function OoUiMenuSectionItemWidget( data, config ) {
// Parent constructor
- OO.ui.OptionWidget.call( this, data, config );
+ OO.ui.MenuSectionItemWidget.super.call( this, data, config );
// Initialization
this.$element.addClass( 'oo-ui-menuSectionItemWidget' );
config = config || {};
// Parent constructor
- OO.ui.SelectWidget.call( this, config );
+ OO.ui.OutlineWidget.super.call( this, config );
// Initialization
this.$element.addClass( 'oo-ui-outlineWidget' );
config = $.extend( { 'icon': 'add-item' }, config );
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.OutlineControlsWidget.super.call( this, config );
// Mixin constructors
OO.ui.GroupElement.call( this, this.$( '<div>' ), config );
config = config || {};
// Parent constructor
- OO.ui.OptionWidget.call( this, data, config );
+ OO.ui.OutlineItemWidget.super.call( this, data, config );
// Properties
this.level = 0;
*/
OO.ui.ButtonOptionWidget = function OoUiButtonOptionWidget( data, config ) {
// Parent constructor
- OO.ui.OptionWidget.call( this, data, config );
+ OO.ui.ButtonOptionWidget.super.call( this, data, config );
// Mixin constructors
OO.ui.ButtonedElement.call( this, this.$( '<a>' ), config );
*/
OO.ui.ButtonSelectWidget = function OoUiButtonSelectWidget( config ) {
// Parent constructor
- OO.ui.SelectWidget.call( this, config );
+ OO.ui.ButtonSelectWidget.super.call( this, config );
// Initialization
this.$element.addClass( 'oo-ui-buttonSelectWidget' );
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.PopupWidget.super.call( this, config );
// Mixin constructors
OO.ui.LabeledElement.call( this, this.$( '<div>' ), config );
*/
OO.ui.PopupButtonWidget = function OoUiPopupButtonWidget( config ) {
// Parent constructor
- OO.ui.ButtonWidget.call( this, config );
+ OO.ui.PopupButtonWidget.super.call( this, config );
// Mixin constructors
OO.ui.PopuppableElement.call( this, config );
config = config || {};
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.SearchWidget.super.call( this, config );
// Properties
this.query = new OO.ui.TextInputWidget( {
config = $.extend( { 'maxRows': 10 }, config );
// Parent constructor
- OO.ui.InputWidget.call( this, config );
+ OO.ui.TextInputWidget.super.call( this, config );
// Properties
this.pending = 0;
this.adjustSize();
// Parent method
- return OO.ui.InputWidget.prototype.onEdit.call( this );
+ return OO.ui.TextInputWidget.super.prototype.onEdit.call( this );
};
/**
*/
OO.ui.TextInputMenuWidget = function OoUiTextInputMenuWidget( input, config ) {
// Parent constructor
- OO.ui.MenuWidget.call( this, config );
+ OO.ui.TextInputMenuWidget.super.call( this, config );
// Properties
this.input = input;
*/
OO.ui.TextInputMenuWidget.prototype.show = function () {
// Parent method
- OO.ui.MenuWidget.prototype.show.call( this );
+ OO.ui.TextInputMenuWidget.super.prototype.show.call( this );
this.position();
this.$( this.getElementWindow() ).on( 'resize', this.onWindowResizeHandler );
*/
OO.ui.TextInputMenuWidget.prototype.hide = function () {
// Parent method
- OO.ui.MenuWidget.prototype.hide.call( this );
+ OO.ui.TextInputMenuWidget.super.prototype.hide.call( this );
this.$( this.getElementWindow() ).off( 'resize', this.onWindowResizeHandler );
return this;
config = config || {};
// Parent constructor
- OO.ui.ButtonWidget.call( this, config );
+ OO.ui.ToggleButtonWidget.super.call( this, config );
// Mixin constructors
OO.ui.ToggleWidget.call( this, config );
}
// Parent method
- return OO.ui.ButtonWidget.prototype.onClick.call( this );
+ return OO.ui.ToggleButtonWidget.super.prototype.onClick.call( this );
};
/**
}
// Parent method
- OO.ui.ToggleWidget.prototype.setValue.call( this, value );
+ OO.ui.ToggleButtonWidget.super.prototype.setValue.call( this, value );
return this;
};
*/
OO.ui.ToggleSwitchWidget = function OoUiToggleSwitchWidget( config ) {
// Parent constructor
- OO.ui.Widget.call( this, config );
+ OO.ui.ToggleSwitchWidget.super.call( this, config );
// Mixin constructors
OO.ui.ToggleWidget.call( this, config );