public class DefaultTableModel extends AbstractTableModel implements MutableTableModel
| Modifier and Type | Field and Description |
|---|---|
protected MutableColumnModel |
columnComponentModel
The column component model.
|
protected MutableListModel |
listComponentModel
The list component model.
|
protected UUID |
uid
unique id related with this DefaultTableModel, it is used to generate key which we use to put and get values from
cache:TABLE_VALUE_REQUEST_CACHE (i.e.
|
listeners| Constructor and Description |
|---|
DefaultTableModel(MutableListModel listComponentModel,
MutableColumnModel columnComponentModel)
Instantiates a new default table model.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkUserEditPermission(int colIndex,
int rowIndex)
Check user edit permission.
|
UIEditor |
getCellEditor(int columnIndex,
int rowIndex)
Returns the editor associated with the cell at position (
colIndex, rowIndex). |
CellRenderer |
getCellRenderer(int columnIndex) |
MutableColumnModel |
getColumnComponentModel()
Returns this table model's column model.
|
MutableListModel |
getListComponentModel()
Returns this table model's list model.
|
CellRenderer |
getNewInlineItemRenderer(int columnIndex)
Gets the new inline item renderer.
|
Object |
getValueAt(int colIndex,
int rowIndex)
Returns the value of the cell at position (
colIndex, rowIndex). |
boolean |
isCellEditable(int colIndex,
int rowIndex)
Returns whether the cell at position (
colIndex, rowIndex) can be edited or not. |
boolean |
isCellSelectable(int colIndex,
int rowIndex)
Returns whether the cell at position (
colIndex, rowIndex) can be selected or not. |
boolean |
isCellSelected(int colIndex,
int rowIndex)
Returns whether the cell at position (
colIndex, rowIndex) is selected or not. |
void |
setColumnComponentModel(MutableColumnModel columnModel)
Sets the column component model.
|
void |
setListComponentModel(MutableListModel listModel)
Sets the list component model.
|
void |
setSelectedCell(int colIndex,
int rowIndex)
Sets the selected cell.
|
void |
setSelectedCells(List<Integer> colIndexes,
List<Integer> rowIndexes)
Sets the selected cells.
|
void |
setValueAt(int colIndex,
int rowIndex,
Object data)
Sets the value at.
|
void |
updateDynamicColumns()
Update dynamic columns.
|
addTableModelListener, fireCellChanged, fireEvent, fireSelectionChanged, getUIAccessRightService, removeTableModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTableModelListener, fireEvent, removeTableModelListenerprotected MutableListModel listComponentModel
protected MutableColumnModel columnComponentModel
protected UUID uid
public DefaultTableModel(MutableListModel listComponentModel, MutableColumnModel columnComponentModel)
listComponentModel - the list component modelcolumnComponentModel - the column component modelpublic void setValueAt(int colIndex,
int rowIndex,
Object data)
throws ValueHandlerException
MutableTableModelsetValueAt in interface MutableTableModelcolIndex - the col indexrowIndex - the row indexdata - the dataValueHandlerException - the value handler exceptionpublic void setSelectedCell(int colIndex,
int rowIndex)
MutableTableModelsetSelectedCell in interface MutableTableModelcolIndex - the col indexrowIndex - the row indexpublic void setSelectedCells(List<Integer> colIndexes, List<Integer> rowIndexes)
MutableTableModelsetSelectedCells in interface MutableTableModelcolIndexes - the col indexesrowIndexes - the row indexespublic UIEditor getCellEditor(int columnIndex, int rowIndex)
TableModelcolIndex, rowIndex).getCellEditor in interface TableModelcolumnIndex - zero based column position indexrowIndex - zero based row position indexUIEditorpublic MutableColumnModel getColumnComponentModel()
TableModelgetColumnComponentModel in interface MutableTableModelgetColumnComponentModel in interface TableModelColumnModelpublic MutableListModel getListComponentModel()
TableModelgetListComponentModel in interface MutableTableModelgetListComponentModel in interface TableModelListComponentModelpublic Object getValueAt(int colIndex, int rowIndex)
TableModelcolIndex, rowIndex).getValueAt in interface TableModelcolIndex - zero based column position indexrowIndex - zero based row position indexprotected boolean checkUserEditPermission(int colIndex,
int rowIndex)
colIndex - the col indexrowIndex - the row indexpublic boolean isCellEditable(int colIndex,
int rowIndex)
TableModelcolIndex, rowIndex) can be edited or not.isCellEditable in interface TableModelcolIndex - zero based column position indexrowIndex - zero based row position indextrue if a cell exists at the specified position and is editable, false otherwisepublic boolean isCellSelectable(int colIndex,
int rowIndex)
TableModelcolIndex, rowIndex) can be selected or not.isCellSelectable in interface TableModelcolIndex - zero based column position indexrowIndex - zero based row position indextrue if a cell exists at the specified position and is selectable, false
otherwisepublic boolean isCellSelected(int colIndex,
int rowIndex)
TableModelcolIndex, rowIndex) is selected or not.isCellSelected in interface TableModelcolIndex - zero based column position indexrowIndex - zero based row position indextrue if a cell exists at the specified position and is selected, false otherwisepublic CellRenderer getCellRenderer(int columnIndex)
getCellRenderer in interface TableModelpublic CellRenderer getNewInlineItemRenderer(int columnIndex)
TableModelgetNewInlineItemRenderer in interface TableModelcolumnIndex - the column indexpublic void setListComponentModel(MutableListModel listModel)
MutableTableModelsetListComponentModel in interface MutableTableModellistModel - the new list component modelpublic void setColumnComponentModel(MutableColumnModel columnModel)
MutableTableModelsetColumnComponentModel in interface MutableTableModelcolumnModel - the new column component modelpublic void updateDynamicColumns()
MutableTableModelupdateDynamicColumns in interface MutableTableModelCopyright © 2017 SAP SE. All Rights Reserved.