public class OwNumberBlockPageSelectorComponent extends OwPageSelectorComponent
Page navigation component, that render each page URL as a group of first and the last item number displayed on that page.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
isStickyFooterInUse, LOG, m_configNode, m_view| Constructor and Description |
|---|
OwNumberBlockPageSelectorComponent(OwPageableView view_p)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initialize from configuration.
|
void |
render(Writer w_p)
Render the component.
|
protected void |
renderPageLocation(Writer w,
int startIdx,
int endIdx,
int currentPage,
int renderedPage)
Render a page location representation.
|
protected void |
renderStep(Writer w_p,
boolean stepNext,
String toolTip)
Render the page previous and next symbols/images.
|
protected boolean |
useImages()
Helper to get configuration information.
|
getDisplayCurrentPageNumber, getHumanReadablePageNumber, getLastPage, getPageAbsolutURL, getPageNextURL, getPagePrevURL, hasPaging, renderAccessibilityMark, setConfigNode, shouldRenderComponentpublic OwNumberBlockPageSelectorComponent(OwPageableView view_p)
view_p - - the OwPageableViewpublic void render(Writer w_p) throws Exception
OwPageSelectorComponentrender in class OwPageSelectorComponentw_p - - the writerExceptionOwPageSelectorComponent.render(java.io.Writer)protected void renderPageLocation(Writer w, int startIdx, int endIdx, int currentPage, int renderedPage) throws IOException
By default a representation like
startIdx..endIdxis used, and a link is created if location is not current page
currentPage != renderedPage.
w - WriterstartIdx - integer count from which the page is startingendIdx - integer count from whichcurrentPage - current page of viewrenderedPage - page of rendered locationIOExceptionprotected void renderStep(Writer w_p, boolean stepNext, String toolTip) throws Exception
w_p - WriterstepNext - boolean which symbol to rendertoolTip - String tool tip messag to displayExceptionprotected boolean useImages()
public void init()
throws Exception
init in class OwPageSelectorComponentException - - when the initialization fails.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.