Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    popup menu on TreeNode

    How could I open a popup menu on a tree?
    I try to add click Handler, mouse handler or condext handler in order to get the event to call showContextMenu in order to display my menu,
    but I can't maka it work.
    Is there an example somewhere that shows how could I add a popup menu on a tree?

    I try to use something like...

    public class TreeGridMyBooks extends TreeGrid
    {
    public TreeGridMyBooks ()
    {
    addNodeContextClickHandler(new NodeContextClickHandler()
    {
    public void onNodeContextClick(NodeContextClickEvent event)
    {
    throw new UnsupportedOperationException("Not supported yet.");
    //if (event.isRightButtonDown())
    // m_menu.showContextMenu ();
    }
    });


    Thank you again.
    Cheers

    #2
    See this thread

    Comment

    Working...
    X