Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ui/inspectors/ve.ui.NodeInspector.js

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