Class ProteinGoTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
eu.isas.peptideshaker.gui.tablemodels.ProteinGoTableModel
- All Implemented Interfaces:
Serializable,TableModel
Model for a the GO mappings protein table.
- 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
ConstructorsConstructorDescriptionProteinGoTableModel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, DisplayFeaturesGenerator displayFeaturesGenerator, ArrayList<Long> proteinGroupKeys, boolean showScores) Constructor which sets a new table. -
Method Summary
Modifier and TypeMethodDescriptiongetColumnClass(int columnIndex) intgetColumnName(int column) Returns the list of protein groups in the model.intgetValueAt(int row, int column) booleanisCellEditable(int rowIndex, int columnIndex) voidreset()Reset the protein keys.voidupdateDataModel(ArrayList<Long> proteinGroupKeys) 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
-
ProteinGoTableModel
public ProteinGoTableModel(com.compomics.util.experiment.identification.Identification identification, com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider, com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator, DisplayFeaturesGenerator displayFeaturesGenerator, ArrayList<Long> proteinGroupKeys, boolean showScores) Constructor which sets a new table.- Parameters:
identification- the identification objectproteinDetailsProvider- the protein details provideridentificationFeaturesGenerator- the identification features generatordisplayFeaturesGenerator- the display features generatorproteinGroupKeys- the keys of the protein groups to displayshowScores- boolean indicating whether scores should be displayed
-
-
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:
proteinGroupKeys- the keys of the protein groups to display
-
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
-
getProteins
Returns the list of protein groups in the model.- Returns:
- the list of protein groups in the model
-