IDEMPIERE-2969:update to use zk8-osgi library

hotfix for issue report by HansAnton Riess at https://groups.google.com/d/msg/idempiere/bvmQ8sqyWbk/-JVGeLfxAQAJ
need confirm with zk team to true fix
This commit is contained in:
hieplq 2015-12-13 15:06:12 +07:00
parent ccd94ecce1
commit 3787fc1904
1 changed files with 15 additions and 0 deletions

View File

@ -149,6 +149,13 @@ public class SimpleTreeModel extends org.zkoss.zul.DefaultTreeModel<Object> impl
}
}
private boolean isExpandAll = true;
@Override
public boolean isPathOpened(int[] path) {
return isExpandAll || super.isPathOpened(path);
}
/**
* @param ti
* @param node
@ -328,4 +335,12 @@ public class SimpleTreeModel extends org.zkoss.zul.DefaultTreeModel<Object> impl
fireEvent(TreeDataEvent.CONTENTS_CHANGED, getPath(parent), i, i);
}
}
public boolean isExpandAll() {
return isExpandAll;
}
public void setExpandAll(boolean isExpandAll) {
this.isExpandAll = isExpandAll;
}
}