Package org.jboss.ballroom.client.widgets.window

Examples of org.jboss.ballroom.client.widgets.window.WindowContentBuilder


                        presenter.closeWindow();
                    }
                }
        );

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


                    }
                }
        );


        window.setWidget(new WindowContentBuilder(html, options).build());
        window.setWidth(480);
        window.setHeight(360);
        window.setGlassEnabled(true);

        initWidget(window);
View Full Code Here

            form.setFields(items.toArray(new FormItem[]{}));
            panel.add(help.asWidget());
            panel.add(form.asWidget());

            WindowContentBuilder builder = new WindowContentBuilder(
                    panel,
                    new DialogueOptions(
                            "Finish",
                            new ClickHandler() {
                                @Override
                                public void onClick(ClickEvent clickEvent) {
                                    // save
                                    FormValidation validation = form.validate();
                                    if(!validation.hasErrors())
                                    {
                                        // proceed
                                        invokeOperaton(form.getUpdatedEntity());
                                    }
                                }
                            },
                            "Cancel",
                            new ClickHandler() {
                                @Override
                                public void onClick(ClickEvent clickEvent) {
                                    // cancel
                                    Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
                                        @Override
                                        public void execute() {
                                            window.hide();
                                        }
                                    });
                                }
                            }
                    )
            );

            this.widget = builder.build();
        }
View Full Code Here

        layout.add(form.asWidget());

        window.setWidth(480);
        window.setHeight(360);

        window.trapWidget(new WindowContentBuilder(layout, options).build());

        window.setGlassEnabled(true);
        window.center();
    }
View Full Code Here

                "Run As", runAsHandler, "Cancel", cancelHandler);

        window = new DefaultWindow("Run as Role");
        window.setWidth(480);
        window.setHeight(300);
        window.trapWidget(new WindowContentBuilder(panel, options).build());
        window.setModal(true);
        window.setGlassEnabled(true);
    }
View Full Code Here

            form.setFields(items.toArray(new FormItem[]{}));
            panel.add(help.asWidget());
            panel.add(form.asWidget());

            WindowContentBuilder builder = new WindowContentBuilder(
                    panel,
                    new DialogueOptions(
                            "Finish",
                            new ClickHandler() {
                                @Override
                                public void onClick(ClickEvent clickEvent) {
                                    // save
                                    FormValidation validation = form.validate();
                                    if(!validation.hasErrors())
                                    {
                                        // proceed
                                        invokeOperaton(form.getUpdatedEntity());
                                    }
                                }
                            },
                            "Cancel",
                            new ClickHandler() {
                                @Override
                                public void onClick(ClickEvent clickEvent) {
                                    // cancel
                                    Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
                                        @Override
                                        public void execute() {
                                            window.hide();
                                        }
                                    });
                                }
                            }
                    )
            );

            this.widget = builder.build();
        }
View Full Code Here

                        // noop
                    }
                }).showCancel(false);
                window.setWidth(480);
                window.setHeight(360);
                window.trapWidget(new WindowContentBuilder(new ProductConfigPanel().asWidget(), options).build());
                window.setGlassEnabled(true);
                window.center();
            }
        });
View Full Code Here

                }
        );

        options.getSubmit().setAttribute("aria-describedby", "consise-message detail-message");

        Widget windowContent = new WindowContentBuilder(widget, options).build();

        TrappedFocusPanel trap = new TrappedFocusPanel(windowContent)
        {
            @Override
            protected void onAttach() {
View Full Code Here

                    }
                }
        );


        window.setWidget(new WindowContentBuilder(html, options).build());
        window.setWidth(480);
        window.setHeight(360);
        window.setGlassEnabled(true);

        /*window.addCloseHandler(new CloseHandler<PopupPanel>() {
View Full Code Here

        layout.add(form.asWidget());

        window.setWidth(480);
        window.setHeight(360);

        window.trapWidget(new WindowContentBuilder(layout, options).build());

        window.setGlassEnabled(true);
        window.center();
    }
View Full Code Here

TOP

Related Classes of org.jboss.ballroom.client.widgets.window.WindowContentBuilder

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.