Package org.jboss.as.console.client.shared.subsys.messaging.forms

Examples of org.jboss.as.console.client.shared.subsys.messaging.forms.DefaultCFForm


        factoryTable.addColumn(nameColumn, "Name");
        factoryTable.addColumn(jndiColumn, "JNDI");


        // defaultAttributes
        defaultAttributes = new DefaultCFForm(new FormToolStrip.FormCallback<ConnectionFactory>() {
            @Override
            public void onSave(Map<String, Object> changeset) {
                presenter.saveConnnectionFactory(getSelectedFactory().getName(), changeset);
            }
            @Override
View Full Code Here


        factoryTable.addColumn(nameColumn, "Name");
        factoryTable.addColumn(jndiColumn, "JNDI");


        // defaultAttributes
        defaultAttributes = new DefaultCFForm(new FormToolStrip.FormCallback<ConnectionFactory>() {
            @Override
            public void onSave(Map<String, Object> changeset) {
                presenter.saveConnnectionFactory(getSelectedFactory().getName(), changeset);
            }
            @Override
View Full Code Here

        factoryTable.addColumn(nameColumn, "Name");
        factoryTable.addColumn(jndiColumn, "JNDI");


        // defaultAttributes
        defaultAttributes = new DefaultCFForm(new FormToolStrip.FormCallback<ConnectionFactory>() {
            @Override
            public void onSave(Map<String, Object> changeset) {
                presenter.saveConnnectionFactory(getSelectedFactory().getName(), changeset);
            }
            @Override
View Full Code Here

    Widget asWidget() {
        VerticalPanel layout = new VerticalPanel();
        layout.addStyleName("window-content");

        final DefaultCFForm defaultAttributes = new DefaultCFForm(
                new FormToolStrip.FormCallback<ConnectionFactory>() {
                    @Override
                    public void onSave(Map<String, Object> changeset) {

                    }
                    @Override
                    public void onDelete(ConnectionFactory entity) {

                    }
                },false
        );

        defaultAttributes.getForm().setNumColumns(1);
        defaultAttributes.getForm().setEnabled(true);
        defaultAttributes.setIsCreate(true);

        layout.add(defaultAttributes.asWidget());

        DialogueOptions options = new DialogueOptions(
                new ClickHandler() {

                    @Override
                    public void onClick(ClickEvent event) {

                        Form<ConnectionFactory> form = defaultAttributes.getForm();
                        FormValidation validation = form.validate();
                        if(!validation.hasErrors())
                            presenter.onCreateCF(form.getUpdatedEntity());
                    }
                },
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.subsys.messaging.forms.DefaultCFForm

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.