Package org.jdesktop.wonderland.client.contextmenu.spi

Examples of org.jdesktop.wonderland.client.contextmenu.spi.ContextMenuFactorySPI


        }

        // show cell-specific standard items?
        if (settings.isDisplayCellStandard() && cmc != null) {
          // fetch standard factories from CMC
          ContextMenuFactorySPI factories[] = cmc.getContextMenuFactories();
          // add each item to the menu
          for (ContextMenuFactorySPI factory : factories) {
              ContextMenuItem items[] = factory.getContextMenuItems(event);
              for (ContextMenuItem item : items) {
                  addContextMenuItem(item, cell);
View Full Code Here


            // The cell is now visible
            case ACTIVE:
                if (increasing) {
                    if (menuFactory == null) {
                        menuFactory = new ContextMenuFactorySPI() {

                            public ContextMenuItem[] getContextMenuItems(
                                    ContextEvent event) {
                                return windowMenuItemsForEvent(
                                        event, contextMenuComp);
View Full Code Here

        if (factory != null) {
            contextMenu.removeContextMenuFactory(factory);
        }

        // Create a new ContextMenuFactory for the Volume... control
        factory = new ContextMenuFactorySPI() {

            public ContextMenuItem[] getContextMenuItems(ContextEvent event) {
                SimpleContextMenuItem[] menuItems = new SimpleContextMenuItem[items.length];

    for (int i = 0; i < menuItems.length; i++) {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.contextmenu.spi.ContextMenuFactorySPI

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.