Package de.espirit.firstspirit.webedit
Interface WebeditUiAgent
public interface WebeditUiAgent
Agent providing specific information of the webedit UI.
- Since:
- 5.0.103
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpecialistType<WebeditUiAgent> Agent providing specific information of the webedit UI. -
Method Summary
Modifier and TypeMethodDescriptionProvides the display language of the client UI.@NotNull StringgetDisplayName(IDProvider element) Provides the display name for the given store element.@NotNull LocaleProvides the locale with which the webedit UI is localized.@Nullable IDProviderProvides the currently shown element.@Nullable LanguageProvides the language the preview element is shown in.@Nullable PageRefProvides thePageRefhosting the currently shown preview element.
-
Field Details
-
TYPE
Agent providing specific information of the webedit UI.- Since:
- 5.0.103
-
-
Method Details
-
getLocale
Provides the locale with which the webedit UI is localized.- Returns:
- The client's locale.
- Since:
- 5.2.609
-
getDisplayLanguage
Language getDisplayLanguage()Provides the display language of the client UI.- Returns:
- The client's display language.
- Since:
- 5.0.103
-
getPreviewLanguage
Provides the language the preview element is shown in.- Returns:
- The preview language.
- Since:
- 5.0.103
-
getPreviewElement
Provides the currently shown element. This is usually aPageRef, but may be aDatasetfor a detail page on a content projection that renders multiple datasets. UsegetPreviewPageRef()to obtain the hostingPageRefin that case.- Returns:
- The current element.
- Since:
- 5.0.103
-
getPreviewPageRef
Provides thePageRefhosting the currently shown preview element. Returns the preview element itself if it is aPageRef, or the contextualPageRefif the preview element is aDatasetrendered on a detail page.- Returns:
- The contextual
PageRef, ornullif none is available. - Since:
- 5.2.260802
-
getDisplayName
Provides the display name for the given store element.- Parameters:
element- The element to provide a name for.- Returns:
- The element's display name.
- Since:
- 5.0.103
-