Package com.vaadin.classic.v8.event
Class LayoutEvents.LayoutClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.Component>
-
- com.vaadin.classic.v8.ui.Event
-
- com.vaadin.classic.v8.event.MouseEvents.ClickEvent
-
- com.vaadin.classic.v8.event.LayoutEvents.LayoutClickEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing interface:
- LayoutEvents
public static class LayoutEvents.LayoutClickEvent extends MouseEvents.ClickEvent
An event fired when the layout has been clicked. The event contains information about the target layout (component) and the child component that was clicked. If no child component was found it is set to null.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LayoutClickEvent(com.vaadin.flow.component.Component source, boolean fromClient, int clientX, int clientY, int clickCount, int button, boolean ctrlKey, boolean shiftKey, boolean altKey, boolean metaKey, int relativeX, int relativeY, com.vaadin.flow.dom.Element eventTarget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.ComponentgetChildComponent()Returns the direct child component of the layout which contains the clicked component.com.vaadin.flow.component.ComponentgetClickedComponent()Returns the component that was clicked, which is somewhere inside the parent layout on which the listener was registered.-
Methods inherited from class com.vaadin.classic.v8.event.MouseEvents.ClickEvent
getButton, getButtonName, getClientX, getClientY, getComponent, getMouseEventDetails, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey
-
-
-
-
Constructor Detail
-
LayoutClickEvent
public LayoutClickEvent(com.vaadin.flow.component.Component source, boolean fromClient, @EventData("event.clientX") int clientX, @EventData("event.clientY") int clientY, @EventData("event.detail") int clickCount, @EventData("event.button") int button, @EventData("event.ctrlKey") boolean ctrlKey, @EventData("event.shiftKey") boolean shiftKey, @EventData("event.altKey") boolean altKey, @EventData("event.metaKey") boolean metaKey, @EventData("event.clientX - element.getBoundingClientRect().x") int relativeX, @EventData("event.clientY - element.getBoundingClientRect().y") int relativeY, @EventData("event.target") com.vaadin.flow.dom.Element eventTarget)
-
-
Method Detail
-
getClickedComponent
public com.vaadin.flow.component.Component 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, see
getChildComponent().- Returns:
- clicked
Component, null if none found
-
getChildComponent
public com.vaadin.flow.component.Component 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, see
getClickedComponent().- Returns:
- direct child
Componentof the layout which contains the clicked Component, null if none found
-
-