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

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


            vLayout.setOverflow(Overflow.AUTO);

            Configuration startingConfig = wizard.getSnapshotDriftDef().getConfiguration();
            ConfigurationDefinition def = DriftConfigurationDefinition.getNewPinnedTemplateInstance();
            editor = new ConfigurationEditor(def, startingConfig);
            vLayout.addMember(editor);
        }

        return vLayout;
    }
View Full Code Here


        super();
    }

    @Override
    protected ConfigurationEditor createConfigurationEditor() {
        ConfigurationEditor editor = super.createConfigurationEditor();
        editor.setEditorTitle("Test Read-Only Configuration");
        editor.setReadOnly(true);
        return editor;
    }
View Full Code Here

            OperationDefinition operationDefinition = operationHistory.getOperationDefinition();
            ConfigurationDefinition parametersConfigurationDefinition = operationDefinition
                .getParametersConfigurationDefinition();
            if (parametersConfigurationDefinition != null
                && !parametersConfigurationDefinition.getPropertyDefinitions().isEmpty()) {
                ConfigurationEditor editor = new ConfigurationEditor(parametersConfigurationDefinition,
                    operationHistory.getParameters());
                editor.setReadOnly(true);
                parametersSection.addMember(editor);
            } else {
                Label noParametersLabel = new Label("This operation does not take any parameters.");
                noParametersLabel.setHeight(17);
                parametersSection.addMember(noParametersLabel);
View Full Code Here

            vLayout.setOverflow(Overflow.AUTO);

            // keep a reference to the startingConfig in case the user navs back and changes it
            startingConfig = wizard.getNewStartingConfiguration();
            ConfigurationDefinition def = getDriftConfigDef();
            editor = new ConfigurationEditor(def, startingConfig);
            vLayout.addMember(editor);
        }

        return vLayout;
    }
View Full Code Here

                    configDef = DriftConfigurationDefinition.getExistingResourceInstanceByPinnedTemplate();
                } else {
                    configDef = DriftConfigurationDefinition.getInstanceForExistingConfiguration();
                }

                editor = new ConfigurationEditor(configDef, result.getConfiguration());
                editor.setOverflow(Overflow.AUTO);
                editor.addPropertyValueChangeListener(DriftDefinitionEditView.this);
                editor.setReadOnly(!hasWriteAccess);
                addMember(editor);
View Full Code Here

                public void onSuccess(final PageList<DriftDefinitionTemplate> result) {

                    driftTemplate = result.get(0);

                    editor = new ConfigurationEditor(DriftConfigurationDefinition.getExistingTemplateInstance(),
                        driftTemplate.getConfiguration());
                    editor.setOverflow(Overflow.AUTO);
                    editor.addPropertyValueChangeListener(DriftDefinitionTemplateEditView.this);
                    editor.setReadOnly(!hasWriteAccess || !driftTemplate.isUserDefined());
                    addMember(editor);
View Full Code Here

        addMember(createButtonBar());
        markForRedraw();
    }

    protected ConfigurationEditor createConfigurationEditor() {
        ConfigurationEditor editor = new ConfigurationEditor(this.configurationDefinition, this.configuration);
        editor.setEditorTitle("Test Configuration");
        editor.setOverflow(Overflow.AUTO);
        editor.addPropertyValueChangeListener(this);
        return editor;
    }
View Full Code Here

                // otherwise, pop up the config editor to get the needed config
                Configuration liveConfig =
                    wizard.getLiveDeployment() == null ? null : wizard.getLiveDeployment().getConfiguration();

                Configuration startingConfig = ConfigurationUtility.adaptConfiguration(liveConfig, configDef, false);
                editor = new ConfigurationEditor(configDef, startingConfig);
            }
        }

        return editor;
    }
View Full Code Here

        GWTServiceLookup.getAlertDefinitionService().getConfigurationDefinitionForSender(getSender(),
            new AsyncCallback<ConfigurationDefinition>() {
                @Override
                public void onSuccess(ConfigurationDefinition configDef) {
                    configEditor = new ConfigurationEditor(configDef, getConfiguration());
                    configEditor.setHeight(400);
                    configEditor.setWidth(600);
                    addMember(configEditor);
                    markForRedraw();
                }
View Full Code Here

                configurationService.getOptionValuesForConfigDefinition(getResourceId(), -1, parametersDefinition,
                    new AsyncCallback<ConfigurationDefinition>() {

                        @Override
                        public void onFailure(Throwable throwable) {
                            operationParametersConfigurationEditor = new ConfigurationEditor(parametersDefinition,
                                operationParameters);
                            operationParametersConfigurationEditor.setReadOnly(isReadOnly());
                            operationParametersConfigurationHolder.addMember(operationParametersConfigurationEditor);
                            operationParametersConfigurationHolder.show();

                        }

                        @Override
                        public void onSuccess(ConfigurationDefinition result) {
                            operationParametersConfigurationEditor = new ConfigurationEditor(result,
                                operationParameters);
                            operationParametersConfigurationEditor.setReadOnly(isReadOnly());
                            operationParametersConfigurationHolder.addMember(operationParametersConfigurationEditor);
                            operationParametersConfigurationHolder.show();
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.