JIDE 3.5.15

com.jidesoft.grid
Interface JideCellEditorListener

All Superinterfaces:
CellEditorListener, EventListener
All Known Implementing Classes:
JideCellEditorAdapter

public interface JideCellEditorListener
extends CellEditorListener

JideCellEditorListener extends CellEditorListener to add additional methods for cell editor changes.


Method Summary
 void editingStarted(ChangeEvent e)
          This tells the listeners the editor has started to edit.
 boolean editingStarting(ChangeEvent e)
          This tells the listeners the editor is about to start editing.
 boolean editingStopping(ChangeEvent e)
          This tells the listeners the editor is about to stop.
 
Methods inherited from interface javax.swing.event.CellEditorListener
editingCanceled, editingStopped
 

Method Detail

editingStarting

boolean editingStarting(ChangeEvent e)
This tells the listeners the editor is about to start editing.

Parameters:
e - the CellChangeEvent
Returns:
true or false. If false, the starting editing process should be stopped.

editingStarted

void editingStarted(ChangeEvent e)
This tells the listeners the editor has started to edit. Please note, this event only indicates the editor is ready to edit. But at this moment, table's isEditing() still return false as the editor is not set as JTable's cell editor yet.

Parameters:
e - the CellChangeEvent

editingStopping

boolean editingStopping(ChangeEvent e)
This tells the listeners the editor is about to stop.

Please note, this method could be called several times if you return false in this method, depending on how the cell editor is being stopped. If user presses ENTER to stop cell editing, this method will only be called once. If user clicks in other cell to start cell editing which in turn triggers stop cell editing in this cell, this method could be called three times for non-JIDE cell editors and called twice for JIDE cell editors. Of course, if you return true in this method, it will be only called once in any case.

Parameters:
e - the CellChangeEvent
Returns:
true or false. If false, the stopping editing process should be stopped and cell editor should remain in editing mode.

JIDE 3.5.15