Class ItemNavigator

    • 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