Package fr.paris.lutece.util.html
Class ItemNavigator
java.lang.Object
fr.paris.lutece.util.html.ItemNavigator
- All Implemented Interfaces:
Serializable
ItemNavigation provides a way to navigate between items
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionItemNavigator(List<String> listItems, int nCurrentItemId, String strBaseUrl, String strParameterName) Create a new instance of ItemNavigator -
Method Summary
Modifier and TypeMethodDescriptionGet the Url of he navigatorintGet the current item map keyintGet the size of the item listGet the next page link of the itemGet the previous page link of the itemvoidsetBaseUrl(String strBaseUrl) Set the Url of he navigatorvoidsetCurrentItemId(String strItem) Set the current item id given the content of the item
-
Constructor Details
-
ItemNavigator
public ItemNavigator(List<String> listItems, int nCurrentItemId, String strBaseUrl, String strParameterName) Create a new instance of ItemNavigator- Parameters:
listItems- the list of itemnCurrentItemId- The current map keystrBaseUrl- The base urlstrParameterName- The parameter name
-
-
Method Details
-
setCurrentItemId
Set the current item id given the content of the item- Parameters:
strItem- the item
-
getPreviousPageLink
Get the previous page link of the item- Returns:
- the previous page link of the item
-
getNextPageLink
Get the next page link of the item- Returns:
- the next page link of the item
-
getBaseUrl
Get the Url of he navigator- Returns:
- The Url of the navigator
-
setBaseUrl
Set the Url of he navigator- Parameters:
strBaseUrl- The new Url of the navigator
-
getListItemSize
public int getListItemSize()Get the size of the item list- Returns:
- the size of the item list
-
getCurrentItemId
public int getCurrentItemId()Get the current item map key- Returns:
- the current item map key
-