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

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


                }
                break;

            case REPARENT_CELL:
                {
                    CellReparentMessage msg = (CellReparentMessage) editMessage;

                    CellMO childMO = CellManagerMO.getCell(msg.getCellID());
                    if (childMO==null)
                        break;

                    Resource child = crm.getCellResource(msg.getCellID());
                    Resource oldParent = null;
                    Resource newParent = null;

                    CellMO oldParentMO = childMO.getParent();
                    if (oldParentMO!=null)
                        oldParent = crm.getCellResource(oldParentMO.getCellID());

                    CellMO newParentMO = CellManagerMO.getCell(msg.getParentCellID());
                    if (newParentMO!=null)
                        newParent = crm.getCellResource(msg.getParentCellID());

                    if (child!=null || oldParent!=null || newParent!=null)
                        out = new ReparentCellResource(msg.getCellID().toString(), child, oldParent, newParent);
                }
                break;

        }
View Full Code Here


            // 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

                 * parent is not found so stop loading cell and
                 * resend the reparent message to server
                */
                CellEditChannelConnection connection = (CellEditChannelConnection) session
                        .getConnection(CellEditConnectionType.CLIENT_TYPE);
                connection.send(new CellReparentMessage(cell.getCellID(), parentCellID, cell.getLocalTransform()));
                return null;
            }

            cell.setLocalBounds(localBounds);
            cell.setLocalTransform(cellTransform, TransformChangeListener.ChangeSource.SERVER_ADJUST);
View Full Code Here

TOP

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

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.