Package org.jdesktop.wonderland.modules.avatarbase.client.registry.AvatarRegistry

Examples of org.jdesktop.wonderland.modules.avatarbase.client.registry.AvatarRegistry.AvatarListener


        avatarList.setCellRenderer(new AvatarListCellRenderer());

        // Listen for when an avatar has been added or remove from the list of
        // avatars and update the JList appropriately.
        AvatarRegistry registry = AvatarRegistry.getAvatarRegistry();
        registry.addAvatarListener(new AvatarListener() {
            public void avatarAdded(AvatarSPI avatar) {
                ((DefaultListModel) avatarList.getModel()).addElement(avatar);
            }

            public void avatarRemoved(AvatarSPI avatar) {
View Full Code Here


        // Listen to see if the avatar has been deleted. This can happen when
        // the window is up, but the Delete button has been pressed in the
        // main user list. We simply just close the window here.
        AvatarRegistry registry = AvatarRegistry.getAvatarRegistry();
        registry.addAvatarListener(new AvatarListener() {

            public void avatarAdded(AvatarSPI added) {
                // We don't care if an avatar has been added.
            }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.avatarbase.client.registry.AvatarRegistry.AvatarListener

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.