Package com.gitblit.wicket

Examples of com.gitblit.wicket.ExternalImage


        }
        switch (type) {
        case 2:
          // image blobs
          add(new Label("blobText").setVisible(false));
          add(new ExternalImage("blobImage", urlFor(RawPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)).toString()));
          break;
        case 3:
          // binary blobs
          add(new Label("blobText", "Binary File"));
          add(new Image("blobImage").setVisible(false));
View Full Code Here


        }
        switch (type) {
        case 2:
          // image blobs
          add(new Label("blobText").setVisible(false));
          add(new ExternalImage("blobImage", rawUrl));
          break;
        case 3:
          // binary blobs
          add(new Label("blobText", "Binary File"));
          add(new Image("blobImage").setVisible(false));
View Full Code Here

      // not showing or nothing to show
      graph.setVisible(false);
    } else {
      // set the rowspan on the graph row and +1 for the graph row itself
      graph.add(new SimpleAttributeModifier("rowspan", "" + (commits.size() + 1)));
      graph.add(new ExternalImage("image", BranchGraphServlet.asLink(baseUrl, repositoryName, commits.get(0).name(), commits.size())));
    }

    // header
    if (pageResults) {
      // shortlog page
View Full Code Here

        if (StringUtils.isEmpty(clientApp.icon)) {
          img = WicketUtils.newClearPixel("applicationIcon").setVisible(false);
        } else {
          if (clientApp.icon.contains("://")) {
            // external image
            img = new ExternalImage("applicationIcon", clientApp.icon);
          } else {
            // context image
            img = WicketUtils.newImage("applicationIcon", clientApp.icon);
          }
        }
View Full Code Here

    if (identicon) {
      url = ActivityUtils.getGravatarIdenticonUrl(email, width);
    } else {
      url = ActivityUtils.getGravatarThumbnailUrl(email, width);
    }
    ExternalImage image = new ExternalImage("image", url);
    if (cssClass != null) {
      WicketUtils.setCssClass(image, cssClass);
    }
    add(image);
    WicketUtils.setHtmlTooltip(image, username);
View Full Code Here

TOP

Related Classes of com.gitblit.wicket.ExternalImage

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.