Package com.vaadin.copilot
Class ComponentEventCollector.ComponentEvent
java.lang.Object
com.vaadin.copilot.ComponentEventCollector.ComponentEvent
- Enclosing class:
ComponentEventCollector
Describes an event listener method discovered on a component type.
-
Field Details
-
EMPTY_LISTENER_BODY_TEMPLATE
The empty listener body every event is offered with.Java source, which the Java rewriter writes as it stands. A rewriter for any other language has to recognise it and emit its own idiom instead —
KotlinRewriter.addCallwrites a trailing lambda — so this is named rather than inlined, to give that coupling somewhere to be asserted. #9792 is about removing the need for it.- See Also:
-
-
Constructor Details
-
ComponentEvent
public ComponentEvent(String methodName, String humanReadableLabel, String parameterTemplate, String declaringTypeFullName, String declaringTypeBaseName) Creates a new event description.- Parameters:
methodName- listener method name (e.g.addClickListener)humanReadableLabel- human-friendly label derived from the method nameparameterTemplate- a template snippet used when generating handler codedeclaringTypeFullName- fully qualified name of the declaring typedeclaringTypeBaseName- simple name of the declaring type
-
-
Method Details