public interface EditableTableBean<T extends TableData> extends TableBean<T>
TableBean to provide support for editing
cells.TableDataProvider.Displayed<T extends TableData>, TableDataProvider.Empty<T extends TableData>, TableDataProvider.Specific<T extends TableData>, TableDataProvider.Visible<T extends TableData>EMPTY| Modifier and Type | Method and Description |
|---|---|
void |
addTableEditListenerListener(TableEditListener listener)
Adds a
table-edit-listeners to this instance. |
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.
|
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.
|
void |
removeTableEditListener(TableEditListener listener)
Removes a
table-edit-listeners from this
instance. |
void |
setEditable(boolean editable)
Sets whether the table should be editable or not.
|
accept, 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, setPageConfigvoid setEditable(boolean editable)
editable - boolean value indicating whether the table should be
editable or not.boolean isEditable()
void editCell(TableData data, Cell cell, int valueIndex, java.lang.String value, Environment env) throws TVCException
cell.data - the TableData that *owns* the cell.cell - the cell to edit.valueIndex - The value index within the cellvalue - the new value.env - the environment.TVCException - if unable to edit the cell.void editCells(TableData[] data, Cell[] cells, java.lang.String value, Environment env) throws TVCException
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.boolean isEditSupported()
void addTableEditListenerListener(TableEditListener listener)
table-edit-listeners to this instance.listener - The listener to be added.void removeTableEditListener(TableEditListener listener)
table-edit-listeners from this
instance.listener - The listener to be removed.java.util.Iterator<TableEditListener> getTableEditListeners()
table-edit-listeners addedCopyright ? Technia AB. All Rights Reserved.