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:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.PostReadyEvent, View.QueryParametersChangeEvent, View.ReadyEvent, View.RestoreComponentsStateEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable Stringprotected com.vaadin.flow.component.textfield.TextFieldBase<?, String> @Nullable Stringprotected voidprotected voidBinds the save action to the application's save shortcut, if the application sets one.voidonBeforeShow(View.BeforeShowEvent event) voidonInit(View.InitEvent event) voidprotected voidvoidsetLocalizedValues(@Nullable String localizedValues) Sets the bundle that the dialog edits, as the role keeps it.voidsetMultiline(boolean multiline) Sets whether the values are edited in text areas, as descriptions are.Methods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addApplicationListeners, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, addRestoreComponentsStateEventListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, configureDialogWindowFooter, configureDialogWindowHeader, getApplicationContext, getEventBus, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onAttachInternal, onDetach, onDetachInternal, processBeforeEnterInternal, removeApplicationListeners, removeViewAttributes, setAfterNavigationHandler, setApplicationContext, setId, setPageTitle, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement, initContentMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setTestId, setVisible, whenAttachedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
RoleLocalizedValuesView
public RoleLocalizedValuesView()
-
-
Method Details
-
onInit
-
onBeforeShow
-
onSaveActionPerformed
-
setLocalizedValues
Sets the bundle that the dialog edits, as the role keeps it. -
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
-
collectLocalizedValues
-