fr.paris.lutece.util.html
Class ItemNavigator

java.lang.Object
  extended by fr.paris.lutece.util.html.ItemNavigator

public class ItemNavigator
extends Object

ItemNavigation provides a way to navigate between items


Constructor Summary
ItemNavigator(List<String> listItems, int nCurrentItemId, String strBaseUrl, String strParameterName)
          Create a new instance of ItemNavigator
 
Method Summary
 String getBaseUrl()
          Get the Url of he navigator
 int getCurrentItemId()
          Get the current item map key
 int getListItemSize()
          Get the size of the item list
 String getNextPageLink()
          Get the next page link of the item
 String getPreviousPageLink()
          Get the previous page link of the item
 void setBaseUrl(String strBaseUrl)
          Set the Url of he navigator
 void setCurrentItemId(String strItem)
          Set the current item id given the content of the item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 item
nCurrentItemId - The current map key
strBaseUrl - The base url
strParameterName - 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


Copyright © 2014 Mairie de Paris. All Rights Reserved.