Interface GadgetContext<E extends GomElement>

All Known Subinterfaces:
SwingGadgetContext<E>

public interface GadgetContext<E extends GomElement>
API for context information that is provided to Gadget implementations 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.
Since:
4.2.405
  • Method Details

    • getGom

      @NotNull E getGom()
      Gives the form definition as GOM element.
      Returns:
      The GOM element.
      Since:
      4.2.405
    • getBroker

      Provides access to a specialists broker.

      The broker provided offers several additional, specialized agents:

      Returns:
      The broker.
      Since:
      4.2.405
      See Also:
    • getElement

      @Nullable IDProvider getElement()
      Delivers the store element the gadget belongs to.
      Returns:
      The owning store element.
      Since:
      4.2.413
    • getStoreType

      @NotNull Store.Type getStoreType()
      Provides the store type the gadget operates in.
      Returns:
      The store type.
      Since:
      4.2.405
    • getPersistencyLanguage

      @NotNull Language getPersistencyLanguage()
      The persistency language of the gadget's value. This is the language of the tab embedding the component.
      Returns:
      The persistency language.
      Since:
      4.2.405
      See Also:
    • getDisplayLanguage

      @NotNull Language getDisplayLanguage()
      The display language to be used for displaying the form (labels). This is not the language the displayed value stems from, therefore use the persistency language.
      Returns:
      The display language.
      Since:
      4.2.405
      See Also:
    • isRelease

      boolean isRelease()
      Indicates to operate in store element release mode.
      Returns:
      true, if operating in release mode.
      Since:
      4.2.405
    • getFormUid

      @NotNull String getFormUid()
      Provides the form identifying uid.
      Returns:
      The form's uid.
      Since:
      4.2.405
    • isDefault

      boolean isDefault()
      Indicates to operate for default value definition.
      Returns:
      true, if operating on defaults.
      Since:
      4.2.405