Class AbstractListCacheBasedDisplay<T extends Serializable>
java.lang.Object
name.matthewgreet.strutscommons.view.AbstractListCacheBasedDisplay<T>
- Type Parameters:
T-
- Direct Known Subclasses:
AbstractDetailDisplay,AbstractListDisplay
Unused.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintintbooleanIf true, the number of browser tabs displaying pages of the same app but independent, per-tab search results are counted and known.intReturns position of this tab among list of sibling tabs, browser tabs displaying pages of the same app but independent, per-tab search results.intReturns the number of browser tabs displaying pages of the same app but independent, per-tab search results.intvoidinit()voidsetBrowserTabSessionData(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.
-
Constructor Details
-
AbstractListCacheBasedDisplay
-
-
Method Details
-
init
- 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 beforeinit(). -
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.
-