示例#1
0
 /** @return Record the current pv record */
 public Object getCurPIterObj(HttpServletRequest request) {
   // get the index param
   String strIndex = request.getParameter(MdnHtmlServlet.PV_RECORD_INDEX);
   if (strIndex != null && strIndex.length() > 0) {
     int index = Integer.parseInt(strIndex);
     if (index >= 0) {
       PagedIteratorDelegate pd = getCurrentPagedItDelegate();
       return pd.getObject(index);
     }
   }
   return null;
 }
示例#2
0
 /**
  * Given a PagedItDelegate, store it internally using its reference-id
  *
  * @param p the PagedItDelegate
  */
 public void setPagedItDelegate(PagedIteratorDelegate p) {
   _piterQueries.put(p.getId(), p);
 }