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

Examples of org.jdesktop.wonderland.client.cell.properties.spi.PropertiesFactorySPI


    }//GEN-LAST:event_addCapabilityButtonActionPerformed

    private void removeCapabilityButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeCapabilityButtonActionPerformed
        // Find out which component is selected and remove it
        int index = capabilityList.getSelectedIndex();
        PropertiesFactorySPI spi = factoryList.get(index);
        removeComponent(spi);
    }//GEN-LAST:event_removeCapabilityButtonActionPerformed
View Full Code Here


        // 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);
                    listModel.addElement(displayName);
                    factoryList.add(spi);
                }
            }
        }
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: " +
                    ((ErrorMessage) response).getErrorMessage(),
View Full Code Here

                return;
            }

            // For all items, look up the panel in the ordered list of panels
            propertyPanel.removeAll();
            PropertiesFactorySPI factory = factoryList.get(index);
            propertyPanel.add(factory.getPropertiesJPanel());

            // We want to enable/disable the "remove" button only for property
            // sheets other than the first two. (The first three if the Cell
            // property sheet is non-null.
            if (cellProperties == null) {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.cell.properties.spi.PropertiesFactorySPI

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.