Class NatCombo.FocusListenerWrapper

java.lang.Object
org.eclipse.nebula.widgets.nattable.widget.NatCombo.FocusListenerWrapper
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.FocusListener, org.eclipse.swt.internal.SWTEventListener
Enclosing class:
NatCombo

public class NatCombo.FocusListenerWrapper extends Object implements org.eclipse.swt.events.FocusListener
FocusListener that is used to ensure that the Text control and the dropdown table control are sharing the same focus. If either of both controls looses focus, the local focus flag is set to false and a delayed background thread for focus lost is started. If the other control gains focus, the local focus flag is set to true which skips the execution of the delayed background thread. This means the NatCombo hasn't lost focus.
Since:
1.4
  • Constructor Details

    • FocusListenerWrapper

      public FocusListenerWrapper()
  • 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