Class RoleFilter
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.details.Details>
io.jmix.securityflowui.component.rolefilter.RoleFilter
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable,org.springframework.beans.factory.InitializingBean
public class RoleFilter
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.details.Details>
implements org.springframework.beans.factory.InitializingBean
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Messagesprotected RoleLocalizationSupportprotected UiComponents -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddRoleFilterChangeListener(com.vaadin.flow.component.ComponentEventListener<RoleFilterChangeEvent> listener) voidprotected StringgetLocalizedName(BaseRole role) Returns the name of a role that the name filter matches: the name in the user's locale.protected voidprotected voidprotected voidprotected voidprotected voidbooleanbooleanbooleanprotected voidonFilterFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<?, ?> event) voidsetCodeFilterVisible(boolean visible) voidsetMessages(Messages messages) voidsetNameFilterVisible(boolean visible) voidsetRoleLocalizationSupport(RoleLocalizationSupport roleLocalizationSupport) voidsetSourceFilterVisible(boolean visible) voidsetUiComponents(UiComponents uiComponents) Methods 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, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, 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
-
Field Details
-
messages
-
uiComponents
-
roleLocalizationSupport
-
-
Constructor Details
-
RoleFilter
public RoleFilter()
-
-
Method Details
-
setMessages
-
setUiComponents
-
setRoleLocalizationSupport
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
initNameFilter
protected void initNameFilter() -
initCodeFilter
protected void initCodeFilter() -
initSourceFilter
protected void initSourceFilter() -
initLayout
protected void initLayout() -
initRootComponent
protected void initRootComponent() -
isNameFilterVisible
public boolean isNameFilterVisible() -
setNameFilterVisible
public void setNameFilterVisible(boolean visible) -
isCodeFilterVisible
public boolean isCodeFilterVisible() -
setCodeFilterVisible
public void setCodeFilterVisible(boolean visible) -
isSourceFilterVisible
public boolean isSourceFilterVisible() -
setSourceFilterVisible
public void setSourceFilterVisible(boolean visible) -
getLocalizedName
Returns the name of a role that the name filter matches: the name in the user's locale.- Parameters:
role- the role to match- Returns:
- the name of the role in the user's locale
-
onFilterFieldValueChange
protected void onFilterFieldValueChange(com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<?, ?> event) -
addRoleFilterChangeListener
public com.vaadin.flow.shared.Registration addRoleFilterChangeListener(com.vaadin.flow.component.ComponentEventListener<RoleFilterChangeEvent> listener)
-