Package org.jboss.as.console.client.shared.help

Examples of org.jboss.as.console.client.shared.help.FormHelpPanel$AddressCallback


        TextBoxItem jndiName = new JndiNameItem("jndiName", "JNDI Name");
        TextBoxItem classItem = new TextBoxItem("connectionClass", "Connection Class");

        form.setFields(jndiName, classItem);

        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "resource-adapters");
                        address.add("resource-adapter", "*");
                        address.add("connection-definitions", "*");
                        return address;
                    }
                }, form
        );
        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());

        DialogueOptions options = new DialogueOptions(

View Full Code Here


        //CheckBoxItem enabled = new CheckBoxItem("enabled", "Enabled?");
        //enabled.setValue(Boolean.TRUE);

        form.setFields(name, jndiName);

        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "datasources");
                        address.add("data-source", "*");
                        return address;
                    }
                }, form
        );
        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());

        ClickHandler submitHandler = new ClickHandler() {
            @Override
View Full Code Here

        };
        TextBoxItem domain = new NonRequiredTextBoxItem("securityDomain", "Security Domain");

        form.setFields(user,pass,domain);

        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "datasources");
                        address.add("xa-data-source", "*");
                        return address;
                    }
                }, form
        );

        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());

        ClickHandler submitHandler = new ClickHandler() {
            @Override
View Full Code Here

        //enabled.setValue(Boolean.TRUE);

        form.setFields(name, jndiName);


        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "datasources");
                        address.add("xa-data-source", "*");
                        return address;
                    }
                }, form
        );

        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());

        ClickHandler submitHandler = new ClickHandler() {
            @Override
View Full Code Here

            }
        });*/

        form.setFields(connectionUrl,user,pass, domain);

        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "datasources");
                        address.add("data-source", "*");
                        return address;
                    }
                }, form
        );
        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());

        ClickHandler submitHandler = new ClickHandler() {
            @Override
View Full Code Here

        TextBoxItem classItem = new TextBoxItem("connectionClass", "Connection Class");
        CheckBoxItem enabled = new CheckBoxItem("enabled", "Enabled?");

        form.setFields(jndiItem, enabled, classItem);

        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "resource-adapters");
                        address.add("resource-adapter", "*");
                        address.add("connection-definitions", "*");
                        return address;
                    }
                }, form
        );
        layout.add(helpPanel.asWidget());

        layout.add(form.asWidget());

        form.setEnabled(false   );

View Full Code Here

        // ----------------------------------------

        Widget formWidget = form.asWidget();

        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "resource-adapters");
                        address.add("resource-adapter", "*");
                        address.add("admin-objects", "*");
                        return address;
                    }
                }, form
        );

        layout.add(helpPanel.asWidget());

        layout.add(formWidget);

        return new WindowContentBuilder(layout, options).build();
    }
View Full Code Here

                    }
                }
        );
        archiveTools.providesDeleteOp(false);

        final FormHelpPanel archiveHelpPanel = new FormHelpPanel(
                       new FormHelpPanel.AddressCallback() {
                           @Override
                           public ModelNode getAddress() {
                               ModelNode address = Baseadress.get();
                               address.add("subsystem", "jca");
                               address.add("archive-validation", "archive-validation");
                               return address;
                           }
                       }, archiveForm
               );


        VerticalPanel archivePanel = new VerticalPanel();
        archivePanel.add(archiveTools.asWidget());
        archivePanel.add(archiveHelpPanel.asWidget());
        archivePanel.add(archiveForm.asWidget());

        // ----


        validationForm = new Form<JcaBeanValidation>(JcaBeanValidation.class);
        validationForm.setNumColumns(2);
        validationForm.setEnabled(false);

        CheckBoxItem validationEnabled = new CheckBoxItem("enabled", "Is Enabled?");

        validationForm.setFields(validationEnabled);

        FormToolStrip<JcaBeanValidation> validationTools = new FormToolStrip<JcaBeanValidation>(
                validationForm,
                new FormToolStrip.FormCallback<JcaBeanValidation>() {
                    @Override
                    public void onSave(Map<String, Object> changeset) {
                        presenter.onSaveBeanSettings(changeset);
                    }

                    @Override
                    public void onDelete(JcaBeanValidation entity) {

                    }
                }
        );
        validationTools.providesDeleteOp(false);

        final FormHelpPanel validationHelpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "jca");
                        address.add("bean-validation", "bean-validation");
                        return address;
                    }
                }, validationForm
        );

        VerticalPanel validationPanel = new VerticalPanel();
        validationPanel.add(validationTools.asWidget());
        validationPanel.add(validationHelpPanel.asWidget());
        validationPanel.add(validationForm.asWidget());

        // ----
        // ----


        connectionManagerForm = new Form<JcaConnectionManager>(JcaConnectionManager.class);
        connectionManagerForm.setNumColumns(2);
        connectionManagerForm.setEnabled(false);

        CheckBoxItem errorEnabled = new CheckBoxItem("error", "Error Log Enabled?");
        CheckBoxItem debugEnabled = new CheckBoxItem("debug", "Debug Log Enabled?");

        connectionManagerForm.setFields(errorEnabled, debugEnabled);

        FormToolStrip<JcaConnectionManager> ccmTools = new FormToolStrip<JcaConnectionManager>(
                connectionManagerForm,
                new FormToolStrip.FormCallback<JcaConnectionManager>() {
                    @Override
                    public void onSave(Map<String, Object> changeset) {
                        presenter.onSaveCCMSettings(changeset);
                    }

                    @Override
                    public void onDelete(JcaConnectionManager entity) {

                    }
                }
        );
        ccmTools.providesDeleteOp(false);

        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = Baseadress.get();
                        address.add("subsystem", "jca");
                        address.add("cached-connection-manager", "cached-connection-manager");
                        return address;
                    }
                }, connectionManagerForm
        );

        VerticalPanel ccmPanel = new VerticalPanel();
        ccmPanel.add(ccmTools.asWidget());
        ccmPanel.add(helpPanel.asWidget());
        ccmPanel.add(connectionManagerForm.asWidget());


        Widget panel = new OneToOneLayout()
                .setPlain(true)
View Full Code Here

        {
            Form<T> form = new Form<T>(clazz);
            form.setNumColumns(1);
            form.setEnabled(false);
            form.setFields(formItems);
            FormHelpPanel helpPanel = new FormHelpPanel(helpCallback, form);
            forms.put(classname, (Form<DeploymentData>) form);

            VerticalPanel wrapper = new VerticalPanel();
            wrapper.setStyleName("fill-layout-width");
            wrapper.add(helpPanel.asWidget());
            wrapper.add(form.asWidget());
            widget = wrapper;
        }
        else
        {
View Full Code Here

        form.setFields(nameItem, path, relativeTo);
        form.bind(table);
        form.setEnabled(false);

        final FormHelpPanel helpPanel = new FormHelpPanel(
                new FormHelpPanel.AddressCallback() {
                    @Override
                    public ModelNode getAddress() {
                        ModelNode address = new ModelNode();
                        address.add("path", "*");
 
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.help.FormHelpPanel$AddressCallback

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.