issrg.utils.gui.ifcondition
Class ConditionsTableCellEditor

java.lang.Object
  extended by issrg.utils.gui.ifcondition.ConditionsTableCellEditor
All Implemented Interfaces:
javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class ConditionsTableCellEditor
extends java.lang.Object
implements javax.swing.table.TableCellEditor

This Class justifies what occurs on editing the conditions table. It basically allows each being edited JComponent to behave as it normally would not inside a JTable.

Author:
Christian Azzopardi

Field Summary
protected  javax.swing.event.ChangeEvent changeEvent
           
protected  javax.swing.JComponent container
           
protected  javax.swing.JComponent editorComponent
           
protected  javax.swing.event.EventListenerList listenerList
           
 
Constructor Summary
ConditionsTableCellEditor()
           
 
Method Summary
 void addCellEditorListener(javax.swing.event.CellEditorListener l)
           
 void cancelCellEditing()
           
protected  void fireEditingCanceled()
           
protected  void fireEditingStopped()
           
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getComponent()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(java.util.EventObject anEvent)
           
 void removeCellEditorListener(javax.swing.event.CellEditorListener l)
           
 boolean shouldSelectCell(java.util.EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected javax.swing.event.EventListenerList listenerList

changeEvent

protected transient javax.swing.event.ChangeEvent changeEvent

editorComponent

protected javax.swing.JComponent editorComponent

container

protected javax.swing.JComponent container
Constructor Detail

ConditionsTableCellEditor

public ConditionsTableCellEditor()
Method Detail

getComponent

public java.awt.Component getComponent()

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor

isCellEditable

public boolean isCellEditable(java.util.EventObject anEvent)
Specified by:
isCellEditable in interface javax.swing.CellEditor

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject anEvent)
Specified by:
shouldSelectCell in interface javax.swing.CellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface javax.swing.CellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface javax.swing.CellEditor

addCellEditorListener

public void addCellEditorListener(javax.swing.event.CellEditorListener l)
Specified by:
addCellEditorListener in interface javax.swing.CellEditor

removeCellEditorListener

public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
Specified by:
removeCellEditorListener in interface javax.swing.CellEditor

fireEditingStopped

protected void fireEditingStopped()

fireEditingCanceled

protected void fireEditingCanceled()

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor