JIDE 3.5.15

com.jidesoft.grid
Class JideCellEditorAdapter

java.lang.Object
  extended by com.jidesoft.grid.JideCellEditorAdapter
All Implemented Interfaces:
JideCellEditorListener, EventListener, CellEditorListener

public class JideCellEditorAdapter
extends Object
implements JideCellEditorListener

JideCellEditorAdapter is the default implementation for JideCellEditorListener so that you don't have to implement all the methods on the listener.


Constructor Summary
JideCellEditorAdapter()
           
 
Method Summary
 void editingCanceled(ChangeEvent e)
           
 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.
 void editingStopped(ChangeEvent e)
           
 boolean editingStopping(ChangeEvent e)
          This tells the listeners the editor is about to stop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JideCellEditorAdapter

public JideCellEditorAdapter()
Method Detail

editingStarting

public boolean editingStarting(ChangeEvent e)
Description copied from interface: JideCellEditorListener
This tells the listeners the editor is about to start editing.

Specified by:
editingStarting in interface JideCellEditorListener
Parameters:
e - the CellChangeEvent
Returns:
true or false. If false, the starting editing process should be stopped.

editingStarted

public void editingStarted(ChangeEvent e)
Description copied from interface: JideCellEditorListener
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.

Specified by:
editingStarted in interface JideCellEditorListener
Parameters:
e - the CellChangeEvent

editingStopping

public boolean editingStopping(ChangeEvent e)
Description copied from interface: JideCellEditorListener
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.

Specified by:
editingStopping in interface JideCellEditorListener
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.

editingStopped

public void editingStopped(ChangeEvent e)
Specified by:
editingStopped in interface CellEditorListener

editingCanceled

public void editingCanceled(ChangeEvent e)
Specified by:
editingCanceled in interface CellEditorListener

JIDE 3.5.15