Package io.jmix.flowui.sys.autowire
Class FragmentClickNotifierDependencyInjector
java.lang.Object
io.jmix.flowui.sys.autowire.AbstractClickNotifierDependencyInjector
io.jmix.flowui.sys.autowire.FragmentClickNotifierDependencyInjector
- All Implemented Interfaces:
DependencyInjector
@Order(900)
@Component("flowui_FragmentClickNotifierDependencyInjector")
public class FragmentClickNotifierDependencyInjector
extends AbstractClickNotifierDependencyInjector
A special injector that autowired click listener methods that are annotated by the
Subscribe annotation.
That clicks can be default, double or single. Methods for adding listeners have the same signature, which in
the injection mechanism is perceived as the same method.- See Also:
-
ClickNotifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.sys.autowire.DependencyInjector
DependencyInjector.AutowireContext<T extends com.vaadin.flow.component.Composite<?>> -
Field Summary
Fields inherited from class io.jmix.flowui.sys.autowire.AbstractClickNotifierDependencyInjector
DEFAULT_CLICK_LISTENER_METHOD_NAME, reflectionCacheManager -
Constructor Summary
ConstructorsConstructorDescriptionFragmentClickNotifierDependencyInjector(ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetEventTarget(com.vaadin.flow.component.Composite<?> composite, String target) booleanisApplicable(DependencyInjector.AutowireContext<?> autowireContext) Checks whether this injector can wire the passed injection context.Methods inherited from class io.jmix.flowui.sys.autowire.AbstractClickNotifierDependencyInjector
autowire, convertSubjectToMethodName, doAutowiring
-
Constructor Details
-
FragmentClickNotifierDependencyInjector
-
-
Method Details
-
getEventTarget
- Specified by:
getEventTargetin classAbstractClickNotifierDependencyInjector
-
isApplicable
Description copied from interface:DependencyInjectorChecks whether this injector can wire the passed injection context.- Parameters:
autowireContext- injection content that need to be checked- Returns:
trueif the passed injection context can be wired,falseotherwise
-