Package org.jdesktop.wonderland.client.contextmenu

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


        return toBackMenuItem;
    }

    private synchronized ContextMenuItem getReleaseControlMenuItem() {
        if (releaseControlMenuItem == null) {
            releaseControlMenuItem = new SimpleContextMenuItem(
                    BUNDLE.getString("Release_Control"),
                    new ContextMenuActionListener() {

                        public void actionPerformed(
                                ContextMenuItemEvent event) {
View Full Code Here


        return releaseControlMenuItem;
    }

    private synchronized ContextMenuItem getTakeControlMenuItem() {
        if (takeControlMenuItem == null) {
            takeControlMenuItem = new SimpleContextMenuItem(
                    BUNDLE.getString("Take_Control"),
                    new ContextMenuActionListener() {

                        public void actionPerformed(
                                ContextMenuItemEvent event) {
View Full Code Here

        return takeControlMenuItem;
    }

    private synchronized ContextMenuItem getShowInHudMenuItem() {
        if (app.isShownInHUD()) {
            return new SimpleContextMenuItem(
                                    BUNDLE.getString("Remove_from_HUD"),
                                    new ContextMenuActionListener() {
                                        public void actionPerformed(ContextMenuItemEvent event) {
                                            // Show this window's app on the HUD. This method
                                            // is called on the EDT, so we need to do this on a non-EDT thread.
                                            (new HUDShower(false)).execute();
                                        }
                                    });
        } else {
            return new SimpleContextMenuItem(
                                    BUNDLE.getString("Show_in_HUD"),
                                    new ContextMenuActionListener() {
                                        public void actionPerformed(ContextMenuItemEvent event) {
                                            // Show this window's app on the HUD. This method
                                            // is called on the EDT, so we need to do this on a non-EDT thread.
View Full Code Here

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

    for (int i = 0; i < menuItems.length; i++) {
        menuItems[i] = new SimpleContextMenuItem(items[i], l);
    }

                return menuItems;
            }
        };
View Full Code Here

            remotePI = pm.getPresenceInfo(remote.getCellID());
        }

        public ContextMenuItem[] getContextMenuItems(ContextEvent event) {
            return new ContextMenuItem[] {
                new SimpleContextMenuItem(BUNDLE.getString("Volume..."),
                        new ContextMenuActionListener()
                {
                    public void actionPerformed(ContextMenuItemEvent event) {
                        VolumeControlJFrame vcjf =
                                new VolumeControlJFrame(new VolumeChangeListener()
                        {
                            public void volumeChanged(float volume) {
                                controls.setVolume(remotePI, volume);
                            }
                        }, remote.getIdentity().getUsername() + " " +
                           BUNDLE.getString("Volume"));
                       
                        vcjf.pack();
                        vcjf.setVisible(true);
                    }
                }),

                new SimpleContextMenuItem(BUNDLE.getString("Text_Chat..."),
                        new ContextMenuActionListener()
                {
                    public void actionPerformed(ContextMenuItemEvent event) {
                        controls.startTextChat(remote.getIdentity());
                    }
                }),

                new SimpleContextMenuItem(BUNDLE.getString("Voice_Chat..."),
                        new ContextMenuActionListener()
                {
                    public void actionPerformed(ContextMenuItemEvent event) {
                        controls.startVoiceChat(Collections.singletonList(remotePI),
                                                null);
View Full Code Here

TOP

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

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.