Class RoleLocalizedValuesView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<ViewLayout>
io.jmix.flowui.view.View<ViewLayout>
io.jmix.flowui.view.StandardView
io.jmix.securityflowui.view.rolelocalization.RoleLocalizedValuesView
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, FacetOwner, FragmentOwner, Serializable

@ViewController(id="sec_RoleLocalizedValuesView") @ViewDescriptor(path="role-localized-values-view.xml") @DialogMode(width="32em") public class RoleLocalizedValuesView extends StandardView
Edits a bundle of the localized values of a role, its localized names or its localized descriptions: a field for every available locale, the default one included, since the name or the description of the role is the fallback of every locale. The entries of locales that are not available are kept.
See Also:
  • Constructor Details

    • RoleLocalizedValuesView

      public RoleLocalizedValuesView()
  • Method Details

    • onInit

      @Subscribe public void onInit(View.InitEvent event)
    • onBeforeShow

      @Subscribe public void onBeforeShow(View.BeforeShowEvent event)
    • onSaveActionPerformed

      @Subscribe("saveAction") public void onSaveActionPerformed(ActionPerformedEvent event)
    • setLocalizedValues

      @NullMarked public void setLocalizedValues(@Nullable String localizedValues)
      Sets the bundle that the dialog edits, as the role keeps it.
    • getLocalizedValues

      @NullMarked public @Nullable String getLocalizedValues()
      Returns:
      the edited bundle once the dialog is saved, otherwise the bundle it was given
    • setMultiline

      public void setMultiline(boolean multiline)
      Sets whether the values are edited in text areas, as descriptions are.
    • initSaveShortcut

      protected void initSaveShortcut()
      Binds the save action to the application's save shortcut, if the application sets one. The shortcut is not declared in the descriptor, where an unset shortcut fails the loading of the view.
    • readStoredEntries

      protected void readStoredEntries()
    • initFields

      protected void initFields()
    • createField

      @NullMarked protected com.vaadin.flow.component.textfield.TextFieldBase<?,String> createField()
    • collectLocalizedValues

      @NullMarked protected @Nullable String collectLocalizedValues()