Class AbstractListCacheBasedDisplay<T extends Serializable>

java.lang.Object
name.matthewgreet.strutscommons.view.AbstractListCacheBasedDisplay<T>
Direct Known Subclasses:
AbstractDetailDisplay, AbstractListDisplay

public abstract class AbstractListCacheBasedDisplay<T extends Serializable> extends Object
  • Constructor Details

    • AbstractListCacheBasedDisplay

      public AbstractListCacheBasedDisplay(ListCache<?,?,T> listCache)
  • Method Details

    • init

      public void init() throws Exception
      Throws:
      Exception
    • setBrowserTabSessionData

      public void setBrowserTabSessionData(BrowserTabSession browserTabSession, Class<? extends AbstractCompositeCache<?,T>> compositeCacheClass, String tabId)
      Sets all session data, class of composite cache used by sibling tabs, and tab id of this tab. This must be called before init().
    • getListCache

      protected ListCache<?,?,T> getListCache()
    • getRecordNo

      public int getRecordNo()
    • getListSize

      public int getListSize()
    • getPageNo

      public int getPageNo()
    • getPageSize

      public int getPageSize()
    • getTotalPages

      public int getTotalPages()
    • getPageStartRecordNo

      public int getPageStartRecordNo()
    • getSiblingTabCountAvailable

      public boolean getSiblingTabCountAvailable()
      If true, the number of browser tabs displaying pages of the same app but independent, per-tab search results are counted and known.
    • getSiblingTabSize

      public int getSiblingTabSize()
      Returns the number of browser tabs displaying pages of the same app but independent, per-tab search results. This is not perfect as users can close tabs, leaving its per-tab session data hanging around.
    • getSiblingTabNo

      public int getSiblingTabNo()
      Returns position of this tab among list of sibling tabs, browser tabs displaying pages of the same app but independent, per-tab search results. First is 1.