|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.indiana.dlib.metsnav.controller.NavigationController
public class NavigationController
A controller class that encapsulates all navigation operations
Constructor Summary | |
---|---|
NavigationController(ServletContext context,
String prefix)
Creates a new MetsNavigator instance |
Method Summary | |
---|---|
NavigationBean |
createNavigationBean(String oid,
String pageNum,
ParameterMap properties,
String contextPath)
Returns a NavigationBean object which encapsulates all
navigation data that will be displayed in the web interface |
ServletContext |
getContext()
|
int |
getCurrentPageNum()
|
PageItem |
getFirstPageItem()
Returns the first page |
PageItem |
getLastPageItem()
Returns the last page |
NavigationObject |
getNavigateObject()
Returns the navigateObject |
PageItem |
getNextPageItem(int pageNumber)
|
PageItem |
getNextPageItem(String pid)
Returns next pageitem of pid |
PageItem |
getPageItem(int pageNumber)
Returns the pageitem of pagenumber |
PageItem |
getPageItem(String pid)
Returns the page with pid |
int |
getPageNumber(String pid)
Returns the pagenumber given an pageid |
String |
getPrefix()
|
PageItem |
getPreviousPageItem(int pageNumber)
|
PageItem |
getPreviousPageItem(String pid)
|
ParameterMap |
getProperties()
|
int |
getTotalNumberOfPages()
|
NavigationBean |
populateScreenBean()
|
void |
setContext(ServletContext context)
|
void |
setCurrentPageNum(int currentPageNum)
|
void |
setNavigateObject(NavigationObject navigateObject)
Sets the navigateObject |
void |
setPrefix(String prefix)
|
void |
setProperties(ParameterMap properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NavigationController(ServletContext context, String prefix) throws ConfigurationException, DAOException
MetsNavigator
instance
context
- collection
-
ConfigurationException
DAOException
Method Detail |
---|
public NavigationBean createNavigationBean(String oid, String pageNum, ParameterMap properties, String contextPath) throws DAOException
NavigationBean
object which encapsulates all
navigation data that will be displayed in the web interface
oid
- pageNum
- properties
-
DAOException
public ServletContext getContext()
public int getCurrentPageNum()
public PageItem getFirstPageItem()
public PageItem getLastPageItem()
public NavigationObject getNavigateObject()
public PageItem getNextPageItem(int pageNumber) throws DAOException
DAOException
public PageItem getNextPageItem(String pid) throws DAOException
pid
- page id
DAOException
public PageItem getPageItem(int pageNumber) throws DAOException
pageNumber
-
DAOException
public PageItem getPageItem(String pid) throws DAOException
pid
- page id
DAOException
public int getPageNumber(String pid)
pid
-
public String getPrefix()
public PageItem getPreviousPageItem(int pageNumber) throws DAOException
pageNumber
-
DAOException
public PageItem getPreviousPageItem(String pid) throws DAOException
pid
-
DAOException
public ParameterMap getProperties()
public int getTotalNumberOfPages()
public NavigationBean populateScreenBean()
public void setContext(ServletContext context)
context
- The context to set.public void setCurrentPageNum(int currentPageNum)
currentPageNum
- The currentPageNum to set.public void setNavigateObject(NavigationObject navigateObject)
navigateObject
- The navigateObject to set.public void setPrefix(String prefix)
prefix
- The prefix to set.public void setProperties(ParameterMap properties)
properties
- The properties to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |