public abstract class AbstractEditableTableBean<T extends TableData> extends AbstractSelectionTableBean<T> implements EditableTableBean<T>, StructureModifiableTableBean<T>
EditableTableBean interface.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractEditableTableBean.CellUpdaterTableClient
This
TableClient is used when performing updates to one or more
rows, after a cell on the row has been modified. |
static class |
AbstractEditableTableBean.CommitResultImpl |
static class |
AbstractEditableTableBean.ConnectResultImpl |
static class |
AbstractEditableTableBean.DeleteResultImpl |
static class |
AbstractEditableTableBean.DisconnectResultImpl |
static class |
AbstractEditableTableBean.ObjectResultImpl |
static class |
AbstractEditableTableBean.RemoveResultImpl |
static class |
AbstractEditableTableBean.ReplaceResultImpl |
static class |
AbstractEditableTableBean.UpdateResultImpl |
AbstractPaginatedTableBean.CurrentPageEvaluationParams, AbstractPaginatedTableBean.TablePageAbstractTableBean.DefaultNavigationHandler, AbstractTableBean.TableClientImpl, AbstractTableBean.TableDataIterator, AbstractTableBean.ViewListenerProxyStructureModifiableTableBean.CallBack, StructureModifiableTableBean.CommitResult, StructureModifiableTableBean.CommitResults, StructureModifiableTableBean.ConnectResult, StructureModifiableTableBean.ConnectSpec, StructureModifiableTableBean.DeleteResult, StructureModifiableTableBean.DisconnectResult, StructureModifiableTableBean.ReplaceResult, StructureModifiableTableBean.ReplaceSpec, StructureModifiableTableBean.UpdateResultTableDataProvider.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 |
|---|---|
protected boolean |
editable
Holds whether the table is editable or not.
|
protected boolean |
editSupported
Holds whether the implmentation supports editing or not.
|
protected boolean |
structureModificationSupported
Holds whether the implementation supports structure editing or not
|
DEFAULT_VISIBLE_TABLE_DATA_FILTER, EVALUATION_REQUIRED_TABLE_DATA_FILTER, SELECTED_TABLE_DATA_FILTEREMPTY| Constructor and Description |
|---|
AbstractEditableTableBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTableEditListenerListener(TableEditListener listener)
Adds a
TableEditListener to the table. |
protected void |
afterConnect(StructureModifiableTableBean.ConnectResult result) |
protected void |
afterDisconnect(AbstractEditableTableBean.DisconnectResultImpl result) |
protected void |
afterEdit(TableData[] data,
Cell[] cells,
java.lang.String value,
Environment env) |
protected void |
afterEdit(TableData data,
CellValue value,
Environment env) |
StructureModifiableTableBean.ConnectResult |
connect(StructureModifiableTableBean.ConnectSpec spec)
This method performs the creation of a connection, typically between two
objects but might be done between a connection and an object or between
two connections.
|
protected AbstractEditableTableBean.ConnectResultImpl |
createConnectResult(StructureModifiableTableBean.ConnectSpec spec) |
protected AbstractEditableTableBean.DisconnectResultImpl |
createDisconnectResult() |
protected AbstractEditableTableBean.ReplaceResultImpl |
createReplaceResult(StructureModifiableTableBean.ReplaceSpec spec) |
StructureModifiableTableBean.DisconnectResult |
disconnect(java.lang.String[] connectionIds)
This method performs a disconnect of a connection with the specified ID.
|
void |
editCell(TableData data,
Cell cell,
int valueIndex,
java.lang.String value,
Environment env)
This method performs the actual editing of a
cell. |
void |
editCells(TableData[] data,
Cell[] cells,
java.lang.String value,
Environment env)
Edit the cells of the specified column for the specified data instances.
|
protected void |
fireWasEditedEvent(TableData[] data,
Cell[] cells,
java.lang.String value,
Environment env) |
protected void |
fireWasEditedEvent(TableData data,
CellValue value,
java.lang.String newValue,
Environment env)
Fires a
after edit
event. |
protected boolean |
getReuseCellsForEditEvaluation() |
java.util.Iterator<TableEditListener> |
getTableEditListeners() |
boolean |
isEditable()
Returns a boolean value indicating whether the table is editable or not.
|
boolean |
isEditSupported()
Returns a boolean value indicating whether the implementation supports
editing.
|
boolean |
isStructureModificationSupported()
Returns whether or not this implementation supports structure edit
|
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. |
protected StructureModifiableTableBean.ConnectResult |
performConnect(StructureModifiableTableBean.ConnectSpec spec) |
protected StructureModifiableTableBean.DisconnectResult |
performDisconnect(java.lang.String[] connectionIds) |
protected StructureModifiableTableBean.ReplaceResult |
performReplace(StructureModifiableTableBean.ReplaceSpec spec) |
void |
removeTableEditListener(TableEditListener listener)
Removes the
TableEditListener from the table. |
StructureModifiableTableBean.ReplaceResult |
replace(StructureModifiableTableBean.ReplaceSpec spec)
This method performs a replace of an object on a connection
|
void |
setEditable(boolean editable)
Sets whether the table should be editable or not.
|
protected void |
setEditSupported(boolean editSupported)
Sets whether the implementation supports editing or not.
|
protected void |
setStructureModificationSupported(boolean structureModificationSupported)
Sets whether the implementation supports structure editing or not.
|
protected void |
validate(StructureModifiableTableBean.ReplaceSpec spec) |
protected void |
validateSpec(StructureModifiableTableBean.ConnectSpec spec) |
addSelectionListener, createDefaultSelectionModel, getSelectionModel, removeSelectionListener, selectableChanged, selectionChanged, setSelectionModeladdPaginationChangeListener, asNonPaginatedTable, evaluateColumns, firePaginationChanged, getCurrentPage, getDisplayedTableData, getPageCount, getPageTableData, getPageTableDataRange, getPaginationThreshold, getUnpaginatedTableData, getUnpaginatedTableDataCount, isOnlyEvaluateCurrentPage, isPaginated, isPaginationForced, isPaginationSupported, isProxyInvokation, isValid, removePaginationChangeListener, setCurrentPage, setOnlyEvaluateCurrentPage, setPageTableDataRange, setPaginated, setPaginationSupported, setPaginationThreshold, validateaccept, 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, getDisplayedTableData, 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, isValid, isVisible, isVisibleColumn, navigate, navigate, reload, removeParent, removeTableClonedListener, removeTableContentListener, removeTableData, removeTableData, removeTableData, removeTableGroupedListener, removeTableListener, removeTableNavigateListener, removeVisibleTableDataFilter, removeVisibleTableDataFilters, setHeader, setHeader, setOnlyEvaluateVisibleColumns, setParent, setSubHeader, setSubHeader, validategetChoosableViews, getView, getViewFactory, isTableChangeable, isViewChangeable, isVisualsChangeable, setChoosableViews, setView, setView, setViewFactorygetMenuBar, setMenuBargetContextMenu, setContextMenuisInquirySupported, loadFromInquiry, loadFromInquirygetEnv, getEnv, setEnvgetAttribute, getAttributeNames, removeAttribute, setAttributegetPageConfig, setPageConfigprotected boolean editable
protected boolean editSupported
protected boolean structureModificationSupported
protected void onClone(TableBean<T> c)
AbstractPaginatedTableBeanonClone in class AbstractSelectionTableBean<T extends TableData>public void addTableEditListenerListener(TableEditListener listener)
TableEditListener to the table.addTableEditListenerListener in interface EditableTableBean<T extends TableData>listener - the TableEditListener to add.public void removeTableEditListener(TableEditListener listener)
TableEditListener from the table.removeTableEditListener in interface EditableTableBean<T extends TableData>listener - the TableEditListener to remove.public java.util.Iterator<TableEditListener> getTableEditListeners()
getTableEditListeners in interface EditableTableBean<T extends TableData>table-edit-listeners addedpublic final void setEditable(boolean editable)
setEditable in interface EditableTableBean<T extends TableData>editable - boolean value indicating whether the table should be
editable or not.public final boolean isEditable()
isEditable in interface EditableTableBean<T extends TableData>public final boolean isEditSupported()
isEditSupported in interface EditableTableBean<T extends TableData>protected final void setEditSupported(boolean editSupported)
editSupported - whether the implementation supports editing or not.public StructureModifiableTableBean.ConnectResult connect(StructureModifiableTableBean.ConnectSpec spec) throws TVCException
StructureModifiableTableBeanThe implementation will decide what to do based upon the incoming specification.
connect in interface StructureModifiableTableBean<T extends TableData>spec - The connection specificationStructureModifiableTableBean.ConnectResultTVCException - If unable to perform the connect operationprotected void validateSpec(StructureModifiableTableBean.ConnectSpec spec) throws java.lang.IllegalArgumentException, TVCException
java.lang.IllegalArgumentExceptionTVCExceptionprotected StructureModifiableTableBean.ConnectResult performConnect(StructureModifiableTableBean.ConnectSpec spec) throws TVCException
TVCExceptionprotected AbstractEditableTableBean.ConnectResultImpl createConnectResult(StructureModifiableTableBean.ConnectSpec spec)
protected void afterConnect(StructureModifiableTableBean.ConnectResult result)
public StructureModifiableTableBean.DisconnectResult disconnect(java.lang.String[] connectionIds) throws TVCException
StructureModifiableTableBeandisconnect in interface StructureModifiableTableBean<T extends TableData>connectionIds - The id's of the connection(s) to remove.result instanceTVCException - If unable to perform the disconnect operationprotected StructureModifiableTableBean.DisconnectResult performDisconnect(java.lang.String[] connectionIds) throws TVCException
TVCExceptionprotected AbstractEditableTableBean.DisconnectResultImpl createDisconnectResult()
protected void afterDisconnect(AbstractEditableTableBean.DisconnectResultImpl result)
public StructureModifiableTableBean.ReplaceResult replace(StructureModifiableTableBean.ReplaceSpec spec) throws TVCException
StructureModifiableTableBeanreplace in interface StructureModifiableTableBean<T extends TableData>spec - The specification for the replace operationTVCException - If unable to perform the replace operationprotected void validate(StructureModifiableTableBean.ReplaceSpec spec) throws TVCException
TVCExceptionprotected StructureModifiableTableBean.ReplaceResult performReplace(StructureModifiableTableBean.ReplaceSpec spec) throws TVCException
TVCExceptionprotected AbstractEditableTableBean.ReplaceResultImpl createReplaceResult(StructureModifiableTableBean.ReplaceSpec spec)
public boolean isStructureModificationSupported()
isStructureModificationSupported in interface StructureModifiableTableBean<T extends TableData>protected final void setStructureModificationSupported(boolean structureModificationSupported)
structureModificationSupported - whether the implementation supports
editing or not.public void editCell(TableData data, Cell cell, int valueIndex, java.lang.String value, Environment env) throws TVCException
cell.editCell in interface EditableTableBean<T extends TableData>data - the TableData that *owns* the cell.cell - the cell to edit.valueIndex - The index of the value to be edited.value - the new value.env - the environment.TVCException - if unable to edit the cell.protected void fireWasEditedEvent(TableData data, CellValue value, java.lang.String newValue, Environment env) throws TVCException
after edit
event.TVCExceptionprotected void afterEdit(TableData data, CellValue value, Environment env) throws TVCException
data - value - env - TVCExceptionpublic void editCells(TableData[] data, Cell[] cells, java.lang.String value, Environment env) throws TVCException
editCells in interface EditableTableBean<T extends TableData>data - the TableData instances that *owns* the cells to be
edited.cells - the cells to edit. The length of this array
must match the length of the data array.value - the new value.env - the environment.TVCException - if unable to edit the cell.protected void fireWasEditedEvent(TableData[] data, Cell[] cells, java.lang.String value, Environment env) throws TVCException
TVCExceptionprotected void afterEdit(TableData[] data, Cell[] cells, java.lang.String value, Environment env) throws TVCException
data - cells - value - env - TVCExceptionprotected void onNavigate(TableBean<? extends TableData> structure, java.lang.String objectId) throws TVCException
StructureBean when navigating.onNavigate in class AbstractSelectionTableBean<T extends TableData>TVCExceptionprotected boolean getReuseCellsForEditEvaluation()
Copyright ? Technia AB. All Rights Reserved.