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

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


        HTML desc = new HTML("<p>Form editing and data binding. click on the 'Enable' button to start editing</p>");
        layout.add(desc);

        // enable
        DefaultButton enableBtn = new DefaultButton("Enable", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                form.setEnabled(true);
            }
        });
        layout.add(enableBtn);

        // changeset
        DefaultButton diffBtn = new DefaultButton("Changed Values", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                Map<String,Object> changedValues = form.getChangedValues();
                StringBuilder sb = new StringBuilder();
                for(String key : changedValues.keySet())
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

        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

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

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

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


        Label cancel = new Label(cancelText);
        cancel.setStyleName("html-link");
        cancel.addClickHandler(cancelHandler);

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

        HTML spacer = new HTML("&nbsp;");
        add(spacer);


        add(submit);
        add(spacer);
        add(cancel);
        cancel.getElement().getParentElement().setAttribute("style","vertical-align:middle");
        submit.getElement().getParentElement().setAttribute("align", "right");
        submit.getElement().getParentElement().setAttribute("width", "100%");
    }
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

        if(servers.isEmpty())
        {
            TreeItem empty = new TreeItem(new HTML(Console.CONSTANTS.common_label_noRecords()));
            hostTree.addItem(empty);
            hostTree.addItem(new DefaultButton("Create New Server", new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    Console.MODULES.getPlaceManager().revealPlace(
                            new PlaceRequest(NameTokens.ServerPresenter).with("action", "new")
                    );
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;height:18px");
        submit.addClickHandler(submitHandler);


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

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

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

        HTML title = new HTML("Server Status");
        title.setStyleName("server-picker-section-header");
        header.add(title);
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.