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
This is a simple table model used to verify and edit rows before putting them into an InputTable.
- See Also:
-
Field Summary
Fields inherited from class com.illumon.iris.gui.table.IrisTableModel
columnSet_, nonViewColumnSet_Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(boolean isUndo) booleanIndicates if there are any duplicate keys in the table.getInputLayerObjectAtInputLayerOnly(int row, int col) intgetValueAt(int rowIndex, int columnIndex) getValueAtInputLayerOnly(int row, int col) booleanisCellEditable(int rowIndex, int columnIndex) booleanrowHasDuplicateKey(int row) Indicates if a row contains a duplicate key.voidvoidsetValueAt(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, getValueAtInputLayerOnlyMethods inherited from interface com.illumon.iris.gui.workspace.Workspace
isGlobalSetting
-
Constructor Details
-
InputRowsTableModel
-
-
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
-