|
||||||||||
| 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.ServerListTableModel
public class ServerListTableModel
A bridge class between Server entries in a workspace and a JTable.
This class serves as a bridge between the in-memory representation of
server 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 server: Host Name, Status.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
A generated serial version ID for serializing the information in this class (if needed). |
private static java.lang.String[] |
StatusStrings
The set of better formatted status strings to be displayed to the user in the ServerList table associated with this data model. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ServerListTableModel()
The default constructor. |
|
| Method Summary | |
|---|---|
int |
getColumnCount()
Method to obtain the columns that are to be displayed by in a Server table. |
java.lang.String |
getColumnName(int col)
Override the default names that are set for the columns displayed in the job table. |
int |
getRowCount()
Method to return the number of rows to be displayed in the Server table. |
Server |
getServer(int row)
This is a convenience method to obtain the server entry. |
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, getColumnClass, 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 java.lang.String[] StatusStrings
private static final long serialVersionUID
| Constructor Detail |
|---|
public ServerListTableModel()
| Method Detail |
|---|
public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int row,
int column)
getValueAt in interface javax.swing.table.TableModel
public boolean isCellEditable(int row,
int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic Server getServer(int row)
row - The row id whose server entry is to be returned.
public 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 | |||||||||