Package org.jdesktop.wonderland.modules.audiomanager.client.voicechat

Examples of org.jdesktop.wonderland.modules.audiomanager.client.voicechat.IncomingCallHUDPanel


        }

        if (message instanceof VoiceChatJoinRequestMessage) {
            logger.warning("Got VoiceChatJoinRequestMessage");

            final IncomingCallHUDPanel incomingCallHUDPanel =
                    new IncomingCallHUDPanel(this, session, cell.getCellID(),
                    (VoiceChatJoinRequestMessage) message);

            HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
            final HUDComponent incomingCallHUDComponent =
                    mainHUD.createComponent(incomingCallHUDPanel);
            incomingCallHUDPanel.setHUDComponent(incomingCallHUDComponent);
            incomingCallHUDComponent.setPreferredLocation(Layout.CENTER);
            incomingCallHUDComponent.setIcon(voiceChatIcon);

            mainHUD.addComponent(incomingCallHUDComponent);
            incomingCallHUDComponent.addEventListener(new HUDEventListener() {

                public void HUDObjectChanged(HUDEvent e) {
                    if (e.getEventType().equals(HUDEventType.DISAPPEARED)) {
                        incomingCallHUDPanel.busy();
                    }
                }
            });

            incomingCallHUDComponent.setVisible(true);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.audiomanager.client.voicechat.IncomingCallHUDPanel

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.