Interface SwingGadgetContext<E extends GomElement>

All Superinterfaces:
GadgetContext<E>

public interface SwingGadgetContext<E extends GomElement> extends 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).
Since:
4.2.405
See Also:
  • Method Details

    • getViewMode

      @NotNull @NotNull SwingFormViewMode getViewMode()
      Returns the requested view mode for the gadget.
      Returns:
      The view mode of the surrounding form.
      Since:
      5.2.900
    • getNotificationHost

      @NotNull @NotNull NotificationHost getNotificationHost()
      Gets the host to be used for notifications.
      Returns:
      The host for notifications.
      Since:
      4.2.405
    • getElementFormData

      @NotNull @NotNull RemoteFormData getElementFormData() throws RemoteFormData.InaccessibleException
      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

      @Nullable @Nullable Monoglot getMonoglot()
      Provides the language to be used for monoglot child forms.
      Returns:
      A language.
      Since:
      5.2.510