Package autotest.common.ui

Examples of autotest.common.ui.SimpleDialog


        TextBox linkBox = new TextBox();
        linkBox.setText(link.toString());
        linkBox.setWidth("100%");
        linkBox.setSelectionRange(0, link.length());

        new SimpleDialog("Paste HTML to embed in website:", linkBox).center();
    }
View Full Code Here


            public void onSuccess(JSONValue result) {
                JSONArray data = result.isArray();

                String title = series + " for " + param;
                FlexTable contents = new FlexTable();
                final SimpleDialog drill = new SimpleDialog(title, contents);

                for (int i = 0; i < data.size(); i++) {
                    final JSONArray row = data.get(i).isArray();
                    final int testId = (int) row.get(0).isNumber().doubleValue();
                    String yValue = Utils.jsonToString(row.get(1));

                    Anchor link = new Anchor(yValue);
                    link.addClickHandler(new ClickHandler() {
                        public void onClick(ClickEvent event) {
                            drill.hide();
                            listener.onSelectTest(testId);
                        }
                    });
                    contents.setWidget(i, 0, link);
                }

                drill.center();
            }
        });
    }
View Full Code Here

        CommonPanel.getPanel().setSqlCondition(filterString);
        listener.onSwitchToTable(TableViewConfig.PASS_RATE);
    }

    private void showNADialog(String hosts) {
        new SimpleDialog("Did not run any of the selected tests:", new HTML(hosts)).center();
    }
View Full Code Here

    private void showNADialog(String hosts) {
        new SimpleDialog("Did not run any of the selected tests:", new HTML(hosts)).center();
    }

    private void showEmptyDialog() {
        new SimpleDialog("No hosts in this pass rate range", new HTML()).center();
    }
View Full Code Here

TOP

Related Classes of autotest.common.ui.SimpleDialog

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.