Class InputRowsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
com.illumon.iris.gui.table.IrisTableModel
com.illumon.iris.console.db.BaseDBTableModel
com.illumon.iris.console.utils.input.InputRowsTableModel
- All Implemented Interfaces:
InputOverlayLayer,UpdateListener,Workspace,Serializable,TableModel
public class InputRowsTableModel extends BaseDBTableModel implements InputOverlayLayer
This is a simple table model used to verify and edit rows before putting them into an InputTable.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclear(boolean isUndo)booleancontainsDuplicateKeys()Indicates if there are any duplicate keys in the table.InputLayerObjectgetInputLayerObjectAtInputLayerOnly(int row, int col)intgetRowCount()ObjectgetValueAt(int rowIndex, int columnIndex)ObjectgetValueAtInputLayerOnly(int row, int col)booleanisCellEditable(int rowIndex, int columnIndex)booleanrowHasDuplicateKey(int row)Indicates if a row contains a duplicate key.voidsaveChanges()voidsetValueAt(Object value, int rowIndex, int columnIndex)Methods inherited from class com.illumon.iris.console.db.BaseDBTableModel
columnSet, columnSet, columnSet, columnSet, columnSet, doneProcessing, generateThrowableHtmlMessage, getIrisTablePanel, getName, getViewportForTable, removeStatusMessage, setIrisTablePanel, setProcessingMessage, setStatusMessage, setStatusMessageButton, setTabColor, setWarningAndTableSize, showProcessingErrorPopup, showProcessingErrorPopupMethods inherited from class com.illumon.iris.gui.table.IrisTableModel
dispose, getColumnClass, getColumnCount, getColumnIndex, getColumnName, getColumnSet, getNonViewColumnSet, getSortableColumns, getTableModelName, getWorkspaceInfo, isStale, processUpdate, registerAsUpdateListener, setColumnSet, setWorkspaceInfoMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.console.utils.input.InputOverlayLayer
getInputLayerObjectAtInputLayerOnly, getValueAtInputLayerOnly
-
Constructor Details
-
Method Details
-
containsDuplicateKeys
public boolean containsDuplicateKeys()Indicates if there are any duplicate keys in the table.- Returns:
- true if there are duplicate keys, false otherwise
-
rowHasDuplicateKey
public boolean rowHasDuplicateKey(int row)Indicates if a row contains a duplicate key.- Parameters:
row- the row to check- Returns:
- true if the row contains a duplicate key, false otherwise
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
getValueAtInputLayerOnly
- Specified by:
getValueAtInputLayerOnlyin interfaceInputOverlayLayer
-
getInputLayerObjectAtInputLayerOnly
- Specified by:
getInputLayerObjectAtInputLayerOnlyin interfaceInputOverlayLayer
-
saveChanges
public void saveChanges()- Specified by:
saveChangesin interfaceInputOverlayLayer
-
clear
public void clear(boolean isUndo)- Specified by:
clearin interfaceInputOverlayLayer
-