public abstract class OwPageSelectorComponent extends Object
Base class for paging components.
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
Modifier and Type | Field and Description |
---|---|
protected boolean |
isStickyFooterInUse
Deprecated.
since 4.1.1.0 This attribute is no longer used and will be soon removed.
|
protected static org.apache.log4j.Logger |
LOG
Logger for this class
|
protected Node |
m_configNode
the config node
|
protected OwPageableView |
m_view
the view on this component apply to
|
Constructor and Description |
---|
OwPageSelectorComponent(OwPageableView view_p)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getDisplayCurrentPageNumber()
Get the number of current page (1 - based)
|
protected int |
getHumanReadablePageNumber(int pageNumber_p)
Returns the human readable page number (1 - based)
|
protected int |
getLastPage()
Get the last page number
|
String |
getPageAbsolutURL(int iPage_p)
Create an URL for the given page
|
String |
getPageNextURL()
Get the next page URL
|
String |
getPagePrevURL()
Get the previous page URL
|
boolean |
hasPaging()
check if page buttons should be rendered
|
void |
init()
Post creation hook for initialization component.
|
abstract void |
render(Writer w_p)
Render the component.
|
protected void |
renderAccessibilityMark(Writer w_p)
Render a mark for accessibility.
|
void |
setConfigNode(Node configNode_p)
Set the config node
|
protected boolean |
shouldRenderComponent()
Check if it make sense to display the paging component.
|
protected static final org.apache.log4j.Logger LOG
protected OwPageableView m_view
protected Node m_configNode
@Deprecated protected boolean isStickyFooterInUse
public OwPageSelectorComponent(OwPageableView view_p)
view_p
- - the view that needs this paging componentpublic abstract void render(Writer w_p) throws Exception
w_p
- - the writerException
public String getPageAbsolutURL(int iPage_p)
iPage_p
- public boolean hasPaging()
public String getPagePrevURL()
public String getPageNextURL()
protected int getDisplayCurrentPageNumber() throws Exception
Exception
protected int getHumanReadablePageNumber(int pageNumber_p)
pageNumber_p
- - the page numberprotected int getLastPage() throws Exception
Exception
protected boolean shouldRenderComponent() throws Exception
true
if component should be rendered.Exception
public void setConfigNode(Node configNode_p)
configNode_p
- public void init() throws Exception
Exception
- - when the initialization fails.Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.