Package com.vaadin.classic.v8.event
Interface LayoutEvents.LayoutClickNotifier
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbsoluteLayout,AbstractOrderedLayout,FormLayout,GridLayout,HorizontalLayout,VerticalLayout
- Enclosing interface:
- LayoutEvents
public static interface LayoutEvents.LayoutClickNotifier extends java.io.SerializableThe interface for adding and removingLayoutClickEventlisteners. By implementing this interface a class explicitly announces that it will generate aLayoutClickEventwhen a component inside it is clicked and aLayoutClickListeneris registered.Note: The general Java convention is not to explicitly declare that a class generates events, but to directly define the
addListenerandremoveListenermethods. That way the caller of these methods has no real way of finding out if the class really will send the events, or if it just defines the methods to be able to implement an interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.vaadin.flow.shared.RegistrationaddLayoutClickListener(LayoutEvents.LayoutClickListener listener)Add a click listener to the layout.
-
-
-
Method Detail
-
addLayoutClickListener
com.vaadin.flow.shared.Registration addLayoutClickListener(LayoutEvents.LayoutClickListener listener)
Add a click listener to the layout. The listener is called whenever the user clicks inside the layout. An event is also triggered when the click targets a component inside a nested layout or Panel, provided the targeted component does not prevent the click event from propagating. A caption is not considered part of a component.The child component that was clicked is included in the
LayoutEvents.LayoutClickEvent.- Parameters:
listener- The listener to add- Returns:
- a registration object for removing the listener
- See Also:
Registration
-
-