62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
this.lEntry = [];
this.nEntry = 0
this._createHeader();
}
_createHeader () {
let xListheadNode = createNode("richlistitem");
for (let sColumn of this.lColumn) {
xListheadNode.appendChild(createNode("div", { class: "listheader", label: sColumn }));
}
this.xTable.appendChild(xListheadNode);
let xListcolsNode = createNode("richlistitem");
for (let cColumn of this.lColumnWidth) {
xListcolsNode.appendChild(createNode("div", { class: "listcol", flex: cColumn }));
}
this.xTable.appendChild(xListcolsNode);
}
clear () {
while (this.xTable.firstChild) {
this.xTable.removeChild(this.xTable.firstChild);
}
this.iEntryIndex = 0;
|
|
|
<
<
<
<
<
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
this.lEntry = [];
this.nEntry = 0
this._createHeader();
}
_createHeader () {
let xListheadNode = createNode("richlistitem");
for (let i=0; i < this.lColumn.length; i++) {
xListheadNode.appendChild(createNode("label", { class: "listheader", value: this.lColumn[i], flex: this.lColumnWidth[i] }));
}
this.xTable.appendChild(xListheadNode);
}
clear () {
while (this.xTable.firstChild) {
this.xTable.removeChild(this.xTable.firstChild);
}
this.iEntryIndex = 0;
|
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
this.xNumEntry.value = this.nEntry;
}
}
_addRow (lData) {
let xRowNode = createNode("richlistitem", { id: this.sNodeId + "_item_" + this.iEntryIndex, value: this.iEntryIndex });
for (let data of lData) {
xRowNode.appendChild(createNode("div", { class:"listcell", label: data }));
}
this.xTable.appendChild(xRowNode);
this.iEntryIndex += 1;
}
deleteSelection () {
for (let xItem of this.xTable.selectedItems) {
|
|
|
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
this.xNumEntry.value = this.nEntry;
}
}
_addRow (lData) {
let xRowNode = createNode("richlistitem", { id: this.sNodeId + "_item_" + this.iEntryIndex, value: this.iEntryIndex });
for (let data of lData) {
xRowNode.appendChild(createNode("label", { class:"listcell", label: data }));
}
this.xTable.appendChild(xRowNode);
this.iEntryIndex += 1;
}
deleteSelection () {
for (let xItem of this.xTable.selectedItems) {
|