// Get Body
String body = getBody();
setBodyContent(null);
HtmlTagDictionary dic = HtmlTagDictionary.getInstance();
HtmlWriter w = new HtmlWriter(pageContext.getOut());
// Padding Text
if (padding==null)
padding = dic.PagerPaddingText();
String pbeg_e = dic.PagerFirstPageText();
String prwd_e = dic.PagerRewindText();
String pfwd_e = dic.PagerForwardText();
String pend_e = dic.PagerLastPageText();
String pbeg_d = dic.PagerFirstPageTextDisabled();
String prwd_d = dic.PagerRewindTextDisabled();
String pfwd_d = dic.PagerForwardTextDisabled();
String pend_d = dic.PagerLastPageTextDisabled();
// Class and Styles
HtmlTag div = w.startTag(dic.PagerTag());
addStandardAttributes(div, dic.PagerClass());
// Body
div.beginBody(body, true);
this.cssClass = str(linkClass, dic.PagerLinkClass());
this.cssStyle = null;
// onclick
if (onclick== null)
onclick = dic.PagerLinkDefaultOnClickScript();
// Label?
String pagerLabel = getString(str(label, dic.PagerLabelText()));
if (pagerLabel!=null)
{ // There is text
HtmlTag label = w.startTag( dic.PagerLabelTag());
label.addAttribute("class", dic.PagerLabelClass());
label.endTag(pagerLabel);
}
// Back and fast back
renderButton(w, pbeg_e, pbeg_d, true, pageCnt, current, 0);
renderButton(w, prwd_e, prwd_d, true, pageCnt, current, Math.max(current - 1, 0) );
// The Pages
for (int pageIndex=begIndex; pageIndex<endIndex; pageIndex++)
{
// Padding
if (pageIndex>0 && padding!=null)
w.println(padding);
// The Page selection
HtmlTag page = w.startTag(dic.PagerPageTag());
div.addAttribute("class", dic.PagerPageClass());
page.beginBody();
// The Anchors
String pageText = String.valueOf(pageIndex+1);
if (pageIndex>=pageCnt)