// Freemarker TemplateListModel methods
- public TemplateModel get(int i){
- theLog.printDebugInfo("EntityList: get " +i );
- return elementAt(i);
- }
- public boolean isRewound() {
- theLog.printDebugInfo("EntityList: isrewound");
- return (freemarkerListPointer==-1) ? true : false;
- }
- public void rewind() {
- theLog.printDebugInfo("EntityList: rewind");
- freemarkerListPointer=-1; }
+ public TemplateModel get(int i) { return elementAt(i); }
+ public boolean isRewound() { return (freemarkerListPointer==-1) ? true : false; }
+ public void rewind() { freemarkerListPointer=-1; }
public TemplateModel next() {
- theLog.printDebugInfo("EntityList: next");
if (hasNext()) {
freemarkerListPointer++;return get(freemarkerListPointer); }
else return null;
}
public boolean hasNext() {
- theLog.printDebugInfo("EntityList: hasnext");
return theEntityArrayList.size()>0 && freemarkerListPointer+2<=theEntityArrayList.size();
}
public boolean isEmpty() {
- theLog.printDebugInfo("EntityList: isempty");
if (theEntityArrayList!=null)
return theEntityArrayList.size()<1 ;
else return false;
}
// timing and message to browser
logHTML(htmlout, "Producer.Content finished producing " +
- (System.currentTimeMillis() - startTime) + " ms. ("+ pageCount+")");
+ (System.currentTimeMillis() - startTime) + " ms. ("+ pageCount+" Pages)");
/** @todo here we should have a link back to admin logged */
/** @todo why no syncing here? */