Class TableCellEditor.InternalFocusListener

java.lang.Object
org.eclipse.nebula.widgets.nattable.edit.editor.TableCellEditor.InternalFocusListener
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.internal.SWTEventListener
Enclosing class:
TableCellEditor

protected class TableCellEditor.InternalFocusListener extends Object implements org.eclipse.swt.events.FocusListener
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(org.eclipse.swt.events.FocusEvent e)
      Specified by:
      focusLost in interface org.eclipse.swt.events.FocusListener
    • focusGained

      public void focusGained(org.eclipse.swt.events.FocusEvent e)
      Specified by:
      focusGained in interface org.eclipse.swt.events.FocusListener