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

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


    }

    private Widget createWidget() {

        FlowPanel main = new FlowPanel();
        main.addStyleName("homepage-main");
        if (productConfig.getProfile() == ProductConfig.Profile.COMMUNITY) {
            main.add(new HTML(TEMPLATES.header(Console.CONSTANTS.homepage_header_community())));
        } else {
            main.add(new HTML(TEMPLATES.header(Console.CONSTANTS.homepage_header_product())));
        }
View Full Code Here


        contentBoxes = new HorizontalPanel();
        contentBoxes.addStyleName("homepage-content-boxes");
        main.add(contentBoxes);

        FlowPanel sidebar = new FlowPanel();
        sidebar.addStyleName("homepage-sidebar");
        sidebar.add(new HTML(TEMPLATES.secondaryHeader(Console.CONSTANTS.homepage_sidebar_header())));
        sidebarSections = new FlowPanel();
        sidebarSections.addStyleName("homepage-sidebar-sections");
        sidebar.add(sidebarSections);
View Full Code Here

    @Override
    public void addSidebarSections(final List<SidebarSection> sections) {
        for (SidebarSection section : sections) {
            FlowPanel sidebarSection = new FlowPanel();
            sidebarSection.addStyleName("homepage-sidebar-section");
            sidebarSection.add(new HTML(TEMPLATES.sidebarSectionHeader(section.getTitle())));
            FlowPanel links = new FlowPanel();
            links.addStyleName("homepage-sidebar-links");
            sidebarSection.add(links);
            for (Map.Entry<String, String> linkText : section.getLinks().entrySet()) {
View Full Code Here

        for (SidebarSection section : sections) {
            FlowPanel sidebarSection = new FlowPanel();
            sidebarSection.addStyleName("homepage-sidebar-section");
            sidebarSection.add(new HTML(TEMPLATES.sidebarSectionHeader(section.getTitle())));
            FlowPanel links = new FlowPanel();
            links.addStyleName("homepage-sidebar-links");
            sidebarSection.add(links);
            for (Map.Entry<String, String> linkText : section.getLinks().entrySet()) {
                String href = linkText.getKey();
                String text = linkText.getValue();
View Full Code Here

        Label description = new Label(inItem.getDescription());
        title.addStyleName(StaticResourceBundle.INSTANCE.coreCss().title());
        dataPanel.add(description);

        FlowPanel gadgetExtInfo = new FlowPanel();
        gadgetExtInfo.addStyleName(StaticResourceBundle.INSTANCE.coreCss().gadgetExtInfo());
        gadgetExtInfo.add(new HTML("Category: "));
        Anchor category = new Anchor();
        category.setText(inItem.getCategory().getName());

        category.addClickHandler(new ClickHandler()
View Full Code Here

      }

        if (showFollowers)
      {
    FlowPanel followersPanel = new FlowPanel();
    followersPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionItemFollowers());

    InlineLabel followers = new InlineLabel("Followers: ");
    followersPanel.add(followers);

    InlineLabel followersCount = new InlineLabel(Integer.toString(group.getFollowersCount()));
View Full Code Here

            });
        }

        FlowPanel dataPanel = new FlowPanel();
        FlowPanel bannerPanel = new FlowPanel();
        bannerPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().banner());
        bannerPanel.add(new Image(theme.getBannerId()));
        Label title = new Label(theme.getName());
        title.addStyleName(StaticResourceBundle.INSTANCE.coreCss().title());

        dataPanel.add(bannerPanel);
View Full Code Here

        dataPanel.add(bannerPanel);
        dataPanel.add(title);

        dataPanel.add(new Label(theme.getDescription()));
        FlowPanel gadgetExtInfo = new FlowPanel();
        gadgetExtInfo.addStyleName(StaticResourceBundle.INSTANCE.coreCss().gadgetExtInfo());
        gadgetExtInfo.add(new HTML("Category: "));
        Anchor category = new Anchor();
        category.setText(theme.getCategory().getName());

        category.addClickHandler(new ClickHandler()
View Full Code Here

                });

        searchResultsPanel = new PagedListPanel("searchResults", new TwoColumnPagedListRenderer());
        searchResultsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().searchResults());
        FlowPanel contentPanel = new FlowPanel();
        contentPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().searchResultsContent());

        Label header = new Label("Profile Search Results");
        header.addStyleName(StaticResourceBundle.INSTANCE.coreCss().directoryHeader());
        this.add(header);
        this.add(contentPanel);
View Full Code Here

        header.addStyleName(StaticResourceBundle.INSTANCE.coreCss().directoryHeader());
        this.add(header);
        this.add(contentPanel);

        FlowPanel resultsHeaderPanel = new FlowPanel();
        resultsHeaderPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().resultsHeader());
        resultsHeaderPanel.add(new InlineLabel("Search Results for: "));
        resultsHeaderPanel.add(queryText);

        searchResultsPanel.insert(resultsHeaderPanel, 0);
        contentPanel.add(searchResultsPanel);
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.