|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.peace_tools.data.JobListTableModel
public class JobListTableModel
A bridge class between Job entries in a workspace and a JTable.
This class serves as a bridge between the in-memory representation of
jobs in a Workspace (represented by the set of classes in the
workspace package). This class enables reusing the data
set hierarchy maintained by the Workspace object to display it in a
JTable. In addition, this class also acts to monitor and update data
set views.
Note: This table model currently provides the following information for each job: JobID, Server, Monitor, CPUs, Status. The monitor column indicates the status of the background job monitoring thread.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
A generated serial version ID for serializing the information in this class (if needed). |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
JobListTableModel()
The default constructor. |
|
| Method Summary | |
|---|---|
java.lang.Class<?> |
getColumnClass(int column)
Obtain the class that describes the data type of a given column. |
int |
getColumnCount()
Method to obtain the columns that are to be displayed by in a Job table. |
java.lang.String |
getColumnName(int col)
Override the default names that are set for the columns displayed in the job table. |
Job |
getJob(int row)
This is a convenience method to obtain the job data. |
int |
getRowCount()
Method to return the number of rows to be displayed in the Job table. |
java.lang.Object |
getValueAt(int row,
int column)
Obtain the value to be displayed at a given row and column. |
boolean |
isCellEditable(int row,
int column)
Interface method to determine if an entry in the JTable is editable. |
void |
workspaceChanged(WorkspaceEvent event)
This method is invoked on all workspace listeners registered with the current Workspace. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public JobListTableModel()
| Method Detail |
|---|
public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic Job getJob(int row)
row - The row id whose Job entry is to be returned.
public java.lang.Object getValueAt(int row,
int column)
getValueAt in interface javax.swing.table.TableModelpublic java.lang.Class<?> getColumnClass(int column)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row,
int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic void workspaceChanged(WorkspaceEvent event)
WorkspaceListener
workspaceChanged in interface WorkspaceListenerevent - The event that contains the information regarding the
change that has occured to the workspace.public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcol - The zero-based column index whose title is to
be returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||