Class TableCellEditor.InternalFocusListener

All Implemented Interfaces:
EventListener,, org.eclipse.swt.internal.SWTEventListener
Enclosing class:

protected class TableCellEditor.InternalFocusListener extends Object implements
FocusListener that will fire the focus lost event only if the Text editor control of the editing support and the table viewer does not have the focus. This is because for NatTable use cases they share a focus. So closing the TableCellEditor should only happen if both loose focus. Using the default focus handling, opening an editor in the table via editing support would cause a focus lost event on the table, which immediately closes the editor again.
  • Constructor Details

    • InternalFocusListener

      protected InternalFocusListener()
  • Method Details

    • focusLost

      public void focusLost( e)
      Specified by:
      focusLost in interface
    • focusGained

      public void focusGained( e)
      Specified by:
      focusGained in interface