Interface SwingGadgetContext<E extends GomElement>
- All Superinterfaces:
GadgetContext<E>
Context container for swing based gadgets. This context will be given to swing based gadgets on construction.
Important: The context may change during its lifetime, hence, objects retrieved via the context may be altered or replaced. To be sure using the current context, these objects should always be accessed via the context directly (i.e. not be cached).
Important: The context may change during its lifetime, hence, objects retrieved via the context may be altered or replaced. To be sure using the current context, these objects should always be accessed via the context directly (i.e. not be cached).
- Since:
- 4.2.405
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@NotNull RemoteFormData
Provides remote access to the form data containing the gadget.@Nullable Monoglot
Provides the language to be used for monoglot child forms.@NotNull NotificationHost
Gets the host to be used for notifications.@NotNull SwingFormViewMode
Returns the requested view mode for the gadget.Methods inherited from interface de.espirit.firstspirit.module.GadgetContext
getBroker, getDisplayLanguage, getElement, getFormUid, getGom, getPersistencyLanguage, getStoreType, isDefault, isRelease
-
Method Details
-
getViewMode
Returns the requested view mode for the gadget.- Returns:
- The view mode of the surrounding form.
- Since:
- 5.2.900
-
getNotificationHost
Gets the host to be used for notifications.- Returns:
- The host for notifications.
- Since:
- 4.2.405
-
getElementFormData
Provides remote access to the form data containing the gadget.- Returns:
- A form data access object or
null
. - Throws:
RemoteFormData.InaccessibleException
- If the form data cannot be accessed.- Since:
- 5.0.100
-
getMonoglot
Provides the language to be used for monoglot child forms.- Returns:
- A language.
- Since:
- 5.2.510
-