Package io.jmix.uidata.settings
Class ComponentSettingsRegistryImpl
java.lang.Object
io.jmix.uidata.settings.ComponentSettingsRegistryImpl
- All Implemented Interfaces:
ComponentSettingsRegistry
,org.springframework.beans.factory.InitializingBean
@Component("ui_ComponentSettingsRegistry")
public class ComponentSettingsRegistryImpl
extends Object
implements ComponentSettingsRegistry, 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 Component>,
ComponentSettingsBinder> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getSettingsBinder
(Class<? extends Component> componentClass) Class<? extends ComponentSettings>
getSettingsClass
(Class<? extends Component> componentClass) boolean
isSettingsRegisteredFor
(Class<? extends Component> componentClass) protected void
register
(ComponentSettingsBinder binder)
-
Field Details
-
binders
-
componentBinders
-
-
Constructor Details
-
ComponentSettingsRegistryImpl
public ComponentSettingsRegistryImpl()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getSettingsClass
public Class<? extends ComponentSettings> getSettingsClass(Class<? extends Component> componentClass) - Specified by:
getSettingsClass
in interfaceComponentSettingsRegistry
- Parameters:
componentClass
- component class (e.g.TableImpl
)- Returns:
- component settings class
-
getSettingsBinder
- Specified by:
getSettingsBinder
in interfaceComponentSettingsRegistry
- Parameters:
componentClass
- component class (e.g.TableImpl
)- Returns:
- settings binder
-
isSettingsRegisteredFor
- Specified by:
isSettingsRegisteredFor
in interfaceComponentSettingsRegistry
- Parameters:
componentClass
- component class (e.g.TableImpl
)- Returns:
- true if settings is registered for the component class
-
register
-