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
Modifier and TypeFieldDescriptionprotected List<ComponentSettingsBinder<?,
?>> protected Map<Class<? extends com.vaadin.flow.component.Component>,
ComponentSettingsBinder<?, ?>> -
Constructor Summary
ConstructorDescriptionViewSettingsComponentRegistryImpl
(List<ComponentSettingsBinder<?, ?>> binders) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getSettingsBinder
(Class<? extends com.vaadin.flow.component.Component> componentClass) getSettingsClass
(Class<? extends com.vaadin.flow.component.Component> componentClass) boolean
isSettingsRegisteredFor
(Class<? extends com.vaadin.flow.component.Component> componentClass) protected void
register
(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:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getSettingsClass
public Class<? extends Settings> getSettingsClass(Class<? extends com.vaadin.flow.component.Component> componentClass) - Specified by:
getSettingsClass
in 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:
getSettingsBinder
in 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:
isSettingsRegisteredFor
in interfaceViewSettingsComponentRegistry
- Parameters:
componentClass
- component class (e.g.JmixDetails
)- Returns:
true
if settings is registered for the component class
-
register
-