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

Examples of com.google.gwt.user.client.ui.Anchor


         login panel
         */
        RESTility.setAuthProvider(new SampleAuthUtil());

        m_header = new SPSampleHeader();
        Anchor title = new Anchor(getStrings().mainTitle(), "#");
        m_header.addHeaderTitleWidget(title);
        title.addClickHandler(new ClickHandler() {
           
            @Override
            public void onClick(ClickEvent event)
            {
                event.preventDefault();
View Full Code Here


        }
    }-*/;

    private void addBackToTop()
    {
        Anchor a = new Anchor(getStrings().backToTop(), "#");
        a.addClickHandler(new ClickHandler() {
           
            @Override
            public void onClick(ClickEvent event)
            {
                scrollTo(0);
                event.preventDefault();
            }
        });
        a.getElement().setId("backToTop");
        RootPanel.get("mainContent").add(a);
    }
View Full Code Here

        addTocListItems(panel, panelId, cssSelector);
    }
   
    private static void addTocLi(final HTMLPanel panel, final String liDisplay, final String h2Id, final String liId)
    {
        Anchor anchor = new Anchor(liDisplay, "#");
        anchor.addClickHandler(new ClickHandler() {
           
            @Override
            public void onClick(ClickEvent event)
            {
                Index.scrollTo(h2Id);
View Full Code Here

            }
        });
 
        add(m_submit, id + "projectCreatorButtons");       
       
        Anchor backToCreate = new Anchor(Index.getStrings().backToCreate(), "#");
        backToCreate.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(ClickEvent event)
            {
                event.preventDefault();
View Full Code Here

    l.setStyleName(RESOURCES.css().menuBarUserName());
    menuRight.add(l);
  }

  private static Anchor anchor(final String text, final String to) {
    final Anchor a = new Anchor(text, to);
    a.setStyleName(RESOURCES.css().menuItem());
    Accessibility.setRole(a.getElement(), Accessibility.ROLE_MENUITEM);
    return a;
  }
View Full Code Here

      });
  }

  private static void addDocLink(final LinkMenuBar m, final String text,
      final String href) {
    final Anchor atag = anchor(text, selfRedirect("/Documentation/" + href));
    atag.setTarget("_blank");
    m.add(atag);
  }
View Full Code Here

      } else {
        table.setText(row, 3, "");
      }

      if (c != null) {
        table.setWidget(row, 4, new Anchor(c.getLinkName(), false, c.toBranch(k
            .getNameKey())));
      }

      final FlexCellFormatter fmt = table.getFlexCellFormatter();
      String iconCellStyle = Gerrit.RESOURCES.css().iconCell();
View Full Code Here

        table.setText(row, 2, "");
        table.setText(row, 3, "");
      } else {
        final String url = cla.getAgreementUrl();
        if (url != null && url.length() > 0) {
          final Anchor a = new Anchor(cla.getName(), url);
          a.setTarget("_blank");
          table.setWidget(row, 2, a);
        } else {
          table.setText(row, 2, cla.getName());
        }
        table.setText(row, 3, cla.getDescription());
View Full Code Here

    void populate(final int row, final PluginInfo plugin) {
      table.setWidget(
          row,
          1,
          new Anchor(plugin.name(), Gerrit.selfRedirect("/plugins/"
              + plugin.name() + "/")));
      table.setText(row, 2, plugin.version());

      final FlexCellFormatter fmt = table.getFlexCellFormatter();
      fmt.addStyleName(row, 1, Gerrit.RESOURCES.css().dataCell());
View Full Code Here

  private void createSkipLine(int row, SkippedLine line) {
    FlowPanel p = new FlowPanel();
    InlineLabel l1 = new InlineLabel(" " + PatchUtil.C.patchSkipRegionStart() + " ");
    InlineLabel l2 = new InlineLabel(" " + PatchUtil.C.patchSkipRegionEnd() + " ");

    Anchor all = new Anchor(String.valueOf(line.getSize()));
    all.addClickHandler(expandAllListener);
    all.setStyleName(Gerrit.RESOURCES.css().skipLine());

    if (line.getSize() > 30) {
      // Only show the expand before/after if skipped more than 30 lines.
      Anchor b = new Anchor(PatchUtil.M.expandBefore(NUM_ROWS_TO_EXPAND), true);
      Anchor a = new Anchor(PatchUtil.M.expandAfter(NUM_ROWS_TO_EXPAND), true);

      b.addClickHandler(expandBeforeListener);
      a.addClickHandler(expandAfterListener);

      b.setStyleName(Gerrit.RESOURCES.css().skipLine());
      a.setStyleName(Gerrit.RESOURCES.css().skipLine());

      p.add(b);
      p.add(l1);
      p.add(all);
      p.add(l2);
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Anchor

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.