Lines Matching refs:itemId
719 _fileMappingValuesProvider: function(itemId, columnId)
721 if (!itemId)
723 var entry = this._entries[itemId];
736 * @param {?string} itemId
739 _fileMappingValidate: function(itemId, data)
741 var oldPathPrefix = itemId ? this._entries[itemId].pathPrefix : null;
742 return this._validateMapping(data["url"], itemId, data["path"], oldPathPrefix);
746 * @param {?string} itemId
749 _fileMappingEdit: function(itemId, data)
751 if (itemId) {
752 var urlPrefix = itemId;
753 var pathPrefix = this._entries[itemId].pathPrefix;
754 var fileSystemPath = this._entries[itemId].fileSystemPath;
1169 * @param {?string} itemId
1173 addItem: function(itemId, beforeId)
1176 listItem._id = itemId;
1191 this._itemRenderer(columnElement, columnId, itemId);
1194 listItemContents.addEventListener("click", this.selectItem.bind(this, itemId), false);
1197 this._listItems[itemId] = listItem;
1199 this._ids.splice(this._ids.indexOf(beforeId), 0, itemId);
1201 this._ids.push(itemId);
1206 this._itemRemover(itemId);
1261 * @param {string} itemId
1264 itemForId: function(itemId)
1266 return this._listItems[itemId];
1354 * @param {?string} itemId
1358 addItem: function(itemId, beforeId)
1360 var listItem = WebInspector.SettingsList.prototype.addItem.call(this, itemId, beforeId);
1368 * @param {?string} itemId
1370 _renderColumn: function(columnElement, columnId, itemId)
1374 if (itemId === null) {
1378 inputElement.addEventListener("input", this._validateEdit.bind(this, itemId));
1383 if (!this._editInputElements[itemId])
1384 this._editInputElements[itemId] = {};
1385 if (!this._textElements[itemId])
1386 this._textElements[itemId] = {};
1388 var value = this._valuesProvider(itemId, columnId);
1394 this._textElements[itemId][columnId] = textElement;
1398 inputElement.addEventListener("blur", this._editMappingBlur.bind(this, itemId));
1399 inputElement.addEventListener("input", this._validateEdit.bind(this, itemId));
1401 this._editInputElements[itemId][columnId] = inputElement;
1405 if (itemId === this._editingId)
1409 this._editingId = itemId;
1410 var listItem = this.itemForId(itemId);
1412 var inputElement = event.target.inputElement || this._editInputElements[itemId][this.columns()[0]];
1419 * @param {?string} itemId
1422 _data: function(itemId)
1424 var inputElements = this._inputElements(itemId);
1433 * @param {?string} itemId
1436 _inputElements: function(itemId)
1438 if (!itemId)
1440 return this._editInputElements[itemId];
1444 * @param {?string} itemId
1447 _validateEdit: function(itemId)
1449 var errorColumns = this._validateHandler(itemId, this._data(itemId));
1450 var hasChanges = this._hasChanges(itemId);
1454 var inputElement = this._inputElements(itemId)[columnId];
1464 * @param {?string} itemId
1467 _hasChanges: function(itemId)
1473 var oldValue = itemId ? this._textElements[itemId][columnId].textContent : "";
1474 var newValue = this._inputElements(itemId)[columnId].value;
1484 * @param {string} itemId
1486 _editMappingBlur: function(itemId, event)
1488 var inputElements = Object.values(this._editInputElements[itemId]);
1492 var listItem = this.itemForId(itemId);
1496 if (!this._hasChanges(itemId))
1499 if (!this._validateEdit(itemId)) {
1503 var inputElement = this._editInputElements[itemId][columnId];
1504 inputElement.value = this._textElements[itemId][columnId].textContent;
1509 this._editHandler(itemId, this._data(itemId));