Package io.jmix.ui.sys
Class UiComponentsImpl
java.lang.Object
io.jmix.ui.sys.UiComponentsImpl
- All Implemented Interfaces:
UiComponents
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected DatatypeRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
autowireContext
(Component instance) <T extends Component>
TCreate a component instance by its type.<T extends Component>
TCreate a component instance by its name.<T extends Component>
Tcreate
(org.springframework.core.ParameterizedTypeReference<T> typeReference) Create a component instance by its type.protected String
getComponentName
(Class<?> type) protected String
getMessageGroup
(String descriptorPath) protected String
getPackage
(Class<? extends Component> componentClass) protected void
initCompositeComponent
(Component instance, Class<? extends Component> componentClass) boolean
isComponentRegistered
(Class<?> type) Checks that a component with given type is registered.boolean
isComponentRegistered
(String name) Checks that a component with given name is registered.protected Component
processCompositeDescriptor
(Class<? extends Component> componentClass, String descriptorPath) void
-
Field Details
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext -
datatypeRegistry
-
classes
-
names
-
-
Constructor Details
-
UiComponentsImpl
public UiComponentsImpl()
-
-
Method Details
-
create
Description copied from interface:UiComponents
Create a component instance by its name.- Specified by:
create
in interfaceUiComponents
- Parameters:
name
- component name. It is usually defined in NAME constant inside the component interface, e.g.Label.NAME
. It is also usually equal to component's XML name.- Returns:
- component instance
-
create
Description copied from interface:UiComponents
Create a component instance by its type.- Specified by:
create
in interfaceUiComponents
- Parameters:
type
- component type- Returns:
- component instance
-
create
public <T extends Component> T create(org.springframework.core.ParameterizedTypeReference<T> typeReference) Description copied from interface:UiComponents
Create a component instance by its type.- Specified by:
create
in interfaceUiComponents
- Parameters:
typeReference
- component type reference- Returns:
- component instance
- See Also:
-
isComponentRegistered
Description copied from interface:UiComponents
Checks that a component with given name is registered.- Specified by:
isComponentRegistered
in interfaceUiComponents
- Parameters:
name
- component name. It is usually defined in NAME constant inside the component interface, e.g.Label.NAME
. It is also usually equal to component's XML name.- Returns:
- true if the component is registered
-
isComponentRegistered
Description copied from interface:UiComponents
Checks that a component with given type is registered.- Specified by:
isComponentRegistered
in interfaceUiComponents
- Parameters:
type
- component type reference- Returns:
- true if the component is registered
-
getComponentName
-
autowireContext
-
initCompositeComponent
-
getPackage
-
processCompositeDescriptor
-
getMessageGroup
-
register
-