Examples of addStyleName()


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

      // or we can set an id on a specific element for styling

    RootPanel rootPanel = RootPanel.get();
     
      HTMLPanel panel = new HTMLPanel("");
      panel.addStyleName("centered");
      rootPanel.add(panel);
      TabPanel tabPanel = new TabPanel();
      panel.add(tabPanel);
     
    //TAB PELICULAS
View Full Code Here

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

        
         selectedIndex_ = index ;
        
         if (index >= 0)
         {
            cf.addStyleName(selectedIndex_, 0, styles_.selected()) ;
            com.google.gwt.dom.client.Element el =
                  DomUtils.getTableCell(grid_.getElement(), index, 0) ;
            DomUtils.ensureVisibleVert(scrollPanel_.getElement(), el, 2) ;
            SelectionEvent.fire(this, getSelectedItem()) ;
         }
View Full Code Here

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

 
  @Override
  public void addStyleDependentName(String styleSuffix) {
    final RowFormatter rowFormatter = table.getRowFormatter();
        final String newStyleName = rowFormatter.getStylePrimaryName(row)+"-"+styleSuffix;
        rowFormatter.addStyleName(row, newStyleName);
  }
  @Override
  public void removeStyleDependentName(String styleSuffix) {
    table.getRowFormatter().removeStyleName(row, table.getRowFormatter().getStylePrimaryName(row)+"-"+styleSuffix);
  }
View Full Code Here

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

            Label pctL = new Label(pctFormat.format(pct));

            HorizontalPanel hP = new HorizontalPanel();
            hP.setStyleName("TC-DecisionRanked");
            if (i % 2 == 0) {
                hP.addStyleName("TC-DecisionRanked-Even");
            }

            Label rankL = new Label(i + "");
            rankL.addStyleName("TC-DecisionRanked-Rank");
            pctL.addStyleName("TC-DecisionRanked-Pct");
View Full Code Here

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

        this.id = id;

        String linkId = IdHelper.asId(getClass(), "_" + id);
        HTMLPanel panel = new HTMLPanel(TEMPLATES.contentBox(linkId, title, body));
        Hyperlink hyperlink = new Hyperlink(linkTitle, linkTarget);
        hyperlink.addStyleName("homepage-link");
        panel.add(hyperlink, linkId);

        initWidget(panel);
    }
View Full Code Here

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

    return header;
  }

  private Widget makeResizePanel() {
    final Image handle = new Image(GWT.getModuleBaseURL() + "gwt-log-triangle-10x10.png");
    handle.addStyleName("log-resize-se");
    handle.addMouseListener(new MouseListenerAdapter() {
      private boolean dragging = false;
      private int dragStartX;
      private int dragStartY;
View Full Code Here

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

        ccpGamesAnchor.addStyleName(resources.css().footerAnchor());
        Anchor appEngineAnchor = new Anchor(constants.googleAppEngine(), constants.googleAppEngineUrl(), "_blank");
        appEngineAnchor.addStyleName(resources.css().footerAnchor());

        InlineHTML footerInlineHtml = new InlineHTML(messages.footerText(characterString, eveOnlineAnchor.toString(), ccpGamesAnchor.toString(), appEngineAnchor.toString()));
        footerInlineHtml.addStyleName(resources.css().footerText());
        footerPanel.add(footerInlineHtml);
    }

    @Override
    public void attach(HasWidgets container) {
View Full Code Here

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

    public InfoBox(final String token, final String title, final String description) {
        String linkId = IdHelper.asId(getClass(), "_" + token);
        HTMLPanel panel = new HTMLPanel(TEMPLATES.infoBox(linkId, description));
        InlineHyperlink hyperlink = new InlineHyperlink(title, token);
        hyperlink.addStyleName("homepage-link");
        panel.add(hyperlink, linkId);

        initWidget(panel);
    }
}
View Full Code Here

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

    body = new FlowPanel();
    setContent(body);

    final GitwebLink gw = Gerrit.getGitwebLink();
    final InlineLabel revtxt = new InlineLabel(ps.getRevision().get() + " ");
    revtxt.addStyleName(Gerrit.RESOURCES.css().patchSetRevision());
    getHeader().add(revtxt);
    if (gw != null) {
      final Anchor revlink =
          new Anchor(gw.getLinkName(), false, gw.toRevision(changeDetail.getChange()
              .getProject(), ps));
View Full Code Here

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

            if (i % 2 == 0) {
                hP.addStyleName("TC-DecisionRanked-Even");
            }

            Label rankL = new Label(i + "");
            rankL.addStyleName("TC-DecisionRanked-Rank");
            pctL.addStyleName("TC-DecisionRanked-Pct");

            hP.add(rankL);
            hP.add(link);
            hP.add(pctL);
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.