Examples of CellID


Examples of org.jdesktop.wonderland.common.cell.CellID

            cell.addParentChangeListener(this);
            cell.addComponentChangeListener(this);
        }

        public void parentChanged(CellMO cell, CellMO parent) {
            CellID parentCellID = null;
            if (parent != null) {
                parentCellID = parent.getCellID();
            }

            // make sure this cell's parent is up-to-date
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

        @Override
        public void messageReceived(WonderlandClientSender sender,
                                    WonderlandClientID clientID,
                                    CellMessage message)
        {
            CellID requestCellID = null;
            if (message instanceof PermissionsRequestMessage) {
                requestCellID = ((PermissionsRequestMessage) message).getRequestCellID();
            }

            componentRef.get().sendUserPermissions(sender, clientID,
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

    public Resource checkMessage(WonderlandClientID clientID,
                                 Message message)
    {
        if (message instanceof CellMessage) {
            CellResourceManager crm = AppContext.getManager(CellResourceManager.class);
            CellID id = ((CellMessage) message).getCellID();
            Resource rsrc = crm.getCellResource(id);
            return rsrc;
        }

        return null;
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

            } catch (Exception excp) {
                LOGGER.log(Level.WARNING, "Unable to fetch Cell ID integer " +
                        "from the drop target", excp);
                return;
            }
            CellID cellID = new CellID(cellIDInt);

            // Fetch the client-side Cell cache and find the Cell with the
            // dropped CellID
            WonderlandSession session = LoginManager.getPrimary().getPrimarySession();
            CellCache cache = ClientContext.getCellCache(session);
            if (cache == null) {
                LOGGER.warning("Unable to find Cell cache for session " + session);
                return;
            }
            Cell draggedCell = cache.getCell(cellID);
            if (draggedCell == null) {
                LOGGER.warning("Unable to find dragged Cell with ID " + cellID);
                return;
            }

            // Find out what Cell ID this was dropped over. This will form the
            // new parent. If the Cell is dropped over the world root, then set
            // the CellID to InvalidCellID
            CellID parentCellID = CellID.getInvalidCellID();
            SortedTreeNode treeNode = (SortedTreeNode) path.getLastPathComponent();
            Object userObject = treeNode.getUserObject();
            Cell newParent = null;
            if (userObject instanceof Cell && !(userObject instanceof EnvironmentCell)) {
                parentCellID = ((Cell) userObject).getCellID();
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

        if (cell == null) {
            return null;
        }

        // find this cell's parent
        CellID parentID = null;
        if (cell.getParent() != null) {
            parentID = cell.getParent().getCellID();
        }

        // collect all the actions associated with this cell and its
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

                        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);
                }
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

    }

    private void handleTransformRequest(WonderlandClientSender sender,
      WonderlandClientID clientID, CellTransformRequestMessage message)
    {
        CellID cellID = ((CellTransformRequestMessage) message).getRequestCellID();
        CellMO cell = CellManagerMO.getCell(cellID);
        if (cell == null || !cell.isLive()) {
            sender.send(clientID, new ErrorMessage(message.getMessageID(),
                        "Cell " + cellID + " not found"));
        } else {
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

        bystandersDialog.setVisible(true);
        return;
    }

    CellID cellID = orbCell.getCellID();
    if (ATTACH.equals(text)) {
        attachButton.setText(DETACH);
        channelComp.send(new OrbAttachMessage(cellID, avatarCellID, true));
    } else {
        attachButton.setText(ATTACH);
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
    setVisible(false);
}//GEN-LAST:event_okButtonActionPerformed

private void muteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_muteButtonActionPerformed
    CellID cellID = orbCell.getCellID();
    if (MUTE.equals(muteButton.getText())) {
        muteButton.setText(UNMUTE);
        channelComp.send(new OrbMuteCallMessage(cellID, true));
    } else {
        muteButton.setText(MUTE);
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.CellID

     */
    public static CellID createCell(CellServerState state)
            throws CellCreationException
    {
        // Find the parent cell for this creation (may be null)
        CellID parentID = null;
        Cell parent = CellCreationParentRegistry.getCellCreationParent();
        if (parent != null) {
            parentID = parent.getCellID();
            logger.info("Using parent with Cell ID " + parentID.toString());
        }
       
        return createCell(state, parentID)
    }
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.