Examples of addPara()


Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addPara()

    doc.setTitle("Search Results");
    int hitsTotal = tdc.getTotalHits();
    if(lq.size + lq.skip > hitsTotal) {
      lq.size = hitsTotal - lq.skip;
    }
    Element p = doc.addPara();
    p.appendChild("Results " + Integer.toString(lq.skip + 1) + " to " + Integer.toString(lq.size + lq.skip) + " of " + Integer.toString(hitsTotal) + ": ");
    if(lq.skip > 0) p.appendChild(doc.makeLink(lq.getQueryURL(Math.max(lq.skip - lq.size, 0), lq.size), "prev"));
    p.appendChild(" ");
    if(lq.size + lq.skip < hitsTotal) p.appendChild(doc.makeLink(lq.getQueryURL(lq.skip + lq.size, lq.size), "next"));
    TopDocs td = tdc.topDocs();
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.