Class ProteinFractionTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
eu.isas.peptideshaker.gui.tablemodels.ProteinFractionTableModel
- All Implemented Interfaces:
Serializable,TableModel
This table model displays the protein confidence in every fraction.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVectorFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionConstructor which sets a new empty table.ProteinFractionTableModel(PeptideShakerGUI peptideShakerGUI) Constructor which sets a new table. -
Method Summary
Modifier and TypeMethodDescriptiongetColumnClass(int columnIndex) intgetColumnName(int column) intgetValueAt(int row, int column) booleanisCellEditable(int rowIndex, int columnIndex) booleanReturns true if the real model has been iniitated.voidreset()Reset the protein keys.voidsetModelInitiated(boolean modelInitiated) Set if the real model has been initiated.voidupdateDataModel(PeptideShakerGUI peptideShakerGUI) Update the data in the table model without having to reset the whole table model.Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAtMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
ProteinFractionTableModel
Constructor which sets a new table.- Parameters:
peptideShakerGUI- instance of the main GUI class
-
ProteinFractionTableModel
public ProteinFractionTableModel()Constructor which sets a new empty table.
-
-
Method Details
-
updateDataModel
Update the data in the table model without having to reset the whole table model. This keeps the sorting order of the table.- Parameters:
peptideShakerGUI- the PeptideShakerGUI parent
-
reset
public void reset()Reset the protein keys. -
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel- Overrides:
getRowCountin classDefaultTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel- Overrides:
getColumnCountin classDefaultTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classDefaultTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classDefaultTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classDefaultTableModel
-
isModelInitiated
public boolean isModelInitiated()Returns true if the real model has been iniitated.- Returns:
- the modelInitiated
-
setModelInitiated
public void setModelInitiated(boolean modelInitiated) Set if the real model has been initiated.- Parameters:
modelInitiated- the modelInitiated to set
-