-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717695
By: oberinspector
backround: in my db i have a entity and a entry table where the entry table is a n:m table between entities: entity 1:n entry n:1 entity this construct is used to build up hierarchical strucures in the db...
i have overwritten Treechildren and Treeitem, where treechildren handles the entry list and Treeitem corresponds with entity.
my Item implementation has a createChildren() to create the treechildren:
class EntiyTreeItem extends Treeitem {
...
public void createChildren(){
if(entity==null && entry != null)
entity = entry.getChild();
EntityTreeChildren treechildren = new EntityTreeChildren(entity, typeImage,
deepness);
this.appendChild(treechildren);
}
my Treechildren implementaion also to create treeitems for each entry in a loop:
class EntiyTreeChildren extends Treechildren { ...
public void createChildren(){
...
while(i.hasNext()){
...
EntityTreeItem item = new EntityTreeItem(entity.getChildEntries().get(key),
typeImage, deepness);
...
this.appendChild(item);
}
The tree is rendered as expected, but is not functional...
2 problems:
1. when i click on the +/- buttons they are toggled, but the children are not expanded/closed.
2. all generated treeitems have the +/- button, even when the have no children...
i tried a onOpen()function in EntityTreeItem and also tried to add an event listener to EntityTreeItem...
do i have to care for expand/close of children with an own onOpen event listener, when i overwrite Treeitem, Treechildren?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717706
By: henrichen
Looks like the bug reported by netwiser here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1482503&group_id=152762
&atid=785191
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717709
By: oberinspector
looks like my problem...
it's the same in firefox and IE...
i will update to the lates nightly build and try again.
thanks a lot!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717719
By: henrichen
Yes, please tell us your testing result then.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3717747
By: oberinspector
hmmm... still the same...
have a look at my screenshot:
http://asconet.org:8000/static/oberinspector/images/tree.gif
The Treeitem Usergroup has alway three children...
The Treeitem "Thomas" (thats me ;)... ) has again the usergroup as child. The Threeitems Jochen and Stefan have no children...
as you can see Jochen and Stefan have +/- buttens but no children and thomas has a + button even when the children are expanded...
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3718142
By: henrichen
Thomas,
Sorry, I forget to notice you that that bug is fixed on May 7 thus you cannot test it until the new nightly is uploaded.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3718338
By: oberinspector
ok... no problem...
i will try it again and post my results here...
regards, thomas
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3718508
By: oberinspector
with the latest nightly build (05.08.) everything is fine...
thanks a lot!
regards, thomas
Asked: 2006-05-07 15:24:21 +0800
Seen: 182 times
Last updated: May 08 '06