blob: 5b84e4fb18ad9cf331c78d65a767d248a65a4e18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* -------------------- base visual element -------------------- */
SQL.Visual = function() {
this._init();
this._build();
}
SQL.Visual.prototype._init = function() {
this.dom = {
container: null,
title: null
};
this.data = {
title:""
}
}
SQL.Visual.prototype._build = function() {}
SQL.Visual.prototype.toXML = function() {}
SQL.Visual.prototype.fromXML = function(node) {}
SQL.Visual.prototype.destroy = function() { /* "destructor" */
var p = this.dom.container.parentNode;
if (p && p.nodeType == 1) {
p.removeChild(this.dom.container);
}
}
SQL.Visual.prototype.setTitle = function(text) {
if (!text) { return; }
this.data.title = text;
this.dom.title.innerHTML = text;
}
SQL.Visual.prototype.getTitle = function() {
return this.data.title;
}
SQL.Visual.prototype.redraw = function() {}
|