Class PeptideFractionTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
eu.isas.peptideshaker.gui.tablemodels.PeptideFractionTableModel
- All Implemented Interfaces:
Serializable,TableModel
This table model shows a fraction view of the peptides given in the
constructor
- 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
ConstructorsConstructorDescriptionPeptideFractionTableModel(com.compomics.util.experiment.identification.Identification identification, DisplayFeaturesGenerator displayFeaturesGenerator, ArrayList<Long> peptideKeys, ArrayList<String> fileNames) 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) voidreset()Reset the peptide keys.voidupdateDataModel(ArrayList<Long> peptideKeys) 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
-
PeptideFractionTableModel
public PeptideFractionTableModel(com.compomics.util.experiment.identification.Identification identification, DisplayFeaturesGenerator displayFeaturesGenerator, ArrayList<Long> peptideKeys, ArrayList<String> fileNames) Constructor which sets a new table.- Parameters:
identification- the identification objectdisplayFeaturesGenerator- the display features generatorpeptideKeys- the peptide keysfileNames- a list of ordered file names
-
-
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:
peptideKeys- the peptide keys
-
reset
public void reset()Reset the peptide 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
-