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

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


        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

        serverList.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

    protected DefaultButton button;

    @Deprecated
    public ButtonItem(String name, String title) {
        super(name, title);
        this.button = new DefaultButton(title);
        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.addClickHandler(submitHandler);


        cancel = new InlineLink(cancelText);
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

    protected DefaultButton button;

    public ButtonItem(String name, String title) {
        super(name, title);
        this.button = new DefaultButton(title);
        isModified = false;
        isUndefined = false;
    }
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

        // desc
        HTML desc = new HTML();
        desc.setHTML("<p>Windows that can be resized and dragged. Click the button to open a window");
        layout.add(desc);

        DefaultButton button = new DefaultButton("Open Window", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                openWindow();
            }
        });
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.