Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ui/dialogs/ve.ui.NodeDialog.js

raw symbols SCIP
1 /*!
2 * VisualEditor user interface NodeDialog class.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 /**
8 * Dialog for working with a node.
9 *
10 * @class
11 * @extends ve.ui.FragmentDialog
12 * @mixes ve.ui.NodeWindow
13 *
14 * @constructor
15 * @param {Object} [config] Configuration options
16 */
17 ve.ui.NodeDialog = function VeUiNodeDialog( config ) {
18 // Parent constructor
19 ve.ui.NodeDialog.super.call( this, config );
20
21 // Mixin constructor
22 ve.ui.NodeWindow.call( this );
23 };
24
25 /* Inheritance */
26
27 OO.inheritClass( ve.ui.NodeDialog, ve.ui.FragmentDialog );
28
29 OO.mixinClass( ve.ui.NodeDialog, ve.ui.NodeWindow );
30
31 /**
32 * @inheritdoc
33 */
34 ve.ui.NodeDialog.prototype.initialize = function ( data ) {
35 // Parent method
36 ve.ui.NodeDialog.super.prototype.initialize.call( this, data );
37
38 // Initialization
39 this.$content.addClass( 've-ui-nodeDialog' );
40 };
41
42 /**
43 * @inheritdoc
44 */
45 ve.ui.NodeDialog.prototype.getSetupProcess = function ( data ) {
46 // Parent method
47 const process = ve.ui.NodeDialog.super.prototype.getSetupProcess.call( this, data );
48 // Mixin method
49 return ve.ui.NodeWindow.prototype.getSetupProcess.call( this, data, process );
50 };
51
52 /**
53 * @inheritdoc
54 */
55 ve.ui.NodeDialog.prototype.getTeardownProcess = function ( data ) {
56 // Parent method
57 const process = ve.ui.NodeDialog.super.prototype.getTeardownProcess.call( this, data );
58 // Mixin method
59 return ve.ui.NodeWindow.prototype.getTeardownProcess.call( this, data, process );
60 };