Package org.jboss.ballroom.client.widgets.common

Examples of org.jboss.ballroom.client.widgets.common.DefaultButton


    protected DefaultButton button;

    @Deprecated
    public ButtonItem(String name, String title) {
        super(name, title);
        this.button = new DefaultButton(title);
        button.setTabIndex(0);
        setModified(false);
        setUndefined(false);
    }
View Full Code Here


        setUndefined(false);
    }

    public ButtonItem(String name, String title, String label) {
        super(name, title);
        this.button = new DefaultButton(label);
        setModified(false);
        setUndefined(false);
    }
View Full Code Here

            String submitText, ClickHandler submitHandler,
            String cancelText, ClickHandler cancelHandler) {

        getElement().setAttribute("style", "margin-top:10px;width:100%");

        submit = new DefaultButton(submitText);
        submit.getElement().setAttribute("style", "min-width:60px;");
        submit.addStyleName("primary");
        submit.addClickHandler(submitHandler);


        cancel = new DefaultButton(cancelText);
        cancel.getElement().setAttribute("style", "min-width:60px;");
        cancel.addClickHandler(cancelHandler);

        getElement().setAttribute("style", "margin-top:8px; width:100%");
View Full Code Here

        treeContainer = new VerticalPanel();
        treeContainer.setStyleName("fill-layout");
        treeContainer.getElement().setAttribute("style", "padding:10px");


        treeContainer.add(new DefaultButton("Refresh", new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {
                presenter.onRefresh();
            }
        }));
View Full Code Here

        rhs.getElement().getParentElement().setAttribute("width", "50%");

        ScrollPanel scroll = new ScrollPanel(millerPanel);
        layout.add(scroll);

        DefaultButton doneBtn = new DefaultButton("Done", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                popup.hide();
            }
        });
        doneBtn.getElement().setAttribute("style","float:right");
        layout.add(doneBtn);

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

View Full Code Here

            public void onClick(ClickEvent clickEvent) {
                openPanel();
            }
        };

        DefaultButton btn = new DefaultButton("Change Server");
        btn.addClickHandler(clickHandler);
        btn.addStyleName("server-picker-btn");

        header.add(currentDisplayedValue);
        header.add(btn);
        return header;
    }
View Full Code Here

        rhs.getElement().getParentElement().setAttribute("width", "50%");

        ScrollPanel scroll = new ScrollPanel(millerPanel);
        layout.add(scroll);

        DefaultButton doneBtn = new DefaultButton(Console.CONSTANTS.common_label_done(), new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                popup.hide();
            }
        });
        doneBtn.getElement().setAttribute("style","float:right");
        layout.add(doneBtn);

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

View Full Code Here

        treeContainer = new VerticalPanel();
        treeContainer.setStyleName("fill-layout");
        treeContainer.getElement().setAttribute("style", "padding:10px");


        treeContainer.add(new DefaultButton("Refresh", new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {
                presenter.onRefresh();
            }
        }));
View Full Code Here

        rhs.getElement().getParentElement().setAttribute("width", "50%");

        ScrollPanel scroll = new ScrollPanel(millerPanel);
        layout.add(scroll);

        DefaultButton doneBtn = new DefaultButton(Console.CONSTANTS.common_label_done(), new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                popup.hide();
            }
        });
        doneBtn.getElement().setAttribute("style","margin-right:10px;float:right");
        layout.add(doneBtn);

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

View Full Code Here

            String submitText, ClickHandler submitHandler,
            String cancelText, ClickHandler cancelHandler) {

        getElement().setAttribute("style", "margin-top:10px;width:100%");

        submit = new DefaultButton(submitText);
        submit.getElement().setAttribute("style", "min-width:60px;");
        submit.addClickHandler(submitHandler);


        cancel = new InlineLink(cancelText);
View Full Code Here

TOP

Related Classes of org.jboss.ballroom.client.widgets.common.DefaultButton

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.