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

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


    setStyleName("ks-List");
  }

  public void addSink(final SinkInfo info) {
    String name = info.getName();
    Hyperlink link = new Hyperlink(name, name);
    link.setStyleName("ks-SinkItem");

    list.add(link);
    sinks.add(info);
  }
View Full Code Here


    HorizontalPanel hhp = new HorizontalPanel();
    mvp.add(hhp);
    hhp.add(new HTML("<h2>isk-daemon example</h2>"));
    hhp.add(new HTML(
        "<p><a href=http://server.imgseek.net/>isk-daemon</a> is an open source database server capable of adding content-based (visual) image searching to any image related website or software. Click on the '+ similar' link below each image to search by visual similarity. You can also upload your own image by clicking on the 'Choose file' button below. See <a href='http://www.imgseek.net/isk-daemon/demo'>more details</a> about this demo, including source code.</p>"));
    hhp.add(new Hyperlink("Random images", "similar-0"));

    // Create a new uploader panel and attach it to the document

    uploaderControl.setAutoSubmit(true);
    mvp.add(uploaderControl);
View Full Code Here

      HorizontalPanel hc = new HorizontalPanel();
      String scoreLabel = "(random) ";
      if (res.getScore() > 0)
        scoreLabel = df.format(res.getScore()) + "%";
      hc.add(new Label(scoreLabel));
      hc.add(new Hyperlink("   + similar", "similar-" + res.getId()));
      rvp.add(hc);

      resultsGrid.setWidget(i / GRID_COLS, i % GRID_COLS, rvp);
      i++;
    }
View Full Code Here

      FlowPanel panel = new FlowPanel();
      initWidget( panel );
      DOM.setStyleAttribute( panel.getElement(), "whiteSpace", "nowrap" );
      DOM.setStyleAttribute( getElement(), "whiteSpace", "nowrap" );

      Hyperlink link = new Hyperlink( "<b>Grafiken laden</b>", true, "#" );
      link.addClickListener( new ClickListener() {

        public void onClick( Widget sender ) {

          loadMessage( currentMessage.getId(), true );
          messagesImageLoaded.put( Long.valueOf( currentMessage.getId() ), Boolean.TRUE );
View Full Code Here

    // Get the class name of the content widget
    String className = cwClass.getName();
    className = className.substring(className.lastIndexOf('.') + 1);

    // Convert to a hyper link
    Hyperlink link = new Hyperlink(name, className);
    link.ensureDebugId("cwHyperlink-" + className);
    return link;
  }
View Full Code Here

        Panel labelPanel = new Panel();
        labelPanel.add(new Label("Parents:"));
        if (showAdd) {
//            Hyperlink hl = new Hyperlink("<a href=\"" + UIUtil.LOCAL + UIUtil.ADD_PREFIX +
//                    "\" style=\"text-decoration: underline;\">Add parent(s)</a>", "");
            Hyperlink hl = new Hyperlink("<u>Add parent(s)</u>", true, "");
            labelPanel.add(hl);
            addParentHandlerRegistration = hl.addClickHandler(new ClickHandler() {
                public void onClick(ClickEvent event) {
                    onAdd();
                }
            });
            labelPanel.add(hl);
View Full Code Here

   private Boolean bool = false;

   @Test
   public void checkVisible() {
      // Act
      Hyperlink link = new Hyperlink();
      // Pre-Assert
      assertEquals(true, link.isVisible());

      // Act
      link.setVisible(false);

      // Assert
      assertEquals(false, link.isVisible());
   }
View Full Code Here

   @SuppressWarnings("deprecation")
   @Test
   public void click_ClickHandler() {
      // Arrange
      bool = false;
      Hyperlink link = new Hyperlink();
      link.addClickHandler(new ClickHandler() {

         public void onClick(ClickEvent event) {
            bool = true;
         }
View Full Code Here

   }

   @Test
   public void constructor_HTML_Token() {
      // Act
      Hyperlink link = new Hyperlink("<h1>foo</h1>", true, "test-history-token");

      // Assert
      assertEquals("test-history-token", link.getTargetHistoryToken());
      assertEquals("<h1>foo</h1>", link.getHTML());

   }
View Full Code Here

   }

   @Test
   public void constructor_Text_Token() {
      // Act
      Hyperlink link = new Hyperlink("test-text", "test-history-token");

      // Assert
      assertEquals("test-text", link.getText());
      assertEquals("test-history-token", link.getTargetHistoryToken());
   }
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.