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 Summary
Constructors Modifier Constructor Description protected
InternalFocusListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
focusGained(org.eclipse.swt.events.FocusEvent e)
void
focusLost(org.eclipse.swt.events.FocusEvent e)
-
-
-
Method Detail
-
focusLost
public void focusLost(org.eclipse.swt.events.FocusEvent e)
- Specified by:
focusLost
in interfaceorg.eclipse.swt.events.FocusListener
-
focusGained
public void focusGained(org.eclipse.swt.events.FocusEvent e)
- Specified by:
focusGained
in interfaceorg.eclipse.swt.events.FocusListener
-
-