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

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


    testList.setWidget(0, 1, new Label("Test"));
    testList.setWidget(0, 2, new Label("Description"));
    int testIndex = 1;
    testList.resizeRows(tests.length + 1);
    for(final UITestCase test : tests) {
      final Hyperlink tlink = new Hyperlink(test.getName(), test.getHistoryToken());
      tlink.setTitle(test.getDescription());
      testList.setWidget(testIndex, 0, new Label(Integer.toString(testIndex)));
      testList.setWidget(testIndex, 1, tlink);
      testList.setWidget(testIndex, 2, new Label(test.getDescription()));
      testIndex++;
    }
View Full Code Here


    testList.setWidget(0, 1, new Label("Test"));
    testList.setWidget(0, 2, new Label("Description"));
    int testIndex = 1;
    testList.resizeRows(tests.length + 1);
    for(final UITestCase test : tests) {
      final Hyperlink tlink = new Hyperlink(test.getName(), test.getHistoryToken());
      tlink.setTitle(test.getDescription());
      testList.setWidget(testIndex, 0, new Label(Integer.toString(testIndex)));
      testList.setWidget(testIndex, 1, tlink);
      testList.setWidget(testIndex, 2, new Label(test.getDescription()));
      testIndex++;
    }
View Full Code Here

  }

  public void showChapterList(TreeMap<Integer, ClientChapter> chapterMap) {
    chapterFlow.clear();
    for (ClientChapter chapter: chapterMap.values()) {
      Hyperlink hyperlink = new Hyperlink("" + chapter.chapterNo, "" + chapter.chapterNo + ":1");
        hyperlink.addClickHandler(updateClickHandler );
        hyperlink.getElement().getStyle().setProperty("display", "inline");
        chapterFlow.add(hyperlink);
        chapterFlow.add(spacer());
      hyperlink.setTitle(chapter.transliteration);
      }
 
  }
View Full Code Here

    addSectionLink(currentSection, section, label);
  }

  private Hyperlink addSectionLink(ClientSection currentSection,
      ClientSection section, String label) {
    Hyperlink sectionLink = null;
    if (currentSection.equals(section)) {
      sectionNavigationBar.add(new HTML("<b>" + label + "</b>"));
      mainPresenter.getSectionPresenter().updateSectionPanel(section);
    } else {
      sectionLink = new Hyperlink(label,"" + section.chapter + ":" + section.verse);
      sectionLink.addClickHandler(updateClickHandler);
      sectionNavigationBar.add(sectionLink);
    }
    return sectionLink;
  }
View Full Code Here

  public Widget render(Row row, Column column, Object value) {
    if(value == null || !(value instanceof String)) {
      return null;
    } else {
      Hyperlink hyperlink = new Hyperlink((String)value, _asHTML, _targetHistoryToken);
      if(_title != null) hyperlink.setTitle(_title);
      return hyperlink;
    }
  }
View Full Code Here

                        + "<div class='nukeNewsSummary'>" + summary + "</div>"
                        + "<div class='nukeNewsText'>" + text + "</div>"
                        + "</div>");
                panel.add(html);
               
                Hyperlink href = new Hyperlink("Previous Entry", "news"+(mNewsIndex.intValue()-1));
                if(mNewsIndex.intValue() > 1) href.setVisible(true);
                else href.setVisible(false);
                href.addStyleName("nukeNewsPrevHref");
                panel.add(href);
               
                href.addClickListener(new ClickListener() {
                    public void onClick(Widget pSender) {
                        mNewsIndex = new Integer(mNewsIndex.intValue()-1);
                        run();
                    }
                });
               
                href = new Hyperlink("Next Entry", "news"+(mNewsIndex.intValue()+1));
                if(jv == null) href.setVisible(false);
                else href.setVisible(true);
                href.addStyleName("nukeNewsNextHref");
                panel.add(href);
               
                href.addClickListener(new ClickListener() {
                    public void onClick(Widget pSender) {
                        mNewsIndex = new Integer(mNewsIndex.intValue()+1);
                        run();
                    }
                });
View Full Code Here

    panel = new DeckPanel();
    SimplePanel fakeLinkPanel = new SimplePanel();
    fakeLink = new Label(text);
    fakeLinkPanel.add(fakeLink);
    realLink = new Hyperlink(text, getHyperlinkTarget());
    panel.add(realLink);
    panel.add(fakeLinkPanel);
    enable();
    super.initWidget(panel);
  }
View Full Code Here

  private Label lbl = new Label();

  public void onModuleLoad() {
    // Create three hyperlinks that change the application's history.
    Hyperlink link0 = new Hyperlink("link to foo", "foo");
    Hyperlink link1 = new Hyperlink("link to bar", "bar");
    Hyperlink link2 = new Hyperlink("link to baz", "baz");

    // If the application starts with no history token, redirect to a new
    // 'baz' state.
    String initToken = History.getToken();
    if (initToken.length() == 0) {
View Full Code Here

   * @return a {@link Hyperlink}
   */
  @ShowcaseSource
  private <C extends ContentWidget> Hyperlink getHyperlink(
      Class<C> cwClass, String name) {
    Hyperlink link = new Hyperlink(
        name, Showcase.getContentWidgetToken(cwClass));
    link.ensureDebugId("cwHyperlink-" + cwClass.getName());
    return link;
  }
View Full Code Here

    while (it.hasNext()) {

      final Project p = it.next().getValue();

      // Add project to projects table
      Hyperlink projectLink = new Hyperlink(p.getName() + " ("
          + p.getOwner() + ")", "Project~" + p.getName());
      projectTable.setWidget(row, 0, projectLink);
      // Compute the number of days elapsed between the project
      // creation date and now
      DateTimeFormat dateFormatter = new DateTimeFormat(
View Full Code Here

TOP

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

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.