Examples of OrbChangeNameMessage


Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbChangeNameMessage

    if (name.length() > 0) {
        username = name;

        setTitle(name);

        channelComp.send(new OrbChangeNameMessage(orbCell.getCellID(), name));
    }
}//GEN-LAST:event_nameTextFieldActionPerformed
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbChangeNameMessage

      setBystanders(msg.getBystanders());
      return;
  }

  if (message instanceof OrbChangeNameMessage) {
      OrbChangeNameMessage msg = (OrbChangeNameMessage) message;

      usernameAlias = msg.getName();

      if (presenceInfoAdded) {
    presenceInfo.setUsernameAlias(usernameAlias);
          pm.requestChangeUsernameAlias(presenceInfo.getUsernameAlias());
      }

      nameTagComp.setNameTag(EventType.CHANGE_NAME, username, usernameAlias);
      return;
  }

  if (message instanceof OrbAttachMessage) {
      OrbAttachMessage msg = (OrbAttachMessage) message;

      attachOrb(msg.getHostCellID(), msg.isAttached());
      return;
  }

  if (message instanceof OrbAttachVirtualPlayerMessage) {
      OrbAttachVirtualPlayerMessage msg = (OrbAttachVirtualPlayerMessage) message;

      PresenceInfo info = pm.getPresenceInfo(msg.getHostCallID());

      if (info == null) {
    logger.warning("OrbAttachVirtualPlayerMessage, no presence info for callID "
        + msg.getHostCallID());
    return;
      }

      attachOrb(info.getCellID(), true);
      return;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.orb.common.messages.OrbChangeNameMessage

  CommsManager cm = WonderlandContext.getCommsManager();

        WonderlandClientSender sender = cm.getSender(CellChannelConnectionType.CLIENT_TYPE);

  sender.send(new OrbChangeNameMessage(cellID, username));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.