public class GralMng.GralMngFocusListener
extends java.lang.Object
focusGainedGral(GralWidget)
and focusLostGral(GralWidget)
will be invoked
with that GralWidget, which is referred by the implementation layer widgets data.
SwtMng.SwtMngFocusListener
and 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 focusGainedGral(GralWidget)
.
SwtTextFieldWrapper
. That's focus listener should
update the text in the widget with the gral text store GralWidget.DynamicData.displayedText
on 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 |
---|
GralMngFocusListener() |
Modifier and Type | Method and Description |
---|---|
void |
focusGainedGral(GralWidget widgg)
Standard action on focus gained:
Sets the html help into the
GralMng.setApplicationAdapter(GralMngApplAdapter_ifc) if given. |
void |
focusLostGral(GralWidget widgg)
Standard action on focus lost:
|
public void focusLostGral(GralWidget widgg)
widgg
- public void focusGainedGral(GralWidget widgg)
GralMng.setApplicationAdapter(GralMngApplAdapter_ifc)
if given.
GralWidget.setActionFocused(GralUserAction)
if given.
GralMng.notifyFocus(GralWidget)
to detect the GralMng.getWidgetInFocus()
.
widgg
-