Lines Matching refs:model

188 				this.editor.graph.model.setRoot(page.root);
247 EditorUi.prototype.createParentLookup = function(model, diff) argument
287 var cell = model.getCell(id);
291 var parent = model.getParent(cell);
316 var model = (page == this.currentPage) ? this.editor.graph.model : new mxGraphModel(page.root);
317 var parentLookup = this.createParentLookup(model, diff);
319 model.beginUpdate();
323 var prev = model.updateEdgeParent;
327 model.updateEdgeParent = function(edge, root)
353 root = model.getCell(id);
359 model.setRoot(root);
364 this.patchCellRecursive(page, model, model.root, parentLookup, diff);
371 var cell = model.getCell(diff[EditorUi.DIFF_REMOVE][i]);
375 model.remove(cell);
388 this.patchCell(model, model.getCell(id),
400 var cell = model.getCell(cellDiff.id);
404 model.setTerminal(cell, model.getCell(cellDiff.source), true);
405 model.setTerminal(cell, model.getCell(cellDiff.target), false);
411 model.updateEdgeParent = prev;
417 if (model.contains(pendingUpdates[i]))
419 model.updateEdgeParent(pendingUpdates[i]);
426 model.endUpdate();
433 EditorUi.prototype.patchCellRecursive = function(page, model, cell, parentLookup, diff) argument
443 var childCount = model.getChildCount(cell);
448 var cellId = model.getChildAt(cell, i).getId();
469 var ex = model.getCell(id);
479 if (model.getChildAt(cell, index) != child)
481 model.add(cell, child, index);
484 this.patchCellRecursive(page, model,
511 children.push({child: model.getCell(mov)});
531 children.push({child: model.getCell(moved[id])});
549 EditorUi.prototype.patchCell = function(model, cell, diff, resolve) argument
559 model.setValue(cell, diff.value);
563 model.setValue(cell, mxUtils.parseXml(diff.xmlValue).documentElement);
570 model.setStyle(cell, diff.style);
575 model.setVisible(cell, diff.visible == 1);
580 model.setCollapsed(cell, diff.collapsed == 1);
603 model.setGeometry(cell, this.codec.decode(mxUtils.parseXml(
609 model.setTerminal(cell, model.getCell(diff.source), true);
614 model.setTerminal(cell, model.getCell(diff.target), false);