for (PropertyGroupDefinition pgd : configurationDefinition.getGroupDefinitions()) { String groupName = pgd.getName(); namePropLocator = null;
private void addGroupedProperties(AbstractConfigurationComponent config) { addDebug(config, true, ".addGroupedProperties()"); List<PropertyGroupDefinition> groups = config.getConfigurationDefinition().getGroupDefinitions(); for (PropertyGroupDefinition group : groups) { HtmlSimpleTogglePanel groupPanel = addGroupPanel(config, group); AbstractPropertyBagUIComponentTreeFactory propertyListUIComponentTreeFactory = new GroupUIComponentTreeFactory( config, group.getName()); groupPanel.getChildren().add(propertyListUIComponentTreeFactory.createUIComponentTree(null)); } addDebug(config, false, ".addGroupedProperties()"); }
List<PropertyGroupDefinition> existingGroups = existingDefinition.getGroupDefinitions(); List<PropertyGroupDefinition> newGroups = newDefinition.getGroupDefinitions();
/** * Trigger loading of a configuration by talking to the remote resource. * @return The initialized configuration * @throws Exception If anything goes wrong. */ public Configuration loadResourceConfiguration() throws Exception { Configuration config = new Configuration(); /* * Grouped definitions get a special treatment, as they may have a special property * that will be evaluated to look at a child resource or a special attribute or such */ List<PropertyGroupDefinition> gdef = configurationDefinition.getGroupDefinitions(); for (PropertyGroupDefinition pgDef : gdef) { loadHandleGroup(config, pgDef); } /* * Now handle the non-grouped properties */ List<PropertyDefinition> nonGroupdedDefs = configurationDefinition.getNonGroupedProperties(); Operation op = new ReadResource(address); if (includeRuntime) { op.addAdditionalProperty("include-runtime", "true"); // Include runtime values for attributes } // op.addAdditionalProperty("recursive", "true"); // Also get sub-resources loadHandleProperties(config, nonGroupdedDefs, op); return config; }