|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.dmsdialogs.views.OwPageSelectorComponent
public abstract class OwPageSelectorComponent
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
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
OwPageSelectorComponent(OwPageableView view_p)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger LOG
protected OwPageableView m_view
protected Node m_configNode
@Deprecated protected boolean isStickyFooterInUse
| Constructor Detail |
|---|
public OwPageSelectorComponent(OwPageableView view_p)
view_p - - the view that needs this paging component| Method Detail |
|---|
public abstract void render(Writer w_p)
throws Exception
w_p - - the writer
Exceptionpublic String getPageAbsolutURL(int iPage_p)
iPage_p -
public boolean hasPaging()
public String getPagePrevURL()
public String getPageNextURL()
protected int getDisplayCurrentPageNumber()
throws Exception
Exceptionprotected int getHumanReadablePageNumber(int pageNumber_p)
pageNumber_p - - the page number
protected int getLastPage()
throws Exception
Exception
protected boolean shouldRenderComponent()
throws Exception
true if component should be rendered.
Exceptionpublic void setConfigNode(Node configNode_p)
configNode_p -
public void init()
throws Exception
Exception - - when the initialization fails.
protected void renderAccessibilityMark(Writer w_p)
throws Exception
w_p - the Writer object
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||