Package io.jmix.ui.sys
Class UiControllerPropertyInjector
java.lang.Object
io.jmix.ui.sys.UiControllerPropertyInjector
@Component("ui_UiControllerPropertyInjector")
@Scope("prototype")
public class UiControllerPropertyInjector
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected final FrameOwner
protected final List<UiControllerProperty>
protected UiControllerReflectionInspector
protected final Screen
-
Constructor Summary
ConstructorDescriptionUiControllerPropertyInjector
(FrameOwner frameOwner, Screen sourceScreen, List<UiControllerProperty> properties) Creates UiControllerPropertyInjector to inject properties intoScreenFacet
.UiControllerPropertyInjector
(FrameOwner frameOwner, List<UiControllerProperty> properties) Creates UiControllerPropertyInjector to inject properties into fragments -
Method Summary
Modifier and TypeMethodDescriptionprotected Component
findComponent
(String componentId) protected InstanceContainer
findDataContainer
(String containerId) protected DataLoader
findLoader
(String loaderId) protected Object
findObjectByRef
(UiControllerProperty property, Class<?> propType) protected Method
findSuitableSetter
(String propName) protected String
getSetterName
(String name) void
inject()
protected Object
parseParamValue
(UiControllerProperty property, Class<?> propType) protected Object
parsePrimitive
(UiControllerProperty property, Class propType) void
setReflectionInspector
(UiControllerReflectionInspector reflectionInspector)
-
Field Details
-
frameOwner
-
sourceScreen
-
properties
-
reflectionInspector
-
-
Constructor Details
-
UiControllerPropertyInjector
Creates UiControllerPropertyInjector to inject properties into fragments- Parameters:
frameOwner
- target screenproperties
- properties to inject
-
UiControllerPropertyInjector
public UiControllerPropertyInjector(FrameOwner frameOwner, Screen sourceScreen, List<UiControllerProperty> properties) Creates UiControllerPropertyInjector to inject properties intoScreenFacet
.- Parameters:
frameOwner
- target screensourceScreen
- source screen that is used to load ref propertiesproperties
- properties to inject
-
-
Method Details
-
setReflectionInspector
-
inject
public void inject() -
findSuitableSetter
-
parseParamValue
-
parsePrimitive
-
findObjectByRef
-
getSetterName
-
findComponent
-
findDataContainer
-
findLoader
-