Package io.jmix.flowuidata.settings
Class ViewSettingsComponentRegistryImpl
java.lang.Object
io.jmix.flowuidata.settings.ViewSettingsComponentRegistryImpl
- All Implemented Interfaces:
ViewSettingsComponentRegistry,org.springframework.beans.factory.InitializingBean
@Component("flowui_ViewSettingsComponentRegistryImpl")
public class ViewSettingsComponentRegistryImpl
extends Object
implements ViewSettingsComponentRegistry, org.springframework.beans.factory.InitializingBean
Collects
ComponentSettingsBinder and provides information for which component registered settings class.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ComponentSettingsBinder<?,?>> protected Map<Class<? extends com.vaadin.flow.component.Component>,ComponentSettingsBinder<?, ?>> -
Constructor Summary
ConstructorsConstructorDescriptionViewSettingsComponentRegistryImpl(List<ComponentSettingsBinder<?, ?>> binders) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetSettingsBinder(Class<? extends com.vaadin.flow.component.Component> componentClass) getSettingsClass(Class<? extends com.vaadin.flow.component.Component> componentClass) booleanisSettingsRegisteredFor(Class<? extends com.vaadin.flow.component.Component> componentClass) protected voidregister(ComponentSettingsBinder<?, ?> binder)
-
Field Details
-
binders
-
componentBinders
protected Map<Class<? extends com.vaadin.flow.component.Component>,ComponentSettingsBinder<?, componentBinders?>>
-
-
Constructor Details
-
ViewSettingsComponentRegistryImpl
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getSettingsClass
public Class<? extends Settings> getSettingsClass(Class<? extends com.vaadin.flow.component.Component> componentClass) - Specified by:
getSettingsClassin interfaceViewSettingsComponentRegistry- Parameters:
componentClass- component class (e.g.JmixDetails)- Returns:
- component settings class
-
getSettingsBinder
public ComponentSettingsBinder<?,?> getSettingsBinder(Class<? extends com.vaadin.flow.component.Component> componentClass) - Specified by:
getSettingsBinderin interfaceViewSettingsComponentRegistry- Parameters:
componentClass- component class (e.g.JmixDetails)- Returns:
- settings binder
-
isSettingsRegisteredFor
public boolean isSettingsRegisteredFor(Class<? extends com.vaadin.flow.component.Component> componentClass) - Specified by:
isSettingsRegisteredForin interfaceViewSettingsComponentRegistry- Parameters:
componentClass- component class (e.g.JmixDetails)- Returns:
trueif settings is registered for the component class
-
register
-