Package org.jdesktop.wonderland.client.cell.properties

Examples of org.jdesktop.wonderland.client.cell.properties.PropertiesManager


     */
    private void updatePanelSet() {
        // Look through the registry of cell property objects and check to see
        // if a panel exists for the cell. Add it if so
        Class clazz = selectedCellServerState.getClass();
        PropertiesManager manager = PropertiesManager.getPropertiesManager();
        cellProperties = manager.getPropertiesByClass(clazz);

        // For all cells, add the "Basic" and "Position" panels
        listModel.addElement(basicPropertiesFactory.getDisplayName());
        factoryList.add(basicPropertiesFactory);
        listModel.addElement(positionPropertiesFactory.getDisplayName());
        factoryList.add(positionPropertiesFactory);

        // If the cell properties panel exists, add an entry for it
        if (cellProperties != null && cellProperties.getPropertiesJPanel() != null) {
            listModel.addElement(cellProperties.getDisplayName());
            factoryList.add(cellProperties);
            cellProperties.setCellPropertiesEditor(this);
        }

        // Loop through all of the cell components in the server state and for
        // each see if there is a properties sheet registered for it. If so,
        // then add it.
        for (Map.Entry<Class, CellComponentServerState> e :
                selectedCellServerState.getComponentServerStates().entrySet()) {

            CellComponentServerState state = e.getValue();
            PropertiesFactorySPI spi = manager.getPropertiesByClass(state.getClass());
            if (spi != null) {
                JPanel panel = spi.getPropertiesJPanel();
                if (panel != null) {
                    String displayName = spi.getDisplayName();
                    spi.setCellPropertiesEditor(this);
View Full Code Here


        if (response instanceof CellServerComponentResponseMessage) {
            // If successful, add the component to the GUI by refreshing the
            // Cell that is selected.
            setSelectedCell(selectedCell);
            PropertiesManager manager = PropertiesManager.getPropertiesManager();
            PropertiesFactorySPI prop = manager.getPropertiesByClass(state.getClass());
            capabilityList.setSelectedValue(prop.getDisplayName(),true);
        }
        else if (response instanceof ErrorMessage) {
            // Log an error. Eventually we should display a dialog
            LOGGER.log(Level.WARNING, "Unable to add component to the server: " +
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.cell.properties.PropertiesManager

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.