Class ItemNavigator

  • All Implemented Interfaces:
    java.io.Serializable

    public class ItemNavigator
    extends java.lang.Object
    implements java.io.Serializable
    ItemNavigation provides a way to navigate between items
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemNavigator​(java.util.List<java.lang.String> listItems, int nCurrentItemId, java.lang.String strBaseUrl, java.lang.String strParameterName)
      Create a new instance of ItemNavigator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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
      java.lang.String getNextPageLink()
      Get the next page link of the item
      java.lang.String getPreviousPageLink()
      Get the previous page link of the item
      void setBaseUrl​(java.lang.String strBaseUrl)
      Set the Url of he navigator
      void setCurrentItemId​(java.lang.String strItem)
      Set the current item id given the content of the item
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ItemNavigator

        public ItemNavigator​(java.util.List<java.lang.String> listItems,
                             int nCurrentItemId,
                             java.lang.String strBaseUrl,
                             java.lang.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​(java.lang.String strItem)
        Set the current item id given the content of the item
        Parameters:
        strItem - the item
      • getPreviousPageLink

        public java.lang.String getPreviousPageLink()
        Get the previous page link of the item
        Returns:
        the previous page link of the item
      • getNextPageLink

        public java.lang.String getNextPageLink()
        Get the next page link of the item
        Returns:
        the next page link of the item
      • getBaseUrl

        public java.lang.String getBaseUrl()
        Get the Url of he navigator
        Returns:
        The Url of the navigator
      • setBaseUrl

        public void setBaseUrl​(java.lang.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