Package org.ow2.clif.console.lib.gui
Class GraphTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- javax.swing.table.DefaultTableModel
-
- 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- Author:
- Julien Buret, Nicolas Droze
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description introws
-
Constructor Summary
Constructors Constructor Description GraphTableModel(java.lang.String[] cname)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInjector(java.lang.String injectorName)Adds an injector to this table model list.java.lang.Object[]getAllInjectors()java.lang.Class<? extends java.lang.Object>getColumnClass(int c)Necessary to display boolean value as a checkbox in the table.intgetId()java.lang.Object[]getInjectorsToCollect()java.lang.Object[]getInjectorsToDisplay()booleanisCellEditable(int rowIndex, int columnIndex)Information about the editable cell of the table.voidsetId(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
-
-
-
-
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<? extends java.lang.Object> getColumnClass(int c)
Necessary to display boolean value as a checkbox in the table.- Specified by:
getColumnClassin interfacejavax.swing.table.TableModel- Overrides:
getColumnClassin classjavax.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:
isCellEditablein interfacejavax.swing.table.TableModel- Overrides:
isCellEditablein classjavax.swing.table.DefaultTableModel- See Also:
TableModel.isCellEditable(int, int)
-
-