Package org.jboss.ballroom.client.widgets.forms

Examples of org.jboss.ballroom.client.widgets.forms.FormValidation


        layout.add(form.asWidget());

        ClickHandler submitHandler = new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                FormValidation validation = form.validate();
                if(!validation.hasErrors())
                {
                    wizard.onConfigureBaseAttributes(form.getUpdatedEntity());
                }
            }
        };
View Full Code Here


        layout.add(form.asWidget());

        ClickHandler submitHandler = new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                FormValidation validation = form.validate();
                if(!validation.hasErrors())
                {
                    wizard.onFinish(form.getUpdatedEntity());
                }
            }
        };
View Full Code Here

                    @Override
                    public void onClick(ClickEvent event) {
                        // merge base
                        AdminObject admin = form.getUpdatedEntity();

                        FormValidation validation = form.validate();
                        if(validation.hasErrors())
                            return;

                        presenter.onCreateAdmin(admin);

                    }
View Full Code Here

        }
    }

    @Override
    public FormValidation validate() {
        FormValidation formValidation = new FormValidation();
        for (FormAdapter<T> form : forms.values()) {
            FormValidation tabValidation = form.validate();
            for (String error : tabValidation.getErrors()) {
                formValidation.addError(error);
            }
        }
        return formValidation;
    }
View Full Code Here

        };

        ClickHandler submitHandler = new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                FormValidation validation = form.validate();
                if (!validation.hasErrors()) {
                    Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
                        @Override
                        public void execute() {
                            doCommand(form);
                            EntityPopupWindow.this.hide();
View Full Code Here

        return panel;
    }

    private void onSaveJvm() {

        FormValidation validation = form.validate();
        if(!validation.hasErrors())
        {
            form.setEnabled(false);
            Jvm jvm = form.getUpdatedEntity();

            if(hasJvm)
View Full Code Here

                    @Override
                    public void onClick(ClickEvent event) {

                        Form<ClusterConnection> actualForm = form.getForm();
                        FormValidation validation = actualForm .validate();
                        if(!validation.hasErrors()) {
                            ClusterConnection entity = actualForm.getUpdatedEntity();
                            presenter.onCreateClusterConnection(entity);
                        }
                    }
                },
View Full Code Here

                    @Override
                    public void onClick(ClickEvent event) {

                        Form<BroadcastGroup> actualForm = form.getForm();
                        FormValidation validation = actualForm .validate();
                        if(!validation.hasErrors()) {
                            BroadcastGroup entity = actualForm.getUpdatedEntity();
                            presenter.onCreateBroadcastGroup(entity);
                        }
                    }
                },
View Full Code Here

                    @Override
                    public void onClick(ClickEvent event) {

                        Form<DiscoveryGroup> actualForm = form.getForm();
                        FormValidation validation = actualForm .validate();
                        if(!validation.hasErrors()) {
                            DiscoveryGroup entity = actualForm.getUpdatedEntity();
                            presenter.onCreateDiscoveryGroup(entity);
                        }
                    }
                },
View Full Code Here

        DialogueOptions options = new DialogueOptions(
                new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                        //submit
                        FormValidation validation = form.validate();
                        if(!validation.hasErrors())
                        {
                            presenter.onCreateAddressPattern(form.getUpdatedEntity());
                        }
                    }
                },
View Full Code Here

TOP

Related Classes of org.jboss.ballroom.client.widgets.forms.FormValidation

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.