From 4ad18e38e4282853004a756d89bc000aa3249129 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 1 Jun 2012 01:50:12 +0800 Subject: [PATCH] IDEMPIERE-285 Zk: Tree model change event ( add, update and delete ) fire twice --- .../src/org/adempiere/webui/component/SimpleTreeModel.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/SimpleTreeModel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/SimpleTreeModel.java index 75221e6438..017e1d02e4 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/SimpleTreeModel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/SimpleTreeModel.java @@ -167,7 +167,6 @@ public class SimpleTreeModel extends org.zkoss.zul.DefaultTreeModel implements T public void addNode(DefaultTreeNode newNode) { DefaultTreeNode root = (DefaultTreeNode) getRoot(); root.getChildren().add(newNode); - fireEvent(TreeDataEvent.INTERVAL_ADDED, getPath(root), root.getChildCount() - 1, root.getChildCount() - 1); } @Override @@ -195,7 +194,6 @@ public class SimpleTreeModel extends org.zkoss.zul.DefaultTreeModel implements T parentNode.getChildren().remove(path[index]); - fireEvent(TreeDataEvent.INTERVAL_REMOVED, getPath(parentNode), path[index], path[index]); } } @@ -267,7 +265,6 @@ public class SimpleTreeModel extends org.zkoss.zul.DefaultTreeModel implements T } parent.getChildren().add(index, newNode); - fireEvent(TreeDataEvent.INTERVAL_ADDED, getPath(parent), index, index); } /**