Examples of attr()


Examples of org.jacoco.report.internal.html.HTMLElement.attr()

  }

  private void body(final HTMLElement body) throws IOException {
    body.attr("onload", getOnload());
    final HTMLElement navigation = body.div(Styles.BREADCRUMB);
    navigation.attr("id", "breadcrumb");
    infoLinks(navigation.span(Styles.RIGHT));
    breadcrumb(navigation, folder);
    body.h1().text(getLinkLabel());
    content(body);
    footer(body);
View Full Code Here

Examples of org.jacoco.report.internal.xml.XMLElement.attr()

      private void writeHeader(final String name) throws IOException {
        element.attr("name", name);
        for (final SessionInfo i : sessionInfos) {
          final XMLElement sessioninfo = root.element("sessioninfo");
          sessioninfo.attr("id", i.getId());
          sessioninfo.attr("start", i.getStartTimeStamp());
          sessioninfo.attr("dump", i.getDumpTimeStamp());
        }
      }
View Full Code Here

Examples of org.jsoup.nodes.Document.attr()

        return path;
    }

    public Document getDocumentClone() {
        Document newDoc = doc.clone();
        newDoc.attr(ExtNodeConstants.ATTR_DOC_REF, "doc-" + IdGenerator.createId());
        return newDoc;
    }
}
View Full Code Here

Examples of org.jsoup.nodes.Element.attr()

            {
                Element link = links.get( lx );
                /*
                 * The abs:href loses directories, so we deal with absolute paths ourselves below in cleanLink
                 */
                String target = link.attr( "href" );
                if ( target != null )
                {
                    String clean = cleanLink( baseURI, target );
                    if ( isAcceptableLink( clean ) )
                    {
View Full Code Here

Examples of org.jsoup.nodes.Element.attr()

  Element tweet_div = doc.select("div.permalink-tweet").first();

  String tweet_text = tweet_div.select("p.tweet-text").first().text();
  status.addProperty("text", tweet_text);

  String tweet_id = tweet_div.attr("data-tweet-id");
  status.addProperty("id_str", tweet_id);
  status.addProperty("id", Long.parseLong(tweet_id));

  String timestamp = doc.select("span.js-short-timestamp").first().attr("data-time");
  Date created_at = new Date();
View Full Code Here

Examples of org.jsoup.nodes.Element.attr()

  status.addProperty("favorited", !js_stats_favs.isEmpty());
     

  // User subfield
  JsonObject user = new JsonObject();
  String user_id = tweet_div.attr("data-user-id");
  user.addProperty("id_str", user_id);
  user.addProperty("id", Long.parseLong(user_id));
  String screen_name = tweet_div.attr("data-screen-name");
  user.addProperty("screen_name", screen_name);
  String user_name = tweet_div.attr("data-name");
View Full Code Here

Examples of org.jsoup.nodes.Element.attr()

  // User subfield
  JsonObject user = new JsonObject();
  String user_id = tweet_div.attr("data-user-id");
  user.addProperty("id_str", user_id);
  user.addProperty("id", Long.parseLong(user_id));
  String screen_name = tweet_div.attr("data-screen-name");
  user.addProperty("screen_name", screen_name);
  String user_name = tweet_div.attr("data-name");
  user.addProperty("name", user_name);
 
  status.add("user", user);
View Full Code Here

Examples of org.jsoup.nodes.Element.attr()

  String user_id = tweet_div.attr("data-user-id");
  user.addProperty("id_str", user_id);
  user.addProperty("id", Long.parseLong(user_id));
  String screen_name = tweet_div.attr("data-screen-name");
  user.addProperty("screen_name", screen_name);
  String user_name = tweet_div.attr("data-name");
  user.addProperty("name", user_name);
 
  status.add("user", user);
 
  // Geo information
View Full Code Here

Examples of org.jsoup.nodes.Element.attr()

  Elements tweet_loc = doc.select("a.tweet-geo-text");
  if (!tweet_loc.isEmpty()) {
      JsonObject location = new JsonObject();
      Element loc = tweet_loc.first();
      // Adding http to avoid malformed URL exception
      URL url = new URL("http:" + loc.attr("href"));
      Map<String, String> query_params = HTMLStatusExtractor.splitQuery(url);
      // Loop over possible query parameters
      // http://asnsblues.blogspot.ch/2011/11/google-maps-query-string-parameters.html
      String lat_and_long = null;
      if ((lat_and_long = query_params.get("ll")) != null
View Full Code Here

Examples of org.jsoup.nodes.Element.attr()

                    .attr("type", "image/vnd.microsoft.icon")
                    .attr("href", themeUri + "/favicon.ico");
        }

        Element body = document.body();
        body.attr("scroll", "auto");
        body.addClass(ApplicationConstants.GENERATED_BODY_CLASSNAME);
    }

    protected String getMainDivStyle(BootstrapContext context) {
        return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.