https://sourceforge.net/tracker/?func=detail&aid=2897733&group_id=176962&atid=955896 ( open menu on double click )
- implemented single click instead.
This commit is contained in:
parent
3c6aee5a2d
commit
82d30fbb02
|
@ -160,6 +160,8 @@ public class MenuPanel extends Panel implements EventListener
|
||||||
generateMenu(treeItemChildren, mChildNode);
|
generateMenu(treeItemChildren, mChildNode);
|
||||||
if(treeItemChildren.getChildren().size() != 0)
|
if(treeItemChildren.getChildren().size() != 0)
|
||||||
treeitem.appendChild(treeItemChildren);
|
treeitem.appendChild(treeItemChildren);
|
||||||
|
|
||||||
|
treeitem.getTreerow().addEventListener(Events.ON_CLICK, this);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -205,6 +207,10 @@ public class MenuPanel extends Panel implements EventListener
|
||||||
{
|
{
|
||||||
fireMenuSelectedEvent(selectedItem);
|
fireMenuSelectedEvent(selectedItem);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
selectedItem.setOpen(!selectedItem.isOpen());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Elaine 2009/02/27 - expand tree
|
// Elaine 2009/02/27 - expand tree
|
||||||
|
|
Loading…
Reference in New Issue