jist.runtime.guilog
Class GuiLog.ChildrenCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by jist.runtime.guilog.GuiLog.ChildrenCellEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.CellEditor, javax.swing.table.TableCellEditor
Enclosing class:
GuiLog

public static class GuiLog.ChildrenCellEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor, java.awt.event.ActionListener

ChildrenCellEditor is a customized TableCellEditor for JiST Events.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
GuiLog.ChildrenCellEditor(javax.swing.JTable t, GuiLog.EventTableModel m)
          The ChildrenCellEditorConstructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Defines how JComboBox selections on the Children column are handled.
 java.lang.Object getCellEditorValue()
          Overloaded to satisfy the CellEditor interface.
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
          Returns the Component that edits the TableCell.
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

GuiLog.ChildrenCellEditor

public GuiLog.ChildrenCellEditor(javax.swing.JTable t,
                                 GuiLog.EventTableModel m)
The ChildrenCellEditorConstructor.

Parameters:
t - JTable The table that the ChildrenCellEditor edits.
m - EventTableModel The table's data model.
Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Returns the Component that edits the TableCell. Parameters are the same as those in the getTableCellEditorComponent() method in interface TableCellEditor.

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Parameters:
table - JTable
value - Object
isSelected - boolean
row - int
column - int
Returns:
Component

getCellEditorValue

public java.lang.Object getCellEditorValue()
Overloaded to satisfy the CellEditor interface.

Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Returns:
Object

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Defines how JComboBox selections on the Children column are handled.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - ActionEvent