Package org.jdesktop.wonderland.client.contextmenu

Examples of org.jdesktop.wonderland.client.contextmenu.ContextMenuEvent


        menuItemMap.clear();
        reverseMenuMap.clear();

       
        // create new ContextMenuEvent
        ContextMenuEvent ctxEvent = new ContextMenuEvent(event, cell);

        // Tell the context menu listeners that we are about to display a
        // context menu, giving listeners an opportunity to make adjustments
        ContextMenuManager.getContextMenuManager().fireContextMenuEvent(ctxEvent);

        // get the settings from the event, possibly adjusted by listeners
        ContextMenuInvocationSettings settings = ctxEvent.getSettings();
        // Adjust name of menu (by default, this is the cell's name)
        JPanel titlePanel = new JPanel();
        titlePanel.setLayout(new FlowLayout(FlowLayout.CENTER, 0, 0));
        titlePanel.setBackground(WL_BLUE);
        JLabel title = new JLabel("<html><b>" + settings.getMenuName() + "</b></html>");
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.contextmenu.ContextMenuEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.