public static class LayoutEvents.LayoutClickEvent extends MouseEvents.ClickEvent
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHTsource| Constructor and Description |
|---|
LayoutClickEvent(Component source,
MouseEventDetails mouseEventDetails,
Component clickedComponent,
Component childComponent) |
| Modifier and Type | Method and Description |
|---|---|
static LayoutEvents.LayoutClickEvent |
createEvent(ComponentContainer layout,
MouseEventDetails mouseDetails,
Connector clickedConnector) |
Component |
getChildComponent()
Returns the direct child component of the layout which contains the
clicked component.
|
Component |
getClickedComponent()
Returns the component that was clicked, which is somewhere inside the
parent layout on which the listener was registered.
|
getButton, getButtonName, getClientX, getClientY, getMouseEventDetails, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKeygetComponentgetConnectorgetSource, toStringpublic LayoutClickEvent(Component source, MouseEventDetails mouseEventDetails, Component clickedComponent, Component childComponent)
public Component getClickedComponent()
getChildComponent().Component, null if none foundpublic Component getChildComponent()
getClickedComponent().Component of the layout which contains
the clicked Component, null if none foundpublic static LayoutEvents.LayoutClickEvent createEvent(ComponentContainer layout, MouseEventDetails mouseDetails, Connector clickedConnector)
Copyright © 2020 Vaadin Ltd. All rights reserved.