Package edu.indiana.dlib.metsnav.data

Examples of edu.indiana.dlib.metsnav.data.AtomicItem


    md.put("lastPage", item.getLast().getId());
   
    Map ret = new HashMap();
    ret.put("article", md);
   
    AtomicItem ai = item.getFirst();
    Map aim = new HashMap();
    aim.put("pageNumber", ai.getSequentialOrder());
    aim.put("pageLabel", ai.getLabel());
    ParameterMap params = new ParameterMap();
    params.put("size", size);
    aim.put("imageURL", ai.getDataStream(params));
    aim.put("imageText", ai.getLabel());
    ret.put("page", aim);
    return ret;
 
View Full Code Here


        }
        if (currentPageNum > total) {
            currentPageNum = total;
        }

        AtomicItem page = getPageItem(currentPageNum);
        if (page == null) {
            throw new DAOException("The page number is incorrect: " + pageNum);
        }
        /*
         * page.setAltMessage(navigateObject.getDescription() + ": Page " +
         * currentPageNum + " of " + total);
         */
        NavigationBean bean = new NavigationBean();
        bean.setNavigateObject(navigateObject);
        bean.setCurrentPageItem(page);
        bean.setPageDisplay(page.getDataStream(properties));
        if (currentPageNum > 1) {
            bean.setPreviousPage(printURL(currentPageNum - 1) + properties.print());
        } else {
            bean.setPreviousPage(printURL(currentPageNum) + properties.print());
        }
View Full Code Here

TOP

Related Classes of edu.indiana.dlib.metsnav.data.AtomicItem

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.