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
ConstructorDescriptionFragmentClickNotifierDependencyInjector
(ReflectionCacheManager reflectionCacheManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getEventTarget
(com.vaadin.flow.component.Composite<?> composite, String target) boolean
isApplicable
(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:
getEventTarget
in classAbstractClickNotifierDependencyInjector
-
isApplicable
Description copied from interface:DependencyInjector
Checks whether this injector can wire the passed injection context.- Parameters:
autowireContext
- injection content that need to be checked- Returns:
true
if the passed injection context can be wired,false
otherwise
-