public interface UiComponents
ApplicationContext
.Modifier and Type | Method and Description |
---|---|
<T extends Component> |
create(java.lang.Class<T> type)
Create a component instance by its type.
|
<T extends Component> |
create(org.springframework.core.ParameterizedTypeReference<T> type)
Create a component instance by its type.
|
<T extends Component> |
create(java.lang.String name)
Create a component instance by its name.
|
boolean |
isComponentRegistered(java.lang.Class<?> type)
Checks that a component with given type is registered.
|
boolean |
isComponentRegistered(java.lang.String name)
Checks that a component with given name is registered.
|
<T extends Component> T create(java.lang.String name)
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.<T extends Component> T create(java.lang.Class<T> type)
type
- component type<T extends Component> T create(org.springframework.core.ParameterizedTypeReference<T> type)
type
- component type referenceLabel.TYPE_DEFAULT
,
TextField.TYPE_DEFAULT
boolean isComponentRegistered(java.lang.String name)
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.boolean isComponentRegistered(java.lang.Class<?> type)
type
- component type reference