- implemented single click instead.
This commit is contained in:
Heng Sin Low 2009-12-10 15:07:26 +00:00
parent 3c6aee5a2d
commit 82d30fbb02
1 changed files with 6 additions and 0 deletions

View File

@ -160,6 +160,8 @@ public class MenuPanel extends Panel implements EventListener
generateMenu(treeItemChildren, mChildNode);
if(treeItemChildren.getChildren().size() != 0)
treeitem.appendChild(treeItemChildren);
treeitem.getTreerow().addEventListener(Events.ON_CLICK, this);
}
else
{
@ -205,6 +207,10 @@ public class MenuPanel extends Panel implements EventListener
{
fireMenuSelectedEvent(selectedItem);
}
else
{
selectedItem.setOpen(!selectedItem.isOpen());
}
}
}
// Elaine 2009/02/27 - expand tree