Package org.rhq.coregui.client.components.configuration

Examples of org.rhq.coregui.client.components.configuration.ConfigurationEditor$LoadHandler


            ConfigurationDefinition resultsConfigurationDefinition = operationDefinition
                .getResultsConfigurationDefinition();
            if (resultsConfigurationDefinition != null
                && !resultsConfigurationDefinition.getPropertyDefinitions().isEmpty()
                && operationHistory.getResults() != null) {
                ConfigurationEditor editor = new ConfigurationEditor(
                    operationDefinition.getResultsConfigurationDefinition(), operationHistory.getResults());
                editor.setPreserveTextFormatting(true);
                editor.setReadOnly(true);
                resultsSection.addMember(editor);
            } else {
                Label noResultsLabel = new Label(MSG.view_operationHistoryDetails_noResults());
                noResultsLabel.setHeight(17);
                resultsSection.addMember(noResultsLabel);
View Full Code Here


            EnumSet.of(ResourceTypeRepository.MetadataType.resourceConfigurationDefinition),
            new ResourceTypeRepository.TypeLoadedCallback() {

                public void onTypesLoaded(ResourceType type) {
                    ConfigurationDefinition definition = type.getResourceConfigurationDefinition();
                    ConfigurationEditor editor = new ConfigurationEditor(definition, update.getConfiguration());
                    editor.setReadOnly(true);
                    editor.setEditorTitle(MSG.common_title_version() + " - " + update.getId());
                    addMember(editor);
                    markForRedraw();
                }
            });
    }
View Full Code Here

                                        public void onSuccess(ConfigurationDefinition configurationDefinition) {
                                            Configuration configuration = configurationUpdate.getConfiguration();
                                            if (filter != null) {
                                                configurationDefinition = filter.filter(configurationDefinition);
                                            }
                                            editor = new ConfigurationEditor(configurationDefinition, configuration);
                                            editor.setOverflow(Overflow.AUTO);
                                            editor.addPropertyValueChangeListener(ResourceConfigurationEditView.this);
                                            editor.setReadOnly(!resourcePermission.isConfigureWrite());
                                            addMember(editor);
                                            addMember(createButtonBar());
View Full Code Here

                prop = config.getSimple(SystemSetting.BASE_LINE_DATASET.getInternalName());
                prop.setStringValue(convertMillisToDays(prop.getStringValue()));

                // build our config definition and populate our config editor
                editor = new ConfigurationEditor(getSystemSettingsDefinition(config, result.getDriftPlugins()), config);
                editor.addPropertyValueChangeListener(SystemSettingsView.this);
                canvas.addMember(editor);

                ToolStrip toolStrip = new ToolStrip();
                toolStrip.setWidth100();
View Full Code Here

                        public void onFailure(Throwable throwable) {
                            createAndAddConfigurationEditor(def);
                        }

                        private void createAndAddConfigurationEditor(ConfigurationDefinition def) {
                            editor = new ConfigurationEditor(def, startingConfig);
                            editor.setAllPropertiesWritable(true);
                            editor.addPropertyValueChangeListener(ResourceFactoryConfigurationStep.this);
                            wizard.getView().updateButtonEnablement();
                            vLayout.addMember(editor, 0);
                        }
View Full Code Here

    private void showOperationArguments(ConfigurationDefinition def, Configuration config) {
        EnhancedUtility.destroyMembers(operationArgumentsCanvasItem);

        if (def != null) {
            ConfigurationEditor configEditor = new ConfigurationEditor(def, config);
            operationArgumentsCanvasItem.addMember(configEditor);
        } else {
            Label l = new Label(MSG.view_alert_definition_notification_operation_editor_operations_no_parameters());
            l.setWrap(false);
            operationArgumentsCanvasItem.addMember(l);
View Full Code Here

    public void validate(AsyncCallback<Void> callback) {
        try {
            if (dynamicForm.validate(false)) {
                // let's make sure the args can be validated successfully.
                // If there is no config editor, there are no parameters for this operation
                ConfigurationEditor configEditor = getConfigurationEditor();
                if (configEditor != null) {
                    if (!configEditor.validate()) {
                        callback.onFailure(null);
                        return;
                    }
                    // nothing else to store - our config editor directly edited our extraConfig already
                } else {
View Full Code Here

            ConfigurationDefinition resultsConfigurationDefinition = operationDefinition
                .getResultsConfigurationDefinition();
            if (resultsConfigurationDefinition != null
                && !resultsConfigurationDefinition.getPropertyDefinitions().isEmpty()
                && operationHistory.getResults() != null) {
                ConfigurationEditor editor = new ConfigurationEditor(
                    operationDefinition.getResultsConfigurationDefinition(), operationHistory.getResults());
                editor.setPreserveTextFormatting(true);
                editor.setReadOnly(true);
                resultsSection.addMember(editor);
            } else {
                Label noResultsLabel = new Label(MSG.view_operationHistoryDetails_noResults());
                noResultsLabel.setHeight(17);
                resultsSection.addMember(noResultsLabel);
View Full Code Here

        paramsLayout.destroyMembers();

        if (selectedParamsDef != null) {
            paramsLayout.setVisible(true);
            Configuration config = new Configuration();
            selectedParamsEditor = new ConfigurationEditor(selectedParamsDef, config);
            selectedParamsEditor.setAutoHeight();

            DynamicForm paramsForm = new DynamicForm();
            paramsForm.setWidth100();
            paramsForm.setIsGroup(true);
View Full Code Here

                }
            });
        }

        if (selectedResultsDef != null && results.getComplexResults() != null) {
            ConfigurationEditor editor = new ConfigurationEditor(selectedResultsDef, results.getComplexResults());
            editor.setReadOnly(true);
            editor.setAutoHeight();

            CanvasItem paramsCanvas = new CanvasItem("resultsCanvas");
            paramsCanvas.setShowTitle(false);
            paramsCanvas.setColSpan(2);
            paramsCanvas.setCanvas(editor);
View Full Code Here

TOP

Related Classes of org.rhq.coregui.client.components.configuration.ConfigurationEditor$LoadHandler

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.