Package org.jdesktop.wonderland.common.cell.messages

Examples of org.jdesktop.wonderland.common.cell.messages.CellServerComponentMessage


        // a suitable message using only the server-side movable component
        // class name and send over the cell channel.
        if (movableComponent == null) {
            String className = "org.jdesktop.wonderland.server.cell." +
                    "MovableComponentMO";
            CellServerComponentMessage cscm =
                    CellServerComponentMessage.newAddMessage(
                    cell.getCellID(), className);
            ResponseMessage response = cell.sendCellMessageAndWait(cscm);
            if (response instanceof ErrorMessage) {
                logger.log(Level.WARNING, "Unable to add movable component " +
View Full Code Here


        }

        @Override
        public void messageReceived(WonderlandClientSender sender, WonderlandClientID clientID, CellMessage message) {
            // Dispatch to either the "add" or "remove" message handler
            CellServerComponentMessage cm = (CellServerComponentMessage)message;
            switch (cm.getComponentAction()) {
                case ADD:
                    handleAddComponentMessage(sender, clientID, cm);
                    break;

                case REMOVE:
View Full Code Here

                return;
            }

            // If we made it here, everything worked.  Send the updated server
            // state object to all clients as an asynchronous event
            CellServerComponentMessage out = message;
            if (state != null) {
                out = new CellServerComponentMessage(message.getCellID(), state);
            }
            cellMO.sendCellMessage(clientID, out);
        }
View Full Code Here

    /**
     * Add the interaction component by sending an add component message
     * to the cell.
     */
    private void addInteractionComponent(InteractionComponentServerState icss) {
        CellServerComponentMessage cscm =
                CellServerComponentMessage.newAddMessage(
                editor.getCell().getCellID(), icss);
        ResponseMessage response = editor.getCell().sendCellMessageAndWait(cscm);
        if (response instanceof ErrorMessage) {
            LOGGER.log(Level.WARNING, "Unable to add interaction component "
View Full Code Here

    /**
     * Add the interaction component by sending an add component message
     * to the cell.
     */
    private void addNewInteractionComponent(NewInteractionComponentServerState icss) {
        CellServerComponentMessage cscm =
                CellServerComponentMessage.newAddMessage(
                editor.getCell().getCellID(), icss);
        ResponseMessage response = editor.getCell().sendCellMessageAndWait(cscm);
       
        if (response instanceof ErrorMessage) {
View Full Code Here

        CellID cellID = selectedCell.getCellID();
       
        // Send a ADD component message on the cell channel. Wait for a
        // response. If OK, then update the GUI with the new component.
        // Otherwise, display an error dialog box.
        CellServerComponentMessage message =
                CellServerComponentMessage.newAddMessage(cellID, state);
        ResponseMessage response = selectedCell.sendCellMessageAndWait(message);
        if (response == null) {
            // log and error and post a dialog box
            LOGGER.warning("Received a null reply from cell with id " +
View Full Code Here

        // for a response.
        CellID cellID = selectedCell.getCellID();

        // Send a message to the server with the cell id and class name and
        // wait for a response
        CellServerComponentMessage cscm =
                CellServerComponentMessage.newRemoveMessage(cellID, className);
        ResponseMessage response = selectedCell.sendCellMessageAndWait(cscm);
        if (response == null) {
            LOGGER.warning("Received a null reply from cell with id " +
                    cellID + " with name " + selectedCell.getName() +
View Full Code Here

        // Go ahead and try to add the affordance. If we cannot, then log an
        // error and return.
        CellID cellID = cell.getCellID();
        String className = "org.jdesktop.wonderland.server.cell.MovableComponentMO";
        CellServerComponentMessage cscm =
                CellServerComponentMessage.newAddMessage(cellID, className);
        ResponseMessage response = cell.sendCellMessageAndWait(cscm);
        if (response instanceof ErrorMessage) {
            logger.warning("Unable to add movable component for Cell" +
                    cell.getName() + " with ID " + cell.getCellID());
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.cell.messages.CellServerComponentMessage

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.