We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.event.
Class LayoutEvents.LayoutClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.ui.Component.Event
com.vaadin.event.MouseEvents.ClickEvent
com.vaadin.event.LayoutEvents.LayoutClickEvent
All Implemented Interfaces:
Enclosing interface:
- extends MouseEvents.ClickEvent
public static class LayoutEvents.LayoutClickEvent
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:
Field Summary |
---|
Fields inherited from class com.vaadin.event.MouseEvents.ClickEvent |
---|
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
LayoutEvents.LayoutClickEvent(Component source,
MouseEventDetails mouseEventDetails,
Component clickedComponent,
Component childComponent)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.vaadin.event.MouseEvents.ClickEvent |
---|
getButton, getButtonName, getClientX, getClientY, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey |
Methods inherited from class com.vaadin.ui.Component.Event |
---|
getComponent |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
LayoutEvents.LayoutClickEvent
public LayoutEvents.LayoutClickEvent(Component source,
MouseEventDetails mouseEventDetails,
Component clickedComponent,
Component childComponent)
Method Detail |
---|
getClickedComponent
public Component getClickedComponent()
- Returns:
- clicked
Component
, null if none found
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()
.
getChildComponent
public Component getChildComponent()
- Returns:
- direct child
Component
of the layout which contains the clicked Component, null if none found
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()
.