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

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


  @Override
  public void add(Widget w) {

    FlowPanel widgetHolder = new FlowPanel();
    widgetHolder.addStyleName(this.appearance.css().carouselHolder());
    widgetHolder.add(w);

    childToHolder.put(w, widgetHolder);

    container.add(widgetHolder);
View Full Code Here


        dp.setHeader(new HTML(TEMPLATES.header(IdHelper.asId(getClass(), "_" + section.getId()), section.getTitle())));
        dp.addOpenHandler(this);
        dp.addCloseHandler(this);
        dp.setOpen(section.isOpen());
        FlowPanel sectionBody = new FlowPanel();
        sectionBody.addStyleName("homepage-section-body");
        sectionBody.add(new HTML(TEMPLATES.intro(section.getIntro())));

        ContentBox[][] table = buildTable(section.getContentBoxes());
        for (ContentBox[] row : table) {
            FlowPanel contentBoxes = new FlowPanel();
View Full Code Here

        sectionBody.add(new HTML(TEMPLATES.intro(section.getIntro())));

        ContentBox[][] table = buildTable(section.getContentBoxes());
        for (ContentBox[] row : table) {
            FlowPanel contentBoxes = new FlowPanel();
            contentBoxes.addStyleName("homepage-content-boxes");
            sectionBody.add(contentBoxes);

            Widget widget = row[0].asWidget();
            widget.addStyleName("homepage-content-box");
            contentBoxes.add(widget);
View Full Code Here

    }

    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(),
                    Console.CONSTANTS.homepage_intro_community())));
        } else {
            main.add(new HTML(TEMPLATES.header(Console.CONSTANTS.homepage_header_product(),
View Full Code Here

        sections = new FlowPanel();
        sections.addStyleName("homepage-sections");
        main.add(sections);

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

    }

    @Override
    public void addSidebarSection(final SidebarSectionData section) {
        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

    public void addSidebarSection(final SidebarSectionData section) {
        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

        imageLink.getElement().getFirstChild().appendChild(image.getElement());
        String target = getLocation(album.getName());
        imageLink.setTargetHistoryToken(target);
        FlowPanel mainPanel = new FlowPanel();
        mainPanel.setStyleName("album-thumbnail-block");
        mainPanel.addStyleName("inline-block");
        mainPanel.add(imageLink);
        Hyperlink titleLink = new Hyperlink(album.getTitle(), target);
        titleLink.setStyleName("album-thumbnail-title");
        mainPanel.add(titleLink);
        thumbnails.add(mainPanel);
View Full Code Here

      split.setStylePrimaryName(Toolbar.Styles.SPLIT);
      add(split);

      // Page x of y
      final FlowPanel pageXofY = new FlowPanel();
      pageXofY.addStyleName(Styles.PAGE_CONTAINER);
      pageXofY.add(lblPagePre);
      pageXofY.add(tbPage);
      pageXofY.add(lblPagePost);
      add(pageXofY);
View Full Code Here

      pc.addFieldTitle("Pricing");
      pc.addField(fg.getFieldWidget("optnBaseSetupPrice"));
      pc.addField(fg.getFieldWidget("optnBaseMonthlyPrice"));
      pc.addField(fg.getFieldWidget("optnBaseAnnualPrice"));

      fp.addStyleName(Style.GAP_LEFT);
      composer.addWidget(fp);

      paramsWidget.addStyleName(Style.GAP_LEFT);
      composer.addWidget(paramsWidget);
    }
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.