public abstract class AbstractPaginatedTableBean<T extends TableData> extends AbstractTableBean<T> implements PaginatedTableBean<T>
PaginatedTableBean interface.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractPaginatedTableBean.CurrentPageEvaluationParams
Evaluation parameters that will evaluate the current page only.
|
protected class |
AbstractPaginatedTableBean.TablePage
Inner class that represents a page in the table.
|
AbstractTableBean.DefaultNavigationHandler, AbstractTableBean.TableClientImpl, AbstractTableBean.TableDataIterator, AbstractTableBean.ViewListenerProxyTableDataProvider.Displayed<T extends TableData>, TableDataProvider.Empty<T extends TableData>, TableDataProvider.Specific<T extends TableData>, TableDataProvider.Visible<T extends TableData>| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
DEFAULT_PAGINATION_THRESHOLD
The default pagination threshold.
|
DEFAULT_VISIBLE_TABLE_DATA_FILTER, EVALUATION_REQUIRED_TABLE_DATA_FILTER, SELECTED_TABLE_DATA_FILTEREMPTY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPaginatedTableBean()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPaginationChangeListener(PaginationChangeListener listener)
Adds a
listener that will receive
information about changes made to the pagination settings. |
TableBean<T> |
asNonPaginatedTable() |
void |
evaluateColumns(Column[] columns,
Environment env) |
protected void |
firePaginationChanged() |
int |
getCurrentPage()
Returns the current page.
|
java.util.Iterator<T> |
getDisplayedTableData()
Overridden to return only the
TableData instance for the current
page. |
int |
getPageCount()
Returns the current page count (i.e., available pages).
|
java.util.Iterator<T> |
getPageTableData()
Returns the
TableData instances for the current page. |
int |
getPageTableDataRange()
Returns the current page range (i.e., the maximum number of
TableData instances that should be displayed on one page). |
int |
getPaginationThreshold() |
protected java.util.Iterator<T> |
getUnpaginatedTableData()
Returns the displayed
TableData instances as implemented by the
super class. |
protected int |
getUnpaginatedTableDataCount()
Returns the count of the displayed
TableData instances as
implemented by the super class. |
boolean |
isOnlyEvaluateCurrentPage() |
boolean |
isPaginated()
Returns a boolean value indicating whether the table is paginated or not.
|
boolean |
isPaginationForced()
Checks if pagination is forced and cannot be switched off.
|
boolean |
isPaginationSupported()
Returns a boolean value indicating whether the table implementation
supports pagination or not.
|
protected boolean |
isProxyInvokation() |
boolean |
isValid()
Returns a boolean value indicating whether the table is valid or not.
|
protected void |
onClone(TableBean<T> c)
Create a deep copy of this object.
|
protected void |
onNavigate(TableBean<? extends TableData> structure,
java.lang.String objectId)
Initialize the
StructureBean when navigating. |
void |
removePaginationChangeListener(PaginationChangeListener listener)
Removes a previously added
pagination
change listener |
void |
setCurrentPage(int currentPage)
Sets the current page.
|
void |
setOnlyEvaluateCurrentPage(boolean onlyEvaluateCurrentPage) |
void |
setPageTableDataRange(int pageTableDataRange)
Sets the page range.
|
void |
setPaginated(boolean paginated)
Sets whether the table should be paginated or not.
|
void |
setPaginationSupported(boolean paginationSupported)
Sets whether the table implementation supports pagination or not.
|
void |
setPaginationThreshold(int paginationThreshold)
Changes the pagination threshold.
|
void |
validate(Environment env)
Validates the table.
|
accept, addEntryProcessor, addTableClonedListener, addTableContentListener, addTableGroupedListener, addTableListener, addTableNavigateListener, addVisibleTableDataFilter, clearEntryProcessor, clearRows, clearRowsBeforeEvaluation, clearVisibleTableDataFilter, clone, createEvaluationChain, createNavigationHandler, createNavigationHandler, createTableClient, createTableHeaders, ensureTable, ensureView, evaluate, evaluateColumns, fireColumnsUpdatedEvent, fireDidNavigateEvent, fireTableChangedEvent, fireTableContentAdded, fireTableContentCleared, fireTableContentRemoved, fireTableEvaluatedEvent, fireTableInvalidatedEvent, fireTableSortedEvent, fireViewChangedEvent, fireVisualsChangedEvent, fireWasClonedEvent, fireWasGroupedEvent, getCalculations, getCellAt, getChoosableViews, getColumnAt, getColumnByName, getColumnCount, getColumnIndex, getColumnList, getColumns, getContextMenu, getDisplayedTableDataCount, getEntryProcessor, getEntryProcessors, getEnv, getEnv, getEvaluationChain, getEvaluationRequiredTableData, getEvaluationRequiredTableDataCount, getFilteredTableData, getFilteredTableDataCount, getHasParent, getHeader, getLocaleForHeaders, getMenuBar, getMode, getNavigationHandler, getNavigationHandler, getObjectIdForHeaders, getPageConfig, getParent, getSelectedTableData, getSelectedTableDataCount, getSubHeader, getTableClonedListeners, getTableContentListeners, getTableData, getTableData, getTableDataAt, getTableDataCount, getTableDataWithId, getTableGroupedListeners, getTableListeners, getTableNavigateListeners, getView, getViewFactory, getVisibleColumnAt, getVisibleColumnByName, getVisibleColumnCount, getVisibleColumns, getVisibleTableData, getVisibleTableDataCount, getVisibleTableDataFilters, getVisibleTableDataFilters, group, hasCellAt, hasEvaluationForcedColumns, hasTableData, hasVisibleTableDataFilter, invalidate, invalidateTableData, isColumnsLoaded, isEvaluateReadOnly, isEvaluationForcedFor, isEvaluationRequired, isHeaderHTML, isNavigateSupported, isOnlyEvaluateVisibleColumns, isSubHeaderHTML, isTableChangeable, isViewChangeable, isVisible, isVisibleColumn, isVisibleColumnImpl, isVisualsChangeable, loadFromInquiry, loadFromJPO, navigate, navigate, onColumnsUpdated, onGroup, onTableChanged, onTableEvaluated, onTableInvalidated, onTableSorted, onViewChanged, onVisualsChanged, paramString, reload, removeEntryProcessor, removeParent, removeTableClonedListener, removeTableContentListener, removeTableData, removeTableData, removeTableGroupedListener, removeTableListener, removeTableNavigateListener, removeVisibleTableDataFilter, removeVisibleTableDataFilters, setChoosableViews, setContextMenu, setEntryProcessor, setEntryProcessors, setEnv, setEvaluateReadOnly, setHeader, setHeader, setMenuBar, setNavigateSupported, setOnlyEvaluateVisibleColumns, setPageConfig, setParent, setSubHeader, setSubHeader, setTableChangeable, setView, setView, setViewChangeable, setViewFactory, setVisualsChangeable, toStringgetAttribute, getAttributeMap, getAttributeNames, removeAttribute, setAttributeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, addTableClonedListener, addTableContentListener, addTableGroupedListener, addTableListener, addTableNavigateListener, addVisibleTableDataFilter, clearVisibleTableDataFilter, clone, getCalculations, getCellAt, getColumnAt, getColumnByName, getColumnCount, getColumnIndex, getColumnList, getColumns, getDisplayedTableDataCount, getEvaluationRequiredTableData, getEvaluationRequiredTableDataCount, getFilteredTableData, getFilteredTableDataCount, getHasParent, getHeader, getNavigationHandler, getNavigationHandler, getParent, getSelectedTableData, getSelectedTableDataCount, getSubHeader, getTableClonedListeners, getTableData, getTableData, getTableData, getTableDataAt, getTableDataCount, getTableDataWithId, getTableGroupedListeners, getTableListeners, getTableNavigateListeners, getVisibleColumnAt, getVisibleColumnByName, getVisibleColumnCount, getVisibleColumns, getVisibleTableData, getVisibleTableDataCount, getVisibleTableDataFilters, getVisibleTableDataFilters, hasCellAt, hasTableData, hasVisibleTableDataFilter, invalidate, isHeaderHTML, isNavigateSupported, isOnlyEvaluateVisibleColumns, isSubHeaderHTML, isVisible, isVisibleColumn, navigate, navigate, reload, removeParent, removeTableClonedListener, removeTableContentListener, removeTableData, removeTableData, removeTableData, removeTableGroupedListener, removeTableListener, removeTableNavigateListener, removeVisibleTableDataFilter, removeVisibleTableDataFilters, setHeader, setHeader, setOnlyEvaluateVisibleColumns, setParent, setSubHeader, setSubHeadergetChoosableViews, getView, getViewFactory, isTableChangeable, isViewChangeable, isVisualsChangeable, setChoosableViews, setView, setView, setViewFactorygetMenuBar, setMenuBargetContextMenu, setContextMenuisInquirySupported, loadFromInquiry, loadFromInquirygetEnv, getEnv, setEnvgetAttribute, getAttributeNames, removeAttribute, setAttributegetPageConfig, setPageConfigselectableChanged, selectionChangedpublic static final java.lang.Integer DEFAULT_PAGINATION_THRESHOLD
protected AbstractPaginatedTableBean()
protected boolean isProxyInvokation()
asNonPaginatedTable()public int getPaginationThreshold()
getPaginationThreshold in interface PaginatedTableBean<T extends TableData>public void setPaginationThreshold(int paginationThreshold)
PaginatedTableBeansetPaginationThreshold in interface PaginatedTableBean<T extends TableData>paginationThreshold - The new pagination threshold value.public void evaluateColumns(Column[] columns, Environment env) throws TVCException
evaluateColumns in interface com.technia.tvc.core.table.EvaluatedTableBean<T extends TableData>evaluateColumns in class AbstractTableBean<T extends TableData>TVCExceptionpublic boolean isOnlyEvaluateCurrentPage()
isOnlyEvaluateCurrentPage in interface PaginatedTableBean<T extends TableData>public void setOnlyEvaluateCurrentPage(boolean onlyEvaluateCurrentPage)
setOnlyEvaluateCurrentPage in interface PaginatedTableBean<T extends TableData>onlyEvaluateCurrentPage - Whether to only evaluate the current page.protected void onClone(TableBean<T> c)
onClone in class AbstractTableBean<T extends TableData>public boolean isValid()
current page has been modified).public void validate(Environment env) throws TVCException
validate in interface TableBean<T extends TableData>validate in class AbstractTableBean<T extends TableData>env - the environment.TVCException - if unable to validate the table.public boolean isPaginationForced()
isPaginationForced in interface PaginatedTableBean<T extends TableData>public boolean isPaginationSupported()
isPaginationSupported in interface PaginatedTableBean<T extends TableData>public void setPaginationSupported(boolean paginationSupported)
paginationSupported - whether the table implementation supports
pagination or not.public TableBean<T> asNonPaginatedTable()
asNonPaginatedTable in interface PaginatedTableBean<T extends TableData>this interface either,
however as many as possible of the other interfaces that is
implemented by the current instance should also be implemented by
the returned wrapper.public boolean isPaginated()
isPaginated in interface PaginatedTableBean<T extends TableData>public void setPaginated(boolean paginated)
setPaginated in interface PaginatedTableBean<T extends TableData>paginated - boolean value indicating whether the table should be
paginated or not.public int getPageCount()
getPageCount in interface PaginatedTableBean<T extends TableData>public int getPageTableDataRange()
TableData instances that should be displayed on one page).getPageTableDataRange in interface PaginatedTableBean<T extends TableData>public void setPageTableDataRange(int pageTableDataRange)
Note that the table should be validated before any changes to this property should be visible.
setPageTableDataRange in interface PaginatedTableBean<T extends TableData>pageTableDataRange - the maximum number of TableData
instances that should be displayed on one page.public java.util.Iterator<T> getPageTableData()
TableData instances for the current page.getPageTableData in interface PaginatedTableBean<T extends TableData>TableData instances for the current page.public java.util.Iterator<T> getDisplayedTableData()
TableData instance for the current
page.getDisplayedTableData in interface TableBean<T extends TableData>getDisplayedTableData in class AbstractTableBean<T extends TableData>TableData instance for the current page.public int getCurrentPage()
getCurrentPage in interface PaginatedTableBean<T extends TableData>public void setCurrentPage(int currentPage)
Note that the table should be validated before any changes to this property should be visible.
setCurrentPage in interface PaginatedTableBean<T extends TableData>currentPage - the current page.protected java.util.Iterator<T> getUnpaginatedTableData()
TableData instances as implemented by the
super class.TableData instances as implemented by the
super class.protected int getUnpaginatedTableDataCount()
TableData instances as
implemented by the super class.TableData instances as
implemented by the super class.public void addPaginationChangeListener(PaginationChangeListener listener)
PaginatedTableBeanlistener that will receive
information about changes made to the pagination settings.addPaginationChangeListener in interface PaginatedTableBean<T extends TableData>listener - The listener to add.public void removePaginationChangeListener(PaginationChangeListener listener)
PaginatedTableBeanpagination
change listenerremovePaginationChangeListener in interface PaginatedTableBean<T extends TableData>listener - The listener to removeprotected void firePaginationChanged()
protected void onNavigate(TableBean<? extends TableData> structure, java.lang.String objectId) throws TVCException
StructureBean when navigating.onNavigate in class AbstractTableBean<T extends TableData>TVCExceptionCopyright ? Technia AB. All Rights Reserved.