public class GralMng.GralMngFocusListener extends java.lang.Object
focusLostGral(GralWidget)will be invoked with that GralWidget, which is referred by the implementation layer widgets data.
SwtMng.SwtMngFocusListenerand its instance
org.vishia.gral.swt.SwtMng.focusListener. That reference and class is protected and therewith package visible because only swt implementations needs it. An implementation widget class can use this instance of SwtMng.focusListener immediately for standard behavior. The standard behavior is realized in this class, see
SwtTextFieldWrapper. That's focus listener should update the text in the widget with the gral text store
GralWidget.DynamicData.displayedTexton focus gained, and overtake a changed content on focus lost. Adequate it is on all edit-able widgets. The SwtTextFieldWrapper.TextFieldFocusListener.focusGained(...) and focusLost(...) methods executes the special functionality. After them 'super.focusGained/Lost(ev);' is in called to execute the standard behavior.
|Constructor and Description|
|Modifier and Type||Method and Description|
Standard action on focus gained: Sets the html help into the
Standard action on focus lost:
public void focusLostGral(GralWidget widgg)
public void focusGainedGral(GralWidget widgg)
GralMng.notifyFocus(GralWidget)to detect the