Package io.jmix.ui.component
Class LayoutClickNotifier.LayoutClickEvent
java.lang.Object
java.util.EventObject
io.jmix.ui.component.LayoutClickNotifier.LayoutClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- LayoutClickNotifier
Event sent when a user clicks mouse inside the layout.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionLayoutClickEvent
(HasComponents layout, Component childComponent, Component clickedComponent, MouseEventDetails mouseEventDetails) -
Method Summary
Modifier and TypeMethodDescriptionReturns the direct child component of the layout which contains the clicked component.Returns the component that was clicked, which is somewhere inside the parent layout on which the listener was registered.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
LayoutClickEvent
public LayoutClickEvent(HasComponents layout, @Nullable Component childComponent, @Nullable Component clickedComponent, MouseEventDetails mouseEventDetails)
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getChildComponent
Returns the direct child component of the layout which contains the clicked component. For the clicked component inside that child component of the layout, seegetClickedComponent()
.- Returns:
- direct child Component of the layout which contains the clicked Component, null if none found
-
getMouseEventDetails
-
getClickedComponent
Returns the component that was clicked, which is somewhere inside the parent layout on which the listener was registered. For the direct child component of the layout, seegetChildComponent()
.- Returns:
- clicked Component, null if none found
-