public abstract class AbstractFlatTableBean extends AbstractSortableTableBean<TableData> implements FlatTableBean
FlatTableBean interface.AbstractSortableTableBean.ForcedColumnsParams, AbstractSortableTableBean.SortInfoAbstractEditableTableBean.CellUpdaterTableClient, AbstractEditableTableBean.CommitResultImpl, AbstractEditableTableBean.ConnectResultImpl, AbstractEditableTableBean.DeleteResultImpl, AbstractEditableTableBean.DisconnectResultImpl, AbstractEditableTableBean.ObjectResultImpl, AbstractEditableTableBean.RemoveResultImpl, AbstractEditableTableBean.ReplaceResultImpl, AbstractEditableTableBean.UpdateResultImplAbstractPaginatedTableBean.CurrentPageEvaluationParams, AbstractPaginatedTableBean.TablePageAbstractTableBean.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>StructureModifiableTableBean.CallBack, StructureModifiableTableBean.CommitResult, StructureModifiableTableBean.CommitResults, StructureModifiableTableBean.ConnectResult, StructureModifiableTableBean.ConnectSpec, StructureModifiableTableBean.DeleteResult, StructureModifiableTableBean.DisconnectResult, StructureModifiableTableBean.ReplaceResult, StructureModifiableTableBean.ReplaceSpec, StructureModifiableTableBean.UpdateResulteditable, editSupported, structureModificationSupportedDEFAULT_VISIBLE_TABLE_DATA_FILTER, EVALUATION_REQUIRED_TABLE_DATA_FILTER, SELECTED_TABLE_DATA_FILTEREMPTYMODE_ASCENDING, MODE_DESCENDING, MODE_NOT_SORTED| Constructor and Description |
|---|
AbstractFlatTableBean()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTableData(java.util.List<java.util.Map<java.lang.Object,java.lang.Object>> mapList)
Adds
TableData instances specified by the mapList. |
void |
addTableData(java.lang.String[] objectId)
Adds
TableData instances specified by the object IDs. |
void |
addTableData(java.lang.String[] relationshipId,
java.lang.String[] objectId)
Adds
TableData instances specified by the relationship and object
IDs. |
TableData |
addTableData(java.lang.String relationshipId,
java.lang.String objectId)
Adds
TableData instances specified by the relationship and object
ID. |
void |
addTableData(TableData tableData)
Adds an
TableData instance |
void |
clearTableData()
Removes all
TableData instances. |
protected abstract TableData |
createTableData(java.util.Map<java.lang.Object,java.lang.Object> map)
Creates a
TableData instance using the specified
java.util.Map. |
protected abstract TableData |
createTableData(java.lang.String relationshipId,
java.lang.String objectId)
Creates a
TableData instance using the specified relationship and
object IDs. |
java.util.Iterator<TableData> |
getTableData()
Returns all
TableData instances currently in the table. |
TableData |
getTableDataAt(int index)
Returns the
TableData instance at the specified index. |
int |
getTableDataCount()
Returns the count of all
TableData instances in the table. |
boolean |
isInquirySupported(com.technia.tvc.core.db.inquiry.Inquiry inquiry)
Returns a boolean value indicating whether the specified
Inquiry
is supported or not. |
void |
loadFromInquiry(com.technia.tvc.core.db.inquiry.Inquiry inquiry,
Environment env,
boolean append)
Loads the table with
TableData instances from the inquiry. |
void |
loadFromJPO(JPOName name,
Environment env,
boolean append)
Loads the table with
TableData instances from the JPO. |
protected void |
onClone(TableBean<TableData> c)
Create a deep copy of this object.
|
void |
removeTableData(TableData data)
Removed the specified
TableData from the table. |
void |
setTableData(java.util.List<java.util.Map<java.lang.Object,java.lang.Object>> mapList)
|
void |
setTableData(java.lang.String[] objectId)
|
void |
setTableData(java.lang.String[] relationshipId,
java.lang.String[] objectId)
|
void |
sort(Environment env)
Sorts the
TableData instances. |
addSortMode, addSortMode, clearSortModes, createEvaluationChain, fireColumnsUpdatedEvent, getModeForString, getSortMode, getSortMode, getSortOrder, getSortOrderByName, hasSortModes, initDefault, invalidateSort, isAnySorted, isEvaluationForcedFor, isSorted, isSorted, isSorted, isSortSupported, isValid, isValidSort, onColumnsUpdated, onNavigate, onTableChanged, onTableSorted, onViewChanged, setSortMode, setSortMode, setSortSupported, sortIfRequired, validate, validateSortaddTableEditListenerListener, afterConnect, afterDisconnect, afterEdit, afterEdit, connect, createConnectResult, createDisconnectResult, createReplaceResult, disconnect, editCell, editCells, fireWasEditedEvent, fireWasEditedEvent, getReuseCellsForEditEvaluation, getTableEditListeners, isEditable, isEditSupported, isStructureModificationSupported, performConnect, performDisconnect, performReplace, removeTableEditListener, replace, setEditable, setEditSupported, setStructureModificationSupported, validate, validateSpecaddSelectionListener, createDefaultSelectionModel, getSelectionModel, removeSelectionListener, selectableChanged, selectionChanged, setSelectionModeladdPaginationChangeListener, asNonPaginatedTable, evaluateColumns, firePaginationChanged, getCurrentPage, getDisplayedTableData, getPageCount, getPageTableData, getPageTableDataRange, getPaginationThreshold, getUnpaginatedTableData, getUnpaginatedTableDataCount, isOnlyEvaluateCurrentPage, isPaginated, isPaginationForced, isPaginationSupported, isProxyInvokation, removePaginationChangeListener, setCurrentPage, setOnlyEvaluateCurrentPage, setPageTableDataRange, setPaginated, setPaginationSupported, setPaginationThresholdaccept, addEntryProcessor, addTableClonedListener, addTableContentListener, addTableGroupedListener, addTableListener, addTableNavigateListener, addVisibleTableDataFilter, clearEntryProcessor, clearRows, clearRowsBeforeEvaluation, clearVisibleTableDataFilter, clone, createNavigationHandler, createNavigationHandler, createTableClient, createTableHeaders, ensureTable, ensureView, evaluate, evaluateColumns, 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, getTableDataWithId, getTableGroupedListeners, getTableListeners, getTableNavigateListeners, getView, getViewFactory, getVisibleColumnAt, getVisibleColumnByName, getVisibleColumnCount, getVisibleColumns, getVisibleTableData, getVisibleTableDataCount, getVisibleTableDataFilters, getVisibleTableDataFilters, group, hasCellAt, hasEvaluationForcedColumns, hasTableData, hasVisibleTableDataFilter, invalidate, invalidateTableData, isColumnsLoaded, isEvaluateReadOnly, isEvaluationRequired, isHeaderHTML, isNavigateSupported, isOnlyEvaluateVisibleColumns, isSubHeaderHTML, isTableChangeable, isViewChangeable, isVisible, isVisibleColumn, isVisibleColumnImpl, isVisualsChangeable, loadFromInquiry, loadFromJPO, navigate, navigate, onGroup, onTableEvaluated, onTableInvalidated, 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, getDisplayedTableData, getDisplayedTableDataCount, getEvaluationRequiredTableData, getEvaluationRequiredTableDataCount, getFilteredTableData, getFilteredTableDataCount, getHasParent, getHeader, getNavigationHandler, getNavigationHandler, getParent, getSelectedTableData, getSelectedTableDataCount, getSubHeader, getTableClonedListeners, getTableData, getTableData, getTableDataWithId, getTableGroupedListeners, getTableListeners, getTableNavigateListeners, getVisibleColumnAt, getVisibleColumnByName, getVisibleColumnCount, getVisibleColumns, getVisibleTableData, getVisibleTableDataCount, getVisibleTableDataFilters, getVisibleTableDataFilters, hasCellAt, hasTableData, hasVisibleTableDataFilter, invalidate, isHeaderHTML, isNavigateSupported, isOnlyEvaluateVisibleColumns, isSubHeaderHTML, isValid, isVisible, isVisibleColumn, navigate, navigate, reload, removeParent, removeTableClonedListener, removeTableContentListener, removeTableData, removeTableData, removeTableGroupedListener, removeTableListener, removeTableNavigateListener, removeVisibleTableDataFilter, removeVisibleTableDataFilters, setHeader, setHeader, setOnlyEvaluateVisibleColumns, setParent, setSubHeader, setSubHeader, validategetChoosableViews, getView, getViewFactory, isTableChangeable, isViewChangeable, isVisualsChangeable, setChoosableViews, setView, setView, setViewFactorygetMenuBar, setMenuBargetContextMenu, setContextMenugetEnv, getEnv, setEnvgetAttribute, getAttributeNames, removeAttribute, setAttributegetPageConfig, setPageConfigprotected void onClone(TableBean<TableData> c)
onClone in class AbstractSortableTableBean<TableData>public void clearTableData()
TableData instances.clearTableData in interface FlatTableBeanpublic void addTableData(java.util.List<java.util.Map<java.lang.Object,java.lang.Object>> mapList)
TableData instances specified by the mapList.addTableData in interface FlatTableBeanmapList - a java.util.List containing instances of
java.util.Map, where each map represents a
TableData instance.public void addTableData(TableData tableData)
TableData instancetableData - A TableData instancepublic void addTableData(java.lang.String[] objectId)
TableData instances specified by the object IDs.addTableData in interface FlatTableBeanobjectId - an array containing object IDs.public void addTableData(java.lang.String[] relationshipId,
java.lang.String[] objectId)
TableData instances specified by the relationship and object
IDs.addTableData in interface FlatTableBeanrelationshipId - an array containing relationship IDs. Note that
this array must have the same length as the objectId
parameter.objectId - an array containing object IDs. Note that this array must
have the same length as the relationshipId parameter.public TableData addTableData(java.lang.String relationshipId, java.lang.String objectId)
TableData instances specified by the relationship and object
ID.addTableData in interface FlatTableBeanrelationshipId - a relationship ID. This can be null.objectId - an object IDdata instance.public void setTableData(java.util.List<java.util.Map<java.lang.Object,java.lang.Object>> mapList)
TableData instances specified by the mapList,
discarding all previously added TableData instances.setTableData in interface FlatTableBeanmapList - a java.util.List containing instances of
java.util.Map, where each map represents a
TableData instance.public void setTableData(java.lang.String[] objectId)
TableData instances specified by the object IDs, discarding
all previously added TableData instances.setTableData in interface FlatTableBeanobjectId - an array containing object IDs.public void setTableData(java.lang.String[] relationshipId,
java.lang.String[] objectId)
TableData instances specified by the relationship and object
IDs, discarding all previously added TableData instances.setTableData in interface FlatTableBeanrelationshipId - an array containing relationship IDs. Note that
this array must have the same length as the objectId
parameterobjectId - an array containing object IDs. Note that this array must
have the same length as the relationshipId parameter.public java.util.Iterator<TableData> getTableData()
TableData instances currently in the table.getTableData in interface TableBean<TableData>getTableData in interface TableDataProvider<TableData>TableData instances currently in the table.public void removeTableData(TableData data)
TableData from the table.removeTableData in interface TableBean<TableData>data - the TableData that should be removed from the table.public TableData getTableDataAt(int index)
TableData instance at the specified index.getTableDataAt in interface TableBean<TableData>getTableDataAt in class AbstractTableBean<TableData>index - the index.TableData instance at the specified index.java.lang.IndexOutOfBoundsException - if the index is invalid.public int getTableDataCount()
TableData instances in the table.getTableDataCount in interface TableBean<TableData>getTableDataCount in class AbstractTableBean<TableData>TableData instances in the table.getTableData()public boolean isInquirySupported(com.technia.tvc.core.db.inquiry.Inquiry inquiry)
Inquiry
is supported or not. For an inquiry to be supported by instances of this
class, it must be able to evaluate into a
list.isInquirySupported in interface com.technia.tvc.core.db.inquiry.InquirySupportinquiry - the inquiry.public void loadFromInquiry(com.technia.tvc.core.db.inquiry.Inquiry inquiry,
Environment env,
boolean append)
throws TVCException
TableData instances from the inquiry.loadFromInquiry in interface com.technia.tvc.core.db.inquiry.InquirySupportinquiry - the inquiry.env - the environment.append - whether to append the new TableData instances or
not.TVCException - is unable to evaluate the inquiry.public void loadFromJPO(JPOName name, Environment env, boolean append) throws TVCException
TableData instances from the JPO.loadFromJPO in interface com.technia.tvc.core.db.jpo.JPOSupportname - the name of the JPO and the method to invoke.env - the environment.append - whether to append the new TableData instances or
not.TVCException - is unable to invoke the JPO.public void sort(Environment env) throws TVCException
TableData instances.sort in class AbstractSortableTableBean<TableData>env - the environment.TVCException - if unable to sort.protected abstract TableData createTableData(java.lang.String relationshipId, java.lang.String objectId)
TableData instance using the specified relationship and
object IDs.TableData instance.Copyright ? Technia AB. All Rights Reserved.