org.ow2.clif.console.lib.gui
Class GraphTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by org.ow2.clif.console.lib.gui.GraphTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class GraphTableModel
extends javax.swing.table.DefaultTableModel

See Also:
Serialized Form

Field Summary
 int rows
           
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
GraphTableModel(java.lang.String[] cname)
           
 
Method Summary
 void addInjector(java.lang.String injectorName)
          Adds an injector to this table model list.
 java.lang.Object[] getAllInjectors()
           
 java.lang.Class getColumnClass(int c)
          Necessary to display boolean value as a checkbox in the table.
 int getId()
           
 java.lang.Object[] getInjectorsToCollect()
           
 java.lang.Object[] getInjectorsToDisplay()
           
 boolean isCellEditable(int rowIndex, int columnIndex)
          Information about the editable cell of the table.
 void setId(int id)
          Sets an ID for this table model.
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rows

public int rows
Constructor Detail

GraphTableModel

public GraphTableModel(java.lang.String[] cname)
Method Detail

setId

public void setId(int id)
Sets an ID for this table model. (Used in the panel that represents two graphics in the same panel)

Parameters:
id -

getId

public int getId()
Returns:
the identifier of this table model

addInjector

public void addInjector(java.lang.String injectorName)
Adds an injector to this table model list.

Parameters:
injectorName - The name of the injector to add

getColumnClass

public java.lang.Class getColumnClass(int c)
Necessary to display boolean value as a checkbox in the table.

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
See Also:
TableModel.getColumnClass(int)

getAllInjectors

public java.lang.Object[] getAllInjectors()
Returns:
the names of every host in this table model.

getInjectorsToDisplay

public java.lang.Object[] getInjectorsToDisplay()
Returns:
the host names whose display checkbox is checked

getInjectorsToCollect

public java.lang.Object[] getInjectorsToCollect()
Returns:
the host names whose collect checkbox is checked

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Information about the editable cell of the table.

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel
See Also:
TableModel.isCellEditable(int, int)