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, shouldRenderComponent
public OwNumberBlockPageSelectorComponent(OwPageableView view_p)
view_p
- - the OwPageableView
public void render(Writer w_p) throws Exception
OwPageSelectorComponent
render
in class OwPageSelectorComponent
w_p
- - the writerException
OwPageSelectorComponent.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 locationIOException
protected void renderStep(Writer w_p, boolean stepNext, String toolTip) throws Exception
w_p
- WriterstepNext
- boolean which symbol to rendertoolTip
- String tool tip messag to displayException
protected boolean useImages()
public void init() throws Exception
init
in class OwPageSelectorComponent
Exception
- - when the initialization fails.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.