Class SimulationServiceTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
fr.ifremer.isisfish.simulator.launcher.SimulationServiceTableModel
- All Implemented Interfaces:
Serializable
,TableModel
Model de table pour suivre l'evolution des differentes simulations en cours.
ATTENTION Cette classe doit supporter les acces concurrents car plusieurs threads peuvent etre simultanement en train de faire des simulations
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- poussin
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String[]
Columns names.protected Class<?>[]
Columns types.protected Map<String,
SimulationJob> protected ArrayList<SimulationJob>
protected Map<SimulationJob,
JProgressBar> progress bar (one for each row)protected SimulationService
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorDescriptionSimulationServiceTableModel
(SimulationService simulationService, boolean forDoToJobs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addJob
(SimulationJob job) void
clearJob()
boolean
contains
(SimulationJob job) Class<?>
getColumnClass
(int columnIndex) int
getColumnName
(int column) getJob
(int row) getJobs()
protected JProgressBar
int
getValueAt
(int rowIndex, int columnIndex) void
removeJob
(SimulationJob job) void
setJobs
(ArrayList<SimulationJob> jobs) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Field Details
-
COLUMN_HEADER
Columns names. -
columnClass
Columns types. -
simulationService
-
jobs
-
jobIds
-
progress
progress bar (one for each row) -
jobListener
-
controlListener
-
-
Constructor Details
-
SimulationServiceTableModel
-
-
Method Details
-
addJob
-
removeJob
-
clearJob
public void clearJob() -
getJobs
-
setJobs
-
contains
-
getProgressBar
-
getJob
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getValueAt
-