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
FieldsModifier and TypeFieldDescriptionprotected final FrameOwnerprotected final List<UiControllerProperty>protected UiControllerReflectionInspectorprotected final Screen -
Constructor Summary
ConstructorsConstructorDescriptionUiControllerPropertyInjector(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 ComponentfindComponent(String componentId) protected InstanceContainerfindDataContainer(String containerId) protected DataLoaderfindLoader(String loaderId) protected ObjectfindObjectByRef(UiControllerProperty property, Class<?> propType) protected MethodfindSuitableSetter(String propName) protected StringgetSetterName(String name) voidinject()protected ObjectparseParamValue(UiControllerProperty property, Class<?> propType) protected ObjectparsePrimitive(UiControllerProperty property, Class propType) voidsetReflectionInspector(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
-