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 void
clear(boolean isUndo)
boolean
containsDuplicateKeys()
Indicates if there are any duplicate keys in the table.InputLayerObject
getInputLayerObjectAtInputLayerOnly(int row, int col)
int
getRowCount()
Object
getValueAt(int rowIndex, int columnIndex)
Object
getValueAtInputLayerOnly(int row, int col)
boolean
isCellEditable(int rowIndex, int columnIndex)
boolean
rowHasDuplicateKey(int row)
Indicates if a row contains a duplicate key.void
saveChanges()
void
setValueAt(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, showProcessingErrorPopup
Methods inherited from class com.illumon.iris.gui.table.IrisTableModel
dispose, getColumnClass, getColumnCount, getColumnIndex, getColumnName, getColumnSet, getNonViewColumnSet, getSortableColumns, getTableModelName, getWorkspaceInfo, isStale, processUpdate, registerAsUpdateListener, setColumnSet, setWorkspaceInfo
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceTableModel
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
getValueAtInputLayerOnly
- Specified by:
getValueAtInputLayerOnly
in interfaceInputOverlayLayer
-
getInputLayerObjectAtInputLayerOnly
- Specified by:
getInputLayerObjectAtInputLayerOnly
in interfaceInputOverlayLayer
-
saveChanges
public void saveChanges()- Specified by:
saveChanges
in interfaceInputOverlayLayer
-
clear
public void clear(boolean isUndo)- Specified by:
clear
in interfaceInputOverlayLayer
-