Package org.jdesktop.wonderland.client.cell

Examples of org.jdesktop.wonderland.client.cell.CellEditChannelConnection


                    newParentWorld, draggedCell.getWorldTransform());

            // Send a message to the server indicating the change in the
            // parent. We need to send this over the cell edit connection,
            // rather than the cell connection.
            CellEditChannelConnection connection =
                    (CellEditChannelConnection) session.getConnection(
                    CellEditConnectionType.CLIENT_TYPE);
            connection.send(new CellReparentMessage(cellID, parentCellID, newChildLocal));

            // Turn off the selected node border and repaint the tree.
            dragOverTreeNode = null;
            cellHierarchyTree.repaint();
        }
View Full Code Here


                }

                // Now create the cells for the new content
                WonderlandSession session =
                        LoginManager.getPrimary().getPrimarySession();
                CellEditChannelConnection connection =
                        (CellEditChannelConnection) session.getConnection(
                        CellEditConnectionType.CLIENT_TYPE);
                for (DeployedModel info : deploymentInfo) {
                    CellID parentCellID = null;
                    CellCreateMessage msg = new CellCreateMessage(
                            parentCellID, info.getCellServerState());
                    connection.send(msg);
                }

                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        uploadingDialog.setVisible(false);
View Full Code Here

            cellName = MessageFormat.format(cellName, cell.getName());

            // If we want to delete, send a message to the server as such
            WonderlandSession session =
                    LoginManager.getPrimary().getPrimarySession();
            CellEditChannelConnection connection =
                    (CellEditChannelConnection) session.getConnection(
                    CellEditConnectionType.CLIENT_TYPE);
            CellDuplicateMessage msg =
                    new CellDuplicateMessage(cell.getCellID(), cellName);
            connection.send(msg);

            // Really should receive an OK/Error response from the server!
        }
View Full Code Here

        // Always pass in the view transform to the Cell's server state
        state.addComponentServerState(new ViewComponentServerState(viewTransform));

        // Send the message to the server
        WonderlandSession session = manager.getPrimarySession();
        CellEditChannelConnection connection = (CellEditChannelConnection)
                session.getConnection(CellEditConnectionType.CLIENT_TYPE);
        CellCreateMessage msg = new CellCreateMessage(parentCellID, state);
//        connection.send(msg);
        ResponseMessage response = null;
        try {
            response = connection.sendAndWait(msg);
        } catch (InterruptedException ex) {
            Logger.getLogger(CellUtils.class.getName()).log(Level.SEVERE, null, ex);
        }
        if(response == null || !(response instanceof CellCreatedMessage)) {
            //handle here.
View Full Code Here

     * Note: currently always returns true because the server doesn't send
     * any response to the cell delete message.
     */
    public static boolean deleteCell (Cell cell) {
        WonderlandSession session = cell.getCellCache().getSession();
        CellEditChannelConnection connection = (CellEditChannelConnection)
            session.getConnection(CellEditConnectionType.CLIENT_TYPE);
        CellDeleteMessage msg = new CellDeleteMessage(cell.getCellID());
        connection.send(msg);

        // TODO: there really really should be an OK/Error response from the server!

        return true;
    }
View Full Code Here

       
        localAvatar = new LocalAvatar(this);
        cellCacheConnection = new CellCacheConnection(localAvatar);       
        cellChannelConnection = new CellChannelConnection();
        cellEditChannelConnection = new CellEditChannelConnection();
   
        // create the cell cache
        cellCache = createCellCache();
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.cell.CellEditChannelConnection

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.