Package org.rhq.core.gui.configuration.propset

Examples of org.rhq.core.gui.configuration.propset.ConfigurationSetComponent


        this.overrideExpressionFormat = getOverrideExpressionFormat(valueExpressionFormat);
       
        // The below variable is for the new group config impl being implemented by Ian.
        this.isGroup = (this.config instanceof ConfigurationSetComponent);
        if (this.isGroup) {
            ConfigurationSetComponent configurationSetComponent = (ConfigurationSetComponent) this.config;
            this.memberValuesModalPanel = configurationSetComponent.getPropSetModalPanel();
        }
    }
View Full Code Here


                component.getChildren().clear();
            } else { // configurationComponent instanceof ConfigurationSetComponent
                // If it's an AJAX request for a configSet component, recalculate the group config from the member
                // configs and clear our child components. NOTE: This can *not* be done in decode(), because the model
                // will not have been updated yet with any changes made to child UIInput values.
                ConfigurationSetComponent configurationSetComponent = ((ConfigurationSetComponent) configurationComponent);
                HtmlModalPanel propSetModalPanel = configurationSetComponent.getPropSetModalPanel();
                if (propertySetComponentContainsInvalidInputs(configurationSetComponent)) {
                    // Make sure the modal panel is shown when rendered, so the user will see the validation errors.
                    propSetModalPanel.setShowWhenRendered(true);
                } else {
                    // Otherwise, make sure it's not rendered.
                    propSetModalPanel.setShowWhenRendered(false);
                    configurationSetComponent.getConfigurationSet().calculateGroupConfiguration();
                    component.getChildren().clear();
                }
            }
        }

View Full Code Here

        ConfigurationUtility.normalizeConfiguration(configurationComponent.getConfiguration(),
            configurationComponent.getConfigurationDefinition());

        if (configurationComponent instanceof ConfigurationSetComponent) {
            ConfigurationSetComponent configurationSetComponent = (ConfigurationSetComponent) configurationComponent;
            // Only add the propSet modal panel if it's not already in the component tree.
            if (configurationSetComponent.getPropSetModalPanel() == null)
                addPropSetModalPanel(configurationSetComponent);
            // Otherwise, if the propSet was just submitted and it doesn't contain any validation errors,
            // close the propSet modal.
            else if (isAjaxRefresh(configurationSetComponent)
                && !propertySetComponentContainsInvalidInputs(configurationSetComponent)) {
                HtmlModalPanel propSetModalPanel = configurationSetComponent.getPropSetModalPanel();
                String script = "Richfaces.hideModalPanel('"
                    + propSetModalPanel.getClientId(FacesContext.getCurrentInstance()) + "');";
                FacesComponentUtility.addJavaScript(configurationSetComponent, null, null, script);
            }
        }
View Full Code Here

    }

    private void addListMemberProperty(AbstractConfigurationComponent configurationComponent) {
        // Update member Configurations if this is a group config.
        if (configurationComponent instanceof ConfigurationSetComponent) {
            ConfigurationSetComponent configurationSetComponent = ((ConfigurationSetComponent) configurationComponent);
            configurationSetComponent.getConfigurationSet().applyGroupConfiguration();
        }

        // Now add a new component to the JSF component tree.
        AbstractPropertyBagUIComponentTreeFactory propertyListUIComponentTreeFactory = new MapInListUIComponentTreeFactory(
            configurationComponent, configurationComponent.getListName(), configurationComponent.getListIndex());
View Full Code Here

        // Now delete the property from the actual Configuration.
        propertyList.getList().remove(listIndex);

        // ...and from member Configurations if this is a group config.
        if (configurationComponent instanceof ConfigurationSetComponent) {
            ConfigurationSetComponent configurationSetComponent = ((ConfigurationSetComponent) configurationComponent);
            configurationSetComponent.getConfigurationSet().applyGroupConfiguration();
        }

        FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "Property at index " + listIndex
            + " deleted from list '" + listName + "'.");
    }
View Full Code Here

        // Now delete the property from the actual Configuration.
        propertyMap.getMap().remove(memberName);

        // ...and from member Configurations if this is a group config.
        if (configurationComponent instanceof ConfigurationSetComponent) {
            ConfigurationSetComponent configurationSetComponent = ((ConfigurationSetComponent) configurationComponent);
            configurationSetComponent.getConfigurationSet().applyGroupConfiguration();
        }

        FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "Property '" + memberName + "' deleted from map '"
            + mapName + "'.");
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.gui.configuration.propset.ConfigurationSetComponent

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.