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


            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

        HTMLPanel actions = new HTMLPanel(TEMPLATES
                .rollbackFailed(Console.CONSTANTS.patch_manager_rollback_error_cancel_title(),
                        Console.CONSTANTS.patch_manager_rollback_error_cancel_body(),
                        Console.CONSTANTS.patch_manager_rollback_error_select_title(),
                        Console.CONSTANTS.patch_manager_rollback_error_select_body()));
        chooseOptions = new DefaultButton(Console.CONSTANTS.patch_manager_rollback_options_title());
        chooseOptions.getElement().setAttribute("style", "min-width:60px;");
        chooseOptions.addStyleName("primary");
        actions.add(chooseOptions, "choose-options");
        body.add(actions);
View Full Code Here

        treeContainer.setStyleName("browser-view-nav");

        HorizontalPanel tools = new HorizontalPanel();
        tools.getElement().setAttribute("style", "margin-left: 10px;");

        Button refresh = new DefaultButton("<i class='icon-undo'></i>");
        refresh.getElement().setAttribute("title", "Refresh Model");
        refresh.addClickHandler(
                new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent clickEvent) {
                        presenter.onPinTreeSelection(null);
                    }
                }
        );


        filter = new DefaultButton("<i class='icon-filter'></i>");
        filter.getElement().setAttribute("title", "Filter Subtree");
        filter.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                TreeItem selectedItem = tree.getSelectedItem();
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

        HTMLPanel actions = new HTMLPanel(TEMPLATES
                .appliedFailed(Console.CONSTANTS.patch_manager_apply_error_cancel_title(),
                        Console.CONSTANTS.patch_manager_apply_error_cancel_body(),
                        Console.CONSTANTS.patch_manager_apply_error_select_title(),
                        Console.CONSTANTS.patch_manager_apply_error_select_body()));
        selectPatch = new DefaultButton(Console.CONSTANTS.patch_manager_select_patch_title());
        selectPatch.getElement().setAttribute("style", "min-width:60px;");
        selectPatch.addStyleName("primary");
        actions.add(selectPatch, "select-different-patch");
        body.add(actions);
View Full Code Here

        hWidget.getElement().addClassName("table-picker");

        VerticalPanel inner = new VerticalPanel();
        inner.setStyleName("fill-layout-width");
        inner.add(hWidget);
        inner.add(new DefaultButton("Proceed", new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                if(hosts.getSelectedValue()!=null && !hosts.getSelectedValue().equals(""))
                {
View Full Code Here

                MessageListPopup popup = getMessagePopup();
                if(popup!=null) popup.hide();
            }
        };

        final DefaultButton button = new DefaultButton(Console.CONSTANTS.common_label_messages());
        button.getElement().setAttribute("style", "width:100%;border-color:#cccccc;margin-right:5px;");

        ClickHandler clickHandler = new ClickHandler() {
            public void onClick(ClickEvent event) {

                int numMessages = fetchMessages(messagePopup);
                if(numMessages==0)numMessages=1;

                int width = 250;
                int height = numMessages*35;

                messagePopup.setPopupPosition(
                        button.getAbsoluteLeft() - (width+10-button.getOffsetWidth()) ,
                        button.getAbsoluteTop() - (height+18)
                );



                messagePopup.show();

                messagePopup.setWidth(width+"px");
                messagePopup.setHeight(height+"px");
            }
        };

        button.addClickHandler(clickHandler);

        // register listener
        messageCenter.addMessageListener(this);

        messageDisplay = new LayoutPanel();
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.