| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
jist.runtime.guilog.GuiLog.EventTableModel
public static class GuiLog.EventTableModel
The EventTableModel class is the data model for the JTable.
| Field Summary | 
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel | 
|---|
| listenerList | 
| Constructor Summary | |
|---|---|
| GuiLog.EventTableModel()The EventTableModel's constructor initializes the two members. | |
| Method Summary | |
|---|---|
|  void | add(Event ev,
    Event parent)Add an event to the table's data model. | 
|  void | del(Event ev)Delete an event from the table's data model. | 
|  GuiLog.EventNode | findNode(Event ev)Given an Event, returns the corresponding EventNode in the events[] array. | 
|  int | findNodeIndex(Event ev)Given an Event, returns the index of the events[] array where that Event is located. | 
|  int | getChildIndex(int index,
              int childNum)Given an EventNode's index and a Child number, returns the specified Child EventNode's index in the events[] array. | 
|  int | getColumnCount()Returns the number of columns in the table. | 
|  int | getParentIndex(int index)Given an EventNode's index, returns the Parent EventNode's index in the events[] array. | 
|  int | getRowCount()Returns the number of rows in the table. | 
|  java.lang.Object | getValueAt(int row,
           int col)Returns the EventNode corresponding to the requested row. | 
|  boolean | isCellEditable(int row,
               int col)Returns whether the cell at (row,col) is editable or not. | 
| Methods inherited from class javax.swing.table.AbstractTableModel | 
|---|
| addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener, setValueAt | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GuiLog.EventTableModel()
| Method Detail | 
|---|
public GuiLog.EventNode findNode(Event ev)
ev - Event The Event being located.
public int findNodeIndex(Event ev)
ev - Event The desired Event.
public int getParentIndex(int index)
index - int The index of the EventNode.
public int getChildIndex(int index,
                         int childNum)
index - int The index of the EventNode.childNum - int The number of the desired Child EventNode.
public void add(Event ev,
                Event parent)
ev - Event The Event that is being added.parent - Event The Event's Parent Event.public void del(Event ev)
ev - Event The Event that is being deleted.public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row,
                                   int col)
row - intcol - int
public boolean isCellEditable(int row,
                              int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - intcol - int
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||