Package fr.paris.lutece.util.html
Class ItemNavigator
- java.lang.Object
-
- fr.paris.lutece.util.html.ItemNavigator
-
- All Implemented Interfaces:
Serializable
public class ItemNavigator extends Object implements Serializable
ItemNavigation provides a way to navigate between items- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemNavigator(List<String> listItems, int nCurrentItemId, String strBaseUrl, String strParameterName)Create a new instance of ItemNavigator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseUrl()Get the Url of he navigatorintgetCurrentItemId()Get the current item map keyintgetListItemSize()Get the size of the item listStringgetNextPageLink()Get the next page link of the itemStringgetPreviousPageLink()Get 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 Detail
-
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 Detail
-
setCurrentItemId
public void setCurrentItemId(String strItem)
Set the current item id given the content of the item- Parameters:
strItem- the item
-
getPreviousPageLink
public String getPreviousPageLink()
Get the previous page link of the item- Returns:
- the previous page link of the item
-
getNextPageLink
public String getNextPageLink()
Get the next page link of the item- Returns:
- the next page link of the item
-
getBaseUrl
public String getBaseUrl()
Get the Url of he navigator- Returns:
- The Url of the navigator
-
setBaseUrl
public void setBaseUrl(String strBaseUrl)
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
-
-