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

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


    if (0 == relatedReports.length) {
      relatedReportsPanel.add(new Label("(none)"));
    } else {
      for (int i = 0; i < relatedReports.length; i++) {
        relatedReportsPanel.add(new Hyperlink(relatedReports[i].getTitle(), "report " + relatedReports[i].getId()));
      }
    }
  }
View Full Code Here


      if (null == related) {
        return new Label("[unresolved]");
      } else {
        final ModuleDto moduleDtoRelated = DtoModuleRegistry.instance().get(relatedModule);
        final String token = CollectionHelper.join(" ", moduleDtoRelated.getHistoryToken(), ModuleAction.DETAIL.toString().toLowerCase(), String.valueOf(value));
        final Hyperlink link = new Hyperlink(related.getQuicksearch(), token);

        if (related.getAllPreviewableFieldsSorted().isEmpty()) {
          /**
           * there are no details that can be displayed. only display the link to the related item.
           */
 
View Full Code Here

    Label lblNewLabel = new Label("");
    c.add(lblNewLabel);
    HBoxLayoutData flex = new HBoxLayoutData(new Margins(0, 5, 0, 0));
    flex.setFlex(1);
    c.add(new Text(), flex);
    Hyperlink hprlnkNewHyperlink = new Hyperlink("New hyperlink", false, "newHistoryToken");
    c.add(hprlnkNewHyperlink);

    Hyperlink hprlnkNewHyperlink_1 = new Hyperlink("New hyperlink", false, "newHistoryToken");
    c.add(hprlnkNewHyperlink_1);

    Hyperlink hprlnkNewHyperlink_2 = new Hyperlink("New hyperlink", false, "newHistoryToken");
    c.add(hprlnkNewHyperlink_2);
    fldstNewFieldset_1.add(c);
   
    Label lblNewLabel_1 = new Label("New label");
    lblNewLabel_1.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
View Full Code Here

     */
    public void addAlbumThumbnail(Album album) {
        Image image = new Image();
        image.setUrl(album.getThumbnailURL());
        image.setStyleName("album-thumbnail");
        Hyperlink imageLink = new Hyperlink();
        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

        double scaleFactor = photo.getScaleFactor(128, 128);
        image.setPixelSize((int)(photo.getWidth() * scaleFactor),
                (int)(photo.getHeight() * scaleFactor));
        image.setUrl(photo.getThumbnailURL());
        image.setStyleName("photo-thumbnail");
        Hyperlink imageLink = new Hyperlink();
        imageLink.getElement().getFirstChild().appendChild(image.getElement());
        String target = getLocation(albumName, photo.getID());
        imageLink.setTargetHistoryToken(target);
        imageLink.setStyleName("photo-thumbnail-block");
        imageLink.addStyleName("inline-block");
        thumbnails.add(imageLink);
    }
View Full Code Here

    private void addTreeItems(TreeItem item, List<AlbumTreeNode> children) {
        for (AlbumTreeNode node: children) {
            final Album album = node.getAlbum();
            String target = getLocation(album.getName());
            TreeItem child = item.addItem(
                    new Hyperlink(album.getTitle(), target));
            addTreeItems(child, node.getChildren());
        }
    }
View Full Code Here

     */
    private void loadTree() {
        if (tree == null) return;
        tree.clear();
        TreeItem root = tree.addItem(
                new Hyperlink("Albums", getLocation(null)));
        root.removeItems();
        addTreeItems(root, roots);
        root.setState(true);
    }
View Full Code Here

    textBoxParent.addItem(new TextArea());

    // Add an item with basic elements inside of it
    {
      final TextBox textBox = new TextBox();
      Hyperlink link = new Hyperlink("change focus", "blah");
      link.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          textBox.setFocus(true);
          event.getNativeEvent().stopPropagation();
        }
      });
View Full Code Here

  private Hyperlink getHyperlink(Class<?> cwClass, String name) {
    // 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

  private Hyperlink getHyperlink(Class<?> cwClass, String name) {
    // 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

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.