Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ public ComponentEvent(T source, boolean fromClient, UI ui) {
this.ui = ui;
}

/**
* Returns the component on which the listener has been attached.
* <p>
* This is the component the listener was registered with, not a nested
* child where a browser event may first have occurred. For example, if a
* listener is added to a layout that contains a checkbox,
* {@code getSource()} returns the layout, not the checkbox.
*
* @return the component on which the listener has been attached
*/
@SuppressWarnings("unchecked")
@Override
public T getSource() {
Expand Down
Loading