public abstract class AbstractTableBean<T extends TableData> extends BasicAttributeSupport implements TableBean<T>, TableBeanProxy, EntryProcessable, com.technia.tvc.core.table.EvaluatedTableBean<T>, GroupableTableBean<T>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractTableBean.DefaultNavigationHandler |
protected static class |
AbstractTableBean.TableClientImpl
Implementation of
EvaluatedTableClient that is used when
evaluating the table. |
protected class |
AbstractTableBean.TableDataIterator
|
protected static class |
AbstractTableBean.ViewListenerProxy
Listener class that delegates view listener notifications to the
registered
TableListener instances. |
TableDataProvider.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 TableDataFilter |
DEFAULT_VISIBLE_TABLE_DATA_FILTER
|
static TableDataFilter |
EVALUATION_REQUIRED_TABLE_DATA_FILTER
|
static TableDataFilter |
SELECTED_TABLE_DATA_FILTER
|
EMPTY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTableBean()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TableDataVisitor visitor)
Accept a visitor for all TableData instances.
|
void |
addEntryProcessor(EntryProcessor entryProcessor)
Adds an entry processor
|
void |
addTableClonedListener(TableClonedListener listener)
Adds a
TableClonedListener to the table. |
void |
addTableContentListener(TableContentListener listener)
Add a
TableContentListener. |
void |
addTableGroupedListener(TableGroupedListener listener)
Adds a
TableGroupedListener to the table. |
void |
addTableListener(TableListener listener)
Adds a
TableListener to the table. |
void |
addTableNavigateListener(TableNavigateListener listener)
Adds a
TableNavigateListener to the table. |
void |
addVisibleTableDataFilter(VisibleTableDataFilter filter)
Add a
VisibleTableDataFilter to the filter stack that validates
whether a TableData instance should be visible or not. |
void |
clearEntryProcessor()
Removes any
EntryProcessor that has been associated with this
TableBean instance. |
protected void |
clearRows(boolean all)
Clears the cells on all rows.
|
protected void |
clearRowsBeforeEvaluation()
This method is called when the evaluation starts, it is supposed to clear
evaluated rows in the table before the evaluation.
|
void |
clearVisibleTableDataFilter()
Removes all
VisibleTableDataFilter instances that filter which
TableData instances should be visible or not. |
java.lang.Object |
clone()
Create a deep copy of this object.
|
protected abstract com.technia.tvc.core.table.EvaluationChain |
createEvaluationChain() |
protected NavigationHandler |
createNavigationHandler(Environment env,
java.lang.String objectId)
Deprecated.
This method is deprecated as of 2014.3.0
|
protected abstract NavigationHandler |
createNavigationHandler(Environment env,
java.lang.String objectId,
java.lang.String relationshipId)
Subclasses must implement this method and return a proper navigation
handler that is used when navigating a certain object.
|
com.technia.tvc.core.table.EvaluatedTableClient |
createTableClient(com.technia.tvc.core.table.EvaluationParams params,
boolean isFirst) |
protected TableHeaders |
createTableHeaders() |
protected Table |
ensureTable()
Returns the current
Table. |
protected View |
ensureView()
Returns the current
view. |
void |
evaluate(Environment env) |
void |
evaluateColumns(Column[] columns,
boolean currentPage,
Environment env) |
void |
evaluateColumns(Column[] columns,
Environment env) |
protected void |
fireColumnsUpdatedEvent()
Fires a
columns updated
event. |
protected void |
fireDidNavigateEvent(TableBean<? extends TableData> table,
java.lang.String objectId)
Fires a
did
navigate event. |
protected void |
fireTableChangedEvent()
Fires a
table changed
event. |
protected void |
fireTableContentAdded(TableData data)
|
protected void |
fireTableContentCleared()
|
protected void |
fireTableContentRemoved(TableData data)
|
protected void |
fireTableEvaluatedEvent()
Fires a
table evaluated
event. |
protected void |
fireTableInvalidatedEvent()
Fires a
table
invalidated event. |
protected void |
fireTableSortedEvent()
Fires a
table sorted event. |
protected void |
fireViewChangedEvent()
Fires a
view changed event. |
protected void |
fireVisualsChangedEvent()
Fires a
visuals changed
event. |
protected void |
fireWasClonedEvent(TableBean<T> clone)
Fires a
was
cloned event. |
protected void |
fireWasGroupedEvent(GroupStructureBean grouped) |
TableCalculations |
getCalculations()
Returns the calculations on this table.
|
Cell |
getCellAt(int row,
int column)
Returns the
cell at the specified row and column. |
java.lang.String[] |
getChoosableViews()
Returns the choosable views.
|
Column |
getColumnAt(int column)
Returns the
column at the specified index. |
Column |
getColumnByName(java.lang.String name) |
int |
getColumnCount()
Returns the number of columns currently in the table.
|
int |
getColumnIndex(Column column)
Returns the index of the specified
column. |
java.util.List<Column> |
getColumnList() |
java.util.Iterator<Column> |
getColumns()
Returns the table's columns that were retrieved from the evaluation.
|
Menu |
getContextMenu()
Returns the context menu (if such exists)
|
java.util.Iterator<T> |
getDisplayedTableData()
Returns all
TableData instances that should be displayed. |
int |
getDisplayedTableDataCount()
Returns the count of all displayed
TableData instances. |
EntryProcessor |
getEntryProcessor()
Deprecated.
Use
getEntryProcessors() instead |
EntryProcessor[] |
getEntryProcessors() |
Environment |
getEnv()
Returns the environment for the table.
|
java.lang.Object |
getEnv(java.lang.Object key)
Returns the environment variable specified by the key.
|
com.technia.tvc.core.table.EvaluationChain |
getEvaluationChain() |
java.util.Iterator<T> |
getEvaluationRequiredTableData()
Returns all
TableData instances whose
isEvaluationRequired() method
returns true. |
int |
getEvaluationRequiredTableDataCount()
Returns the count of all
TableData instances that needs to be
evaluated. |
java.util.Iterator<T> |
getFilteredTableData(TableDataFilter filter)
Returns all
TableData instances that is accepted by the
filter. |
int |
getFilteredTableDataCount(TableDataFilter filter)
Returns the count of all
TableData instances accepted by the
filter. |
boolean |
getHasParent()
Tests if this
table bean instance has a parent
table bean set. |
java.lang.String |
getHeader()
Returns the header for this table.
|
protected java.util.Locale |
getLocaleForHeaders() |
MenuBar |
getMenuBar() |
int |
getMode() |
NavigationHandler |
getNavigationHandler(Environment env,
java.lang.String objectId)
This method has been deprecated
|
NavigationHandler |
getNavigationHandler(Environment env,
java.lang.String objectId,
java.lang.String relationshipId) |
protected java.lang.String |
getObjectIdForHeaders() |
PageConfig |
getPageConfig() |
TableBean<? extends TableData> |
getParent()
Returns the parent
table bean instance from this
instance. |
java.util.Iterator<T> |
getSelectedTableData()
Returns all
TableData instances whose
isSelected() method returns true. |
int |
getSelectedTableDataCount()
|
java.lang.String |
getSubHeader()
Returns the subheader for this table.
|
java.util.Iterator<TableClonedListener> |
getTableClonedListeners()
Returns the
TableClonedListeners. |
protected TableContentListener[] |
getTableContentListeners()
Returns all
TableContentListeners. |
java.util.Iterator<T> |
getTableData(java.lang.String objectId)
|
java.util.Iterator<T> |
getTableData(java.lang.String relationshipId,
java.lang.String objectId)
|
TableData |
getTableDataAt(int index)
Returns the
TableData instance at the specified index. |
int |
getTableDataCount()
Returns the count of all
TableData instances in the table. |
java.util.Iterator<T> |
getTableDataIteratorWithIds(java.lang.String[] objectIds)
Returns all
TableData instances with a matching
object ID's. |
TableData |
getTableDataWithId(long id)
|
java.util.Iterator<TableGroupedListener> |
getTableGroupedListeners()
Returns the
TableGroupedListeners. |
java.util.Iterator<TableListener> |
getTableListeners()
Returns all
TableListeners. |
java.util.Iterator<TableNavigateListener> |
getTableNavigateListeners()
Returns all
TableNavigateListeners. |
View |
getView()
Returns the view.
|
ViewFactory |
getViewFactory()
Returns the
ViewFactory that this table uses. |
Column |
getVisibleColumnAt(int index) |
Column |
getVisibleColumnByName(java.lang.String name) |
int |
getVisibleColumnCount() |
java.util.Iterator<Column> |
getVisibleColumns()
Returns the table's columns that were retrieved from the evaluation.
|
java.util.Iterator<T> |
getVisibleTableData()
|
int |
getVisibleTableDataCount()
|
java.util.Iterator<VisibleTableDataFilter> |
getVisibleTableDataFilters() |
java.util.Iterator<VisibleTableDataFilter> |
getVisibleTableDataFilters(java.lang.Class<? extends VisibleTableDataFilter> type) |
GroupStructureBean |
group(GroupDefs groups,
boolean onlyShowLeafs)
Create a
GroupStructureBean out of this table. |
boolean |
hasCellAt(int row,
int column)
Returns true if the table has a cell at the specified row and
column.
|
boolean |
hasEvaluationForcedColumns() |
boolean |
hasTableData()
Returns true if the table contains any
TableData
instances. |
boolean |
hasVisibleTableDataFilter(VisibleTableDataFilter filter)
Returns whether the
VisibleTableDataFilter is currently being
used to filter which TableData instances should be visible or
not. |
void |
invalidate()
Invalidates the table, thereby making all
TableData instances
requiring an evaluation. |
protected void |
invalidateTableData() |
boolean |
isColumnsLoaded() |
boolean |
isEvaluateReadOnly() |
boolean |
isEvaluationForcedFor(Column column) |
boolean |
isEvaluationRequired() |
boolean |
isHeaderHTML()
Returns true if the header is HTML.
|
boolean |
isNavigateSupported() |
boolean |
isOnlyEvaluateVisibleColumns() |
boolean |
isSubHeaderHTML()
Returns true if the subheader is HTML.
|
boolean |
isTableChangeable()
Returns a boolean value indicating whether the
Table should be
changable. |
boolean |
isValid()
Returns a boolean value indicating whether the table is valid or not.
|
boolean |
isViewChangeable()
Returns a boolean value indicating whether the
view should
be changable. |
boolean |
isVisible(TableData data)
|
boolean |
isVisibleColumn(Column c)
Checks whether a column is visible.
|
protected boolean |
isVisibleColumnImpl(Column c,
int mode) |
boolean |
isVisualsChangeable()
Returns a boolean value indicating whether the visuals should be
changable.
|
void |
loadFromInquiry(com.technia.tvc.core.db.inquiry.Inquiry inquiry,
Environment env) |
void |
loadFromJPO(JPOName name,
Environment env) |
TableBean<? extends TableData> |
navigate(java.lang.String objectId)
Returns a
TableBean that has the specified objectId as
root object. |
TableBean<? extends TableData> |
navigate(TableData data)
Returns a
TableBean that has the specified TableData as
root node. |
protected void |
onClone(TableBean<T> clone)
This method is invoked when cloning the
TableBean instance prior
to firing the was
cloned event. |
protected void |
onColumnsUpdated()
This method is invoked before the
columns updated event is
fired on the registered TableListener instances. |
protected void |
onGroup(GroupStructureBean grouped)
This method is invoked when grouping the
TableBean instance prior
to firing the was grouped event. |
protected void |
onNavigate(TableBean<? extends TableData> table,
java.lang.String objectId)
This method is invoked when navigating from the table.
|
protected void |
onTableChanged()
This method is invoked before the
table changed event is
fired on the registered TableListener instances. |
protected void |
onTableEvaluated()
This method is invoked before the
table evaluated event is
fired on the registered TableListener instances. |
protected void |
onTableInvalidated()
This method is invoked before the
table evaluated event
is fired on the registered TableListener instances. |
protected void |
onTableSorted()
Called whenever a
table
sorted event was raised. |
protected void |
onViewChanged()
This method is invoked before the
view changed event is fired
on the registered TableListener instances. |
protected void |
onVisualsChanged()
This method is invoked before the
visuals changed event is
fired on the registered TableListener instances. |
protected java.lang.String |
paramString()
Returns a parameterized java.lang.String describing the state of
the table.
|
void |
reload()
Call this method to make sure that all rows are reloaded the next time
they are validated/displayed.
|
void |
removeEntryProcessor(EntryProcessor entryProcessor)
Removes an
EntryProcessor from this TableBean |
TableBean<? extends TableData> |
removeParent()
Removes the current parent
table bean instance and
returns it. |
void |
removeTableClonedListener(TableClonedListener listener)
Removes the
TableClonedListener from the table. |
void |
removeTableContentListener(TableContentListener listener)
Remove a
TableContentListener. |
void |
removeTableData(java.lang.String objectId)
Removes all
TableData instances with the specified object ID. |
void |
removeTableData(java.lang.String relationshipId,
java.lang.String objectId)
Removes all
TableData instances with the specified object and
relationship ID. |
void |
removeTableGroupedListener(TableGroupedListener listener)
Removes the
TableGroupedListener from the table. |
void |
removeTableListener(TableListener listener)
Removes the
TableListener from the table. |
void |
removeTableNavigateListener(TableNavigateListener listener)
Removes the
TableNavigateListener from the table. |
void |
removeVisibleTableDataFilter(VisibleTableDataFilter filter)
Remove a
VisibleTableDataFilter to the filter stack that
validates whether a TableData instance should be visible or not. |
void |
removeVisibleTableDataFilters(java.lang.Class<? extends VisibleTableDataFilter> type)
Removes all filters withe the specified type.
|
void |
setChoosableViews(java.lang.String[] choosableViews)
Sets the choosable views.
|
void |
setContextMenu(Menu contextMenu)
Sets the context menu
|
void |
setEntryProcessor(EntryProcessor entryProcessor)
Sets the entry processor for this table
|
void |
setEntryProcessors(EntryProcessor[] entryProcessors)
Sets the entry processers to be used.
|
void |
setEnv(Environment env)
Sets the environment for the table.
|
void |
setEvaluateReadOnly(boolean evaluateReadOnly) |
void |
setHeader(java.lang.String header)
Sets the header for this table.
|
void |
setHeader(java.lang.String header,
boolean isHTML)
Sets the header for this table.
|
void |
setMenuBar(MenuBar newMenuBar)
Sets the objects MenuBar.
|
void |
setNavigateSupported(boolean navigateSupported) |
void |
setOnlyEvaluateVisibleColumns(boolean onlyEvaluateVisibleColumns) |
void |
setPageConfig(PageConfig newPageConfig) |
TableBean<? extends TableData> |
setParent(TableBean<? extends TableData> parent)
Sets the parent
table bean instance. |
void |
setSubHeader(java.lang.String subHeader)
Sets the subheader for this table.
|
void |
setSubHeader(java.lang.String subHeader,
boolean isHTML)
Sets the subheader for this table.
|
protected void |
setTableChangeable(boolean tableChangeable)
Sets whether the
Table be changable. |
void |
setView(java.lang.String viewName)
Sets the view.
|
void |
setView(View view)
Sets the view.
|
protected void |
setViewChangeable(boolean viewChangeable)
Sets whether the
view be changable. |
void |
setViewFactory(ViewFactory viewFactory)
Sets the
ViewFactory that should be used to load Views. |
protected void |
setVisualsChangeable(boolean visualsChangeable)
Sets whether the visuals should be changable.
|
java.lang.String |
toString()
Returns a java.lang.String containing debug information for the
table.
|
void |
validate(Environment env)
Validates the table.
|
getAttribute, getAttributeMap, getAttributeNames, removeAttribute, setAttributeequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitselectableChanged, selectionChangedgetTableData, removeTableDataisInquirySupported, loadFromInquirygetAttribute, getAttributeNames, removeAttribute, setAttributepublic static final TableDataFilter SELECTED_TABLE_DATA_FILTER
public static final TableDataFilter DEFAULT_VISIBLE_TABLE_DATA_FILTER
public static final TableDataFilter EVALUATION_REQUIRED_TABLE_DATA_FILTER
public ViewFactory getViewFactory()
ViewSupportViewFactory that this table uses.getViewFactory in interface ViewSupportViewFactory that this table uses.ViewSupport.setViewFactory(ViewFactory)public void setView(java.lang.String viewName)
throws TVCException
ViewSupportView object will be loaded using the selected
ViewFactory.setView in interface ViewSupportviewName - The name of the view.TVCException - If unable to load the View with the selected
ViewFactory.public void setViewFactory(ViewFactory viewFactory)
ViewSupportViewFactory that should be used to load Views.setViewFactory in interface ViewSupportviewFactory - The new ViewFactory.ViewSupport.getViewFactory()public java.lang.String getHeader()
TableBeanpublic java.lang.String getSubHeader()
TableBeangetSubHeader in interface TableBean<T extends TableData>public void setHeader(java.lang.String header)
TableBeanpublic void setSubHeader(java.lang.String subHeader)
TableBeansetSubHeader in interface TableBean<T extends TableData>subHeader - The new subheader.public boolean isHeaderHTML()
TableBeanisHeaderHTML in interface TableBean<T extends TableData>public boolean isSubHeaderHTML()
TableBeanisSubHeaderHTML in interface TableBean<T extends TableData>public void setHeader(java.lang.String header,
boolean isHTML)
TableBeanpublic void setSubHeader(java.lang.String subHeader,
boolean isHTML)
TableBeansetSubHeader in interface TableBean<T extends TableData>subHeader - The new subheader.isHTML - Whether the header is HTML.public boolean isEvaluateReadOnly()
public void setEvaluateReadOnly(boolean evaluateReadOnly)
public boolean isOnlyEvaluateVisibleColumns()
isOnlyEvaluateVisibleColumns in interface TableBean<T extends TableData>public void setOnlyEvaluateVisibleColumns(boolean onlyEvaluateVisibleColumns)
setOnlyEvaluateVisibleColumns in interface TableBean<T extends TableData>onlyEvaluateVisibleColumns - Whether the table should only validate
visible columns.public boolean isEvaluationForcedFor(Column column)
public boolean hasEvaluationForcedColumns()
public final void setView(View view)
setView in interface ViewSupportview - the new view.public final View getView()
getView in interface ViewSupportpublic void setChoosableViews(java.lang.String[] choosableViews)
setChoosableViews in interface ViewSupportchoosableViews - an array containing the names of the choosable
views.public java.lang.String[] getChoosableViews()
getChoosableViews in interface ViewSupportpublic boolean isValid()
public void invalidate()
TableData instances
requiring an evaluation.invalidate in interface TableBean<T extends TableData>protected void invalidateTableData()
public void reload()
throws TVCException
TableBeanreload in interface TableBean<T extends TableData>TVCException - If some error occurs.public void validate(Environment env) throws TVCException
TableData instances that requires an evaluation.validate in interface TableBean<T extends TableData>env - the environment to use.TVCException - if unable to validate the table.protected java.lang.String getObjectIdForHeaders()
protected java.util.Locale getLocaleForHeaders()
protected void setVisualsChangeable(boolean visualsChangeable)
visualsChangeable - whether the table implementation should support
a visuals change.public boolean isVisualsChangeable()
isVisualsChangeable in interface ViewSupportprotected void setTableChangeable(boolean tableChangeable)
Table be changable. Consider this property to be
a hint to the interface (i.e., whether the table implementation supports
a Table change).tableChangeable - whether the table implementation should support a
Table change.public boolean isTableChangeable()
Table should be
changable. Consider this property to be a hint to the interface (i.e.,
whether the table implementation supports a Table change).isTableChangeable in interface ViewSupportTable should be
changable.protected void setViewChangeable(boolean viewChangeable)
view be changable. Consider this property
to be a hint to the interface (i.e., whether the table implementation
supports a view change).viewChangeable - whether the table implementation should support a
view change.public boolean isViewChangeable()
view should
be changable. Consider this property to be a hint to the interface (i.e.,
whether the table implementation supports a view change).isViewChangeable in interface ViewSupportview should
be changable.public MenuBar getMenuBar()
getMenuBar in interface MenuBarSupportpublic void setMenuBar(MenuBar newMenuBar)
MenuBarSupportsetMenuBar in interface MenuBarSupportnewMenuBar - The new MenuBar.public Menu getContextMenu()
getContextMenu in interface ContextMenuSupportcontext menupublic void setContextMenu(Menu contextMenu)
setContextMenu in interface ContextMenuSupportcontextMenu - public java.util.Iterator<Column> getColumns()
getColumns in interface TableBean<T extends TableData>public java.util.List<Column> getColumnList()
getColumnList in interface TableBean<T extends TableData>columns as a list.public java.util.Iterator<Column> getVisibleColumns()
getVisibleColumns in interface TableBean<T extends TableData>public boolean isVisibleColumn(Column c)
TableBeanisVisibleColumn in interface TableBean<T extends TableData>c - A column whose visibility we want to check.protected boolean isVisibleColumnImpl(Column c, int mode)
c - A column whose visibility we want to check.mode - The mode of the table that we want to check the visibility
in.public int getMode()
ModeUtils.getMode(TableBean)public Column getVisibleColumnAt(int index)
getVisibleColumnAt in interface TableBean<T extends TableData>index - The index of the visible column.public int getVisibleColumnCount()
getVisibleColumnCount in interface TableBean<T extends TableData>public Column getVisibleColumnByName(java.lang.String name)
getVisibleColumnByName in interface TableBean<T extends TableData>name - The name of the column, i.e., not label.public Column getColumnByName(java.lang.String name)
getColumnByName in interface TableBean<T extends TableData>name - The name of the column, i.e., not label.public Column getColumnAt(int column)
TableBeancolumn at the specified index.getColumnAt in interface TableBean<T extends TableData>column - the column index.column at the specified index.public int getColumnCount()
getColumnCount in interface TableBean<T extends TableData>public int getColumnIndex(Column column)
column.getColumnIndex in interface TableBean<T extends TableData>column - the column.public boolean isColumnsLoaded()
public void addVisibleTableDataFilter(VisibleTableDataFilter filter)
TableBeanVisibleTableDataFilter to the filter stack that validates
whether a TableData instance should be visible or not.addVisibleTableDataFilter in interface TableBean<T extends TableData>filter - A VisibleTableDataFilter instance.public void removeVisibleTableDataFilter(VisibleTableDataFilter filter)
TableBeanVisibleTableDataFilter to the filter stack that
validates whether a TableData instance should be visible or not.removeVisibleTableDataFilter in interface TableBean<T extends TableData>filter - A VisibleTableDataFilter instance.public void removeVisibleTableDataFilters(java.lang.Class<? extends VisibleTableDataFilter> type)
TableBeanremoveVisibleTableDataFilters in interface TableBean<T extends TableData>type - The type.public boolean hasVisibleTableDataFilter(VisibleTableDataFilter filter)
TableBeanVisibleTableDataFilter is currently being
used to filter which TableData instances should be visible or
not.hasVisibleTableDataFilter in interface TableBean<T extends TableData>filter - A VisibleTableDataFilter instance.public void clearVisibleTableDataFilter()
TableBeanVisibleTableDataFilter instances that filter which
TableData instances should be visible or not.clearVisibleTableDataFilter in interface TableBean<T extends TableData>public java.util.Iterator<VisibleTableDataFilter> getVisibleTableDataFilters()
getVisibleTableDataFilters in interface TableBean<T extends TableData>VisibleTableDataFilter instances that filter
which TableData instances should be visible or not.public java.util.Iterator<VisibleTableDataFilter> getVisibleTableDataFilters(java.lang.Class<? extends VisibleTableDataFilter> type)
getVisibleTableDataFilters in interface TableBean<T extends TableData>type - The type of the VisibleTableDataFilter instances that
should be returned. I.e., filters that aren't assignable to the
specified type will not be returned.VisibleTableDataFilter instances that filter
which TableData instances should be visible or not.public java.util.Iterator<T> getVisibleTableData()
TableBeanpublic java.util.Iterator<T> getSelectedTableData()
TableBeanTableData instances whose
isSelected() method returns true.public java.util.Iterator<T> getEvaluationRequiredTableData()
TableBeanTableData instances whose
isEvaluationRequired() method
returns true.public java.util.Iterator<T> getDisplayedTableData()
TableBeanTableData instances that should be displayed. It is
up to to the implementing classes to decide which data that should be
displayed.getDisplayedTableData in interface TableBean<T extends TableData>TableData instances that should be displayed.public java.util.Iterator<T> getFilteredTableData(TableDataFilter filter)
TableBeanTableData instances that is accepted by the
filter.getFilteredTableData in interface TableBean<T extends TableData>filter - a TableDataFilter that can be used to control which
TableData instances are returned.TableData instances that is accepted by the
filter.public java.util.Iterator<T> getTableData(java.lang.String objectId)
TableBeanpublic java.util.Iterator<T> getTableData(java.lang.String relationshipId, java.lang.String objectId)
TableBeangetTableData in interface TableBean<T extends TableData>relationshipId - the relationship ID. If this parameter is null then
all TableData instances with a matching object ID are
returned.objectId - the object ID. If this parameter is null then all
TableData instances with a matching relationship ID are
returned.TableData instances with a matching
relationship ID and
object ID.public void removeTableData(java.lang.String objectId)
TableBeanTableData instances with the specified object ID.removeTableData in interface TableBean<T extends TableData>objectId - The object ID, if this parameter is null the
ALL TableData instances are removed.public void removeTableData(java.lang.String relationshipId,
java.lang.String objectId)
TableBeanTableData instances with the specified object and
relationship ID.removeTableData in interface TableBean<T extends TableData>relationshipId - The relationship ID. If this parameter is null the
TableData instances with a matching object ID will be
removed.objectId - The object ID. If this parameter is null the
TableData instances with a matching relationship ID will
be removed.public TableData getTableDataAt(int index)
TableBeanTableData instance at the specified index.getTableDataAt in interface TableBean<T extends TableData>index - the index.TableData instance at the specified index.public TableData getTableDataWithId(long id)
TableBeanpublic java.util.Iterator<T> getTableDataIteratorWithIds(java.lang.String[] objectIds)
TableData instances with a matching
object ID's.getTableDataIteratorWithIds in interface TableBean<T extends TableData>objectIds, - an array of object ID's.public int getTableDataCount()
TableBeanTableData instances in the table.getTableDataCount in interface TableBean<T extends TableData>TableData instances in the table.TableBean.getTableData()public int getVisibleTableDataCount()
TableBeangetVisibleTableDataCount in interface TableBean<T extends TableData>visible
TableData instances in the table.TableBean.getVisibleTableData()public int getSelectedTableDataCount()
TableBeangetSelectedTableDataCount in interface TableBean<T extends TableData>selected
TableData instances in the table.TableBean.getSelectedTableData()public int getEvaluationRequiredTableDataCount()
TableBeanTableData instances that needs to be
evaluated.getEvaluationRequiredTableDataCount in interface TableBean<T extends TableData>TableData instances that needs to be
evaluated.TableBean.getEvaluationRequiredTableData()public int getDisplayedTableDataCount()
TableBeanTableData instances.getDisplayedTableDataCount in interface TableBean<T extends TableData>TableData instances.TableBean.getDisplayedTableData()public int getFilteredTableDataCount(TableDataFilter filter)
TableBeanTableData instances accepted by the
filter.getFilteredTableDataCount in interface TableBean<T extends TableData>filter - the TableDataFilter that decides whether a
TableData instance should be accepted or not.TableBean.getFilteredTableDataCount(TableDataFilter)public boolean hasTableData()
TableBeanTableData
instances.hasTableData in interface TableBean<T extends TableData>TableData
instances.public Cell getCellAt(int row, int column)
TableBeancell at the specified row and column.public boolean hasCellAt(int row,
int column)
TableBeanpublic void loadFromInquiry(com.technia.tvc.core.db.inquiry.Inquiry inquiry,
Environment env)
throws TVCException
loadFromInquiry in interface com.technia.tvc.core.db.inquiry.InquirySupportTVCExceptionpublic void loadFromJPO(JPOName name, Environment env) throws TVCException
loadFromJPO in interface com.technia.tvc.core.db.jpo.JPOSupportTVCExceptionpublic void addTableListener(TableListener listener)
TableBeanTableListener to the table.addTableListener in interface TableBean<T extends TableData>listener - the TableListener to add.public void removeTableListener(TableListener listener)
TableBeanTableListener from the table.removeTableListener in interface TableBean<T extends TableData>listener - the TableListener to remove.public java.util.Iterator<TableListener> getTableListeners()
TableBeanTableListeners.getTableListeners in interface TableBean<T extends TableData>TableListeners.protected void fireTableSortedEvent()
table sorted event.protected void onTableSorted()
table
sorted event was raised. Always invoke super if this method is
overridden.protected void fireViewChangedEvent()
view changed event.protected void onViewChanged()
view changed event is fired
on the registered TableListener instances.
Override this method in subclasses to perform certain logic when this event occurs but remember to always include a call to the same method in the superclass or else you might experience confusing errors.
protected void onTableInvalidated()
table evaluated event
is fired on the registered TableListener instances.
Override this method in subclasses to perform certain logic when this event occurs but remember to always include a call to the same method in the superclass or else you might experience confusing errors.
protected void fireTableInvalidatedEvent()
table
invalidated event.protected void fireTableEvaluatedEvent()
table evaluated
event.protected void onTableEvaluated()
table evaluated event is
fired on the registered TableListener instances.
Override this method in subclasses to perform certain logic when this event occurs but remember to always include a call to the same method in the superclass or else you might experience confusing errors.
protected void fireColumnsUpdatedEvent()
columns updated
event.protected void onColumnsUpdated()
columns updated event is
fired on the registered TableListener instances.
Override this method in subclasses to perform certain logic when this event occurs but remember to always include a call to the same method in the superclass or else you might experience confusing errors.
protected void fireTableChangedEvent()
table changed
event.protected void onTableChanged()
table changed event is
fired on the registered TableListener instances.
Override this method in subclasses to perform certain logic when this event occurs but remember to always include a call to the same method in the superclass or else you might experience confusing errors.
protected void fireVisualsChangedEvent()
visuals changed
event.protected void onVisualsChanged()
visuals changed event is
fired on the registered TableListener instances.
Override this method in subclasses to perform certain logic when this event occurs but remember to always include a call to the same method in the superclass or else you might experience confusing errors.
public void addTableClonedListener(TableClonedListener listener)
TableClonedListener to the table.addTableClonedListener in interface TableBean<T extends TableData>listener - the TableClonedListener to add.public void removeTableClonedListener(TableClonedListener listener)
TableClonedListener from the table.removeTableClonedListener in interface TableBean<T extends TableData>listener - the TableClonedListener to remove.public java.util.Iterator<TableClonedListener> getTableClonedListeners()
TableBeanTableClonedListeners.getTableClonedListeners in interface TableBean<T extends TableData>TableClonedListeners.protected void fireWasClonedEvent(TableBean<T> clone)
was
cloned event.protected void onClone(TableBean<T> clone)
TableBean instance prior
to firing the was
cloned event. Override this method to perform additional logic on the
cloned TableBean.public void addTableNavigateListener(TableNavigateListener listener)
TableNavigateListener to the table.addTableNavigateListener in interface TableBean<T extends TableData>listener - the TableNavigateListener to add.public void removeTableNavigateListener(TableNavigateListener listener)
TableNavigateListener from the table.removeTableNavigateListener in interface TableBean<T extends TableData>listener - the TableNavigateListener to remove.public java.util.Iterator<TableNavigateListener> getTableNavigateListeners()
TableBeanTableNavigateListeners.getTableNavigateListeners in interface TableBean<T extends TableData>TableNavigateListeners.protected void fireDidNavigateEvent(TableBean<? extends TableData> table, java.lang.String objectId) throws TVCException
did
navigate event.TVCExceptionprotected void onNavigate(TableBean<? extends TableData> table, java.lang.String objectId) throws TVCException
StructureBean.TVCExceptionpublic void addTableContentListener(TableContentListener listener)
TableBeanTableContentListener.addTableContentListener in interface TableBean<T extends TableData>listener - The listener.public void removeTableContentListener(TableContentListener listener)
TableBeanTableContentListener.removeTableContentListener in interface TableBean<T extends TableData>listener - The listener.protected TableContentListener[] getTableContentListeners()
TableContentListeners.protected void fireTableContentAdded(TableData data)
data - The data that was added.protected void fireTableContentRemoved(TableData data)
data - The data that was removed.protected void fireTableContentCleared()
public void setEnv(Environment env)
setEnv in interface EnvironmentSupportenv - the environment.public Environment getEnv()
getEnv in interface EnvironmentSupportpublic java.lang.Object getEnv(java.lang.Object key)
getEnv in interface EnvironmentSupportkey - the key.protected TableHeaders createTableHeaders()
public final java.lang.Object clone()
public boolean isNavigateSupported()
isNavigateSupported in interface TableBean<T extends TableData>navigate is
supported by this TableBean.public void setNavigateSupported(boolean navigateSupported)
navigateSupported - Whether navigate should be supported by this
instance.public final NavigationHandler getNavigationHandler(Environment env, java.lang.String objectId) throws TVCException
TableBeangetNavigationHandler in interface TableBean<T extends TableData>env - The environment variables as when the navigation handler were
requested. The implementation might use the variables from the env
to define certain behavior OR it might just ignore it.objectId - The business object idNavigationHandlerTVCExceptionTableBean.getNavigationHandler(Environment, String, String)public final NavigationHandler getNavigationHandler(Environment env, java.lang.String objectId, java.lang.String relationshipId) throws TVCException
getNavigationHandler in interface TableBean<T extends TableData>env - The environment variables as when the navigation handler were
requested. The implementation might use the variables from the env
to define certain behavior OR it might just ignore it.objectId - The business object idrelationshipId - The relationship id (optional)navigation handlerTVCException - If unable to create a new instance.@Deprecated protected NavigationHandler createNavigationHandler(Environment env, java.lang.String objectId) throws TVCException
NavigationHandler from this
method, that will be used. Otherwise, the NavigationHandler as
returned from the method
createNavigationHandler(Environment, String, String) will be
used instead.env - The current environmentobjectId - The id of the object to navigateNavigationHandler used to navigate the specified object
with.TVCExceptioncreateNavigationHandler(Environment, String, String)protected abstract NavigationHandler createNavigationHandler(Environment env, java.lang.String objectId, java.lang.String relationshipId) throws TVCException
env - The current environmentobjectId - The id of the object to navigaterelationshipId - The relationship idNavigationHandler used to navigate the specified object
with.TVCExceptionpublic final TableBean<? extends TableData> navigate(TableData data) throws TVCException
TableBeanTableBean that has the specified TableData as
root node.public final TableBean<? extends TableData> navigate(java.lang.String objectId) throws TVCException
TableBeanTableBean that has the specified objectId as
root object.navigate in interface TableBean<T extends TableData>objectId - The root business object.TVCException - If unable to create a new instance.public void setEntryProcessor(EntryProcessor entryProcessor)
setEntryProcessor in interface EntryProcessableentryProcessor - public void setEntryProcessors(EntryProcessor[] entryProcessors)
EntryProcessablesetEntryProcessors in interface EntryProcessableentryProcessors - The new set of entry processors.@Deprecated public EntryProcessor getEntryProcessor()
getEntryProcessors() insteadgetEntryProcessor in interface EntryProcessablepublic EntryProcessor[] getEntryProcessors()
getEntryProcessors in interface EntryProcessableentry processors associated
with this TableBeanpublic void removeEntryProcessor(EntryProcessor entryProcessor)
EntryProcessor from this TableBeanremoveEntryProcessor in interface EntryProcessableentryProcessor - The EntryProcessor to be removed.public void addEntryProcessor(EntryProcessor entryProcessor)
addEntryProcessor in interface EntryProcessableentryProcessor - The EntryProcessor to addpublic void clearEntryProcessor()
EntryProcessor that has been associated with this
TableBean instance.clearEntryProcessor in interface EntryProcessableprotected java.lang.String paramString()
public java.lang.String toString()
toString in class java.lang.Objectprotected Table ensureTable() throws TVCException
Table. If no such can be retrieved this
method will throw an exception.TVCException - if no Table could be retrieved from the
view.protected View ensureView() throws TVCException
view. If no such can be retrieved this
method will throw an exception.TVCException - if no view could be retrieved.public PageConfig getPageConfig()
getPageConfig in interface PageConfigSupportpublic void setPageConfig(PageConfig newPageConfig)
setPageConfig in interface PageConfigSupportnewPageConfig - The new page configuration.protected void clearRowsBeforeEvaluation()
protected void clearRows(boolean all)
protected abstract com.technia.tvc.core.table.EvaluationChain createEvaluationChain()
public final com.technia.tvc.core.table.EvaluationChain getEvaluationChain()
public void evaluateColumns(Column[] columns, boolean currentPage, Environment env) throws TVCException
evaluateColumns in interface com.technia.tvc.core.table.EvaluatedTableBean<T extends TableData>TVCExceptionpublic void evaluateColumns(Column[] columns, Environment env) throws TVCException
evaluateColumns in interface com.technia.tvc.core.table.EvaluatedTableBean<T extends TableData>TVCExceptionpublic com.technia.tvc.core.table.EvaluatedTableClient createTableClient(com.technia.tvc.core.table.EvaluationParams params,
boolean isFirst)
public void evaluate(Environment env) throws TVCException
evaluate in interface com.technia.tvc.core.table.EvaluatedTableBean<T extends TableData>TVCExceptionpublic boolean isEvaluationRequired()
public TableCalculations getCalculations()
TableBeangetCalculations in interface TableBean<T extends TableData>public void accept(TableDataVisitor visitor)
TableBeanpublic GroupStructureBean group(GroupDefs groups, boolean onlyShowLeafs) throws TVCException
GroupableTableBeanGroupStructureBean out of this table.group in interface GroupableTableBean<T extends TableData>groups - The group definitions.onlyShowLeafs - If we only should show leafs.GroupStructureBean.TVCException - If unable to group.public void addTableGroupedListener(TableGroupedListener listener)
TableGroupedListener to the table.addTableGroupedListener in interface TableBean<T extends TableData>listener - the TableGroupedListener to add.public void removeTableGroupedListener(TableGroupedListener listener)
TableGroupedListener from the table.removeTableGroupedListener in interface TableBean<T extends TableData>listener - the TableGroupedListener to remove.public java.util.Iterator<TableGroupedListener> getTableGroupedListeners()
TableBeanTableGroupedListeners.getTableGroupedListeners in interface TableBean<T extends TableData>TableGroupedListeners.protected void fireWasGroupedEvent(GroupStructureBean grouped)
protected void onGroup(GroupStructureBean grouped)
TableBean instance prior
to firing the was grouped event. Override this method to perform additional logic on
the cloned TableBean.public TableBean<? extends TableData> getParent()
TableBeantable bean instance from this
instance. If there is no parent table bean set, this
method returns null.getParent in interface TableBean<T extends TableData>table bean, if set.public TableBean<? extends TableData> setParent(TableBean<? extends TableData> parent)
TableBeantable bean instance. Providing a null
value is the same as calling TableBean.removeParent().setParent in interface TableBean<T extends TableData>parent - The parent table bean or null.table bean if set.public TableBean<? extends TableData> removeParent()
TableBeantable bean instance and
returns it.
This is the same as doing:
TableBean<?> parent = tableBean.getParent(); tableBean.setParent(null);
removeParent in interface TableBean<T extends TableData>table bean, if set.public boolean getHasParent()
TableBeantable bean instance has a parent
table bean set.getHasParent in interface TableBean<T extends TableData>TableBean.getParent() returns a non-null value.Copyright ? Technia AB. All Rights Reserved.