Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.VerticalPanel.addStyleName()


    // We can set the id of a widget by accessing its Element
    closeButton.getElement().setId("closeButton");
    final Label textToServerLabel = new Label();
    final HTML serverResponseLabel = new HTML();
    VerticalPanel dialogVPanel = new VerticalPanel();
    dialogVPanel.addStyleName("dialogVPanel");
    dialogVPanel.add(new HTML("<b>Sending name to the server:</b>"));
    dialogVPanel.add(textToServerLabel);
    dialogVPanel.add(new HTML("<br><b>Server replies:</b>"));
    dialogVPanel.add(serverResponseLabel);
    dialogVPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
View Full Code Here


        logoutHtml.addStyleName("html-link");

        VerticalPanel usermenu = new VerticalPanel();
        usermenu.setStyleName("fill-layout-width");
        usermenu.addStyleName("user-menu");

        usermenu.add(new HTML("Roles:"));
        usermenu.add(new HTML(sb.toSafeHtml()));

View Full Code Here

        // ----------------------
        // view panel

        VerticalPanel viewPanel = new VerticalPanel();
        viewPanel.setStyleName("fill-layout-width");
        viewPanel.addStyleName("form-view-panel");

        if(toolsCallback!=null)
        {

            final HTML edit = new HTML("<i class='icon-edit'></i>&nbsp; Edit");
View Full Code Here

        // ----------------------
        // edit panel

        VerticalPanel editPanel = new VerticalPanel();
        editPanel.setStyleName("fill-layout-width");
        editPanel.addStyleName("form-edit-panel");

        if(toolsCallback!=null)
        {
            final HTML editDisabled = new HTML("<i class='icon-edit'></i>&nbsp; Edit");
            editDisabled.setStyleName("form-edit-button-disabled");
View Full Code Here

        this.headerLabel = headerLabel;
    }

    public Widget asWidget() {
        VerticalPanel panel = new VerticalPanel();
        panel.addStyleName("fill-layout-width");

        listTable = new DefaultCellTable<T>(numRows);
        listTable.getElement().setAttribute("style", "margin-top:5px;");
        listProvider = new ListDataProvider<T>();
        listProvider.addDataDisplay(listTable);
View Full Code Here

            }
        });*/

        VerticalPanel layout = new VerticalPanel();
        layout.setStyleName("fill-layout-width");
        layout.addStyleName("tablepicker-popup");

        if(description!=null)
            layout.add(new Label(description));

        layout.add(cellTable);
View Full Code Here

        this.presenter = presenter;
    }

    Widget asWidget() {
        VerticalPanel layout = new VerticalPanel();
        layout.addStyleName("window-content");
        final Form<Queue> form = new Form<Queue>(Queue.class);


        TextBoxItem name = new TextBoxItem("name", "Name");
        TextBoxItem jndiName = new JndiNameItem("jndiName", "JNDI Name");
View Full Code Here

        this.hideButtons = true;
    }

    public Widget asWidget() {
        VerticalPanel panel = new VerticalPanel();
        panel.addStyleName("fill-layout-width");

        propertyTable = new DefaultCellTable<PropertyRecord>(numRows);
        propertyTable.getElement().setAttribute("style", "margin-top:5px;");
        propertyProvider = new ListDataProvider<PropertyRecord>();
        propertyProvider.addDataDisplay(propertyTable);
View Full Code Here

    }

    private void addActionsPanel(VerticalPanel panel) {
        if (!actions.isEmpty()) {
            VerticalPanel actionPanel = new VerticalPanel();
            actionPanel.addStyleName(CSS_POPUP_ACTION);

            for (ResourceSetAvatarPopupWidgetFactoryAction action : actions) {
                actionPanel.add(createActionButton(action));
            }
View Full Code Here

    }

    @Override
    public Widget getContent() {
        VerticalPanel panel = new VerticalPanel();
        panel.addStyleName(CSS_IMPORT_PANEL);

        errorPanel = new FlowPanel();
        errorPanel.setStyleName(CSS_IMPORT_PANEL_ERRORS);
        errorPanel.add(new Label("Data could not be imported: "));
        errorLabel = new Label("");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.