*/
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);