Interface PageServiceModifier

All Known Implementing Classes:
PageServiceBuilder

public interface PageServiceModifier
  • Method Details

    • previousId

      PageServiceModifier previousId(String id)
      Sets the custom id of the previous button.
      Parameters:
      id - custom id
      Returns:
      builder instance
    • nextId

      Sets the custom id of the next button.
      Parameters:
      id - custom id
      Returns:
      builder instance
    • previousText

      PageServiceModifier previousText(String text)
      Sets the text of the previous button
      Parameters:
      text - text
      Returns:
      builder instance
    • nextText

      PageServiceModifier nextText(String text)
      Sets the text of the next button
      Parameters:
      text - text
      Returns:
      builder instance
    • withCache

      PageServiceModifier withCache(com.google.common.cache.Cache<Long,IPageBag> cache)
      Sets the cache used to cache registered pages.
      Parameters:
      cache - cache instance
      Returns:
      builder instance
    • withCache

      PageServiceModifier withCache(Consumer<com.google.common.cache.CacheBuilder<Object,Object>> cache)
      Modify a new cache builder which will be used to build the underlying cache to cache registered pages.
      Parameters:
      cache - cache builder instance
      Returns:
      builder instance
    • withLocalizer

      PageServiceModifier withLocalizer(ILocalizer localizer)
      Defined the localizer to be used to localize the previousText(String) and nextText(String)
      Parameters:
      localizer - localizer instance
      Returns:
      builder instance