Package org.jdesktop.wonderland.common.cell.state

Examples of org.jdesktop.wonderland.common.cell.state.CellComponentClientState


            WonderlandClientID clientID,
            ClientCapabilities capabilities) {

        // If the given cellClientState is null, create a new one
        if (state == null) {
            state = new CellComponentClientState();
        }
        return state;
    }
View Full Code Here


        Iterable<ManagedReference<CellComponentMO>> compReferences = components.values();
        for(ManagedReference<CellComponentMO> ref : compReferences) {
            CellComponentMO componentMO = ref.get();
            String clientClass = componentMO.getClientClass();
            if (clientClass != null) {
                CellComponentClientState clientState = componentMO.getClientState(null, clientID, capabilities);
                config.addClientComponentClasses(clientClass, clientState);
            }
        }
    }
View Full Code Here

            resolveAutoComponentAnnotationsForComponent(AppContext.getDataManager().createReference(component));

            // Send a message to all clients that a new component has been added
            // to the cell. We only need to do this when the cell is live because
            // a setLive(true) will send client states then.
            CellComponentClientState clientState = component.getClientState(null, null, null);
            String className = component.getClientClass();
            sendCellMessage(null, CellClientComponentMessage.newAddMessage(cellID, className, clientState));

            // Finally set the component to the live state
            component.setLive(live);
View Full Code Here

                if (component == null) {
                    // Create a new cell component based upon the class name,
                    // set its state, and add it to the list of components
                    Constructor<CellComponent> constructor = compClazz.getConstructor(Cell.class);
                    component = constructor.newInstance(this);
                    CellComponentClientState clientState = configData.getCellComponentClientState(compClassname);
                    if (clientState != null) {
                        component.setClientState(clientState);
                    }
                    addComponent(component, CellComponentUtils.getLookupClass(component.getClass()));
                } else {
                    CellComponentClientState clientState = configData.getCellComponentClientState(compClassname);
                    if (clientState != null) {
                        component.setClientState(clientState);
                    }
                }
            } catch (InstantiationException ex) {
View Full Code Here

     */
    private void addComponent(CellClientComponentMessage message) {
        // Fetch the client component class name and client state. If there is
        // no client-side class name, then there is no client-side component
        // class so we just return.
        CellComponentClientState clientState = message.getCellComponentClientState();
        String compClassname = message.getCellComponentClientClassName();
        if (compClassname == null) {
            return;
        }
       
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.cell.state.CellComponentClientState

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.