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:
- 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
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 |
LayoutEvents.LayoutClickEvent
public LayoutEvents.LayoutClickEvent(Component source,
MouseEventDetails mouseEventDetails,
Component clickedComponent,
Component childComponent)
getClickedComponent
public 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 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
Component
of the layout which contains
the clicked Component, null if none found
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.