aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/event/ExpandEvent.java
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@gmail.com>2017-06-29 10:18:33 +0300
committerGitHub <noreply@github.com>2017-06-29 10:18:33 +0300
commitb2c0ac2bac558a4bc497fa3a6d29b8f030511e1a (patch)
tree54661aff762131fe847da8e20f5e70f2c5f2bfe0 /server/src/main/java/com/vaadin/event/ExpandEvent.java
parentb0d109fe1d1ad856bc04d2a358065fb2935e75ad (diff)
downloadvaadin-framework-b2c0ac2bac558a4bc497fa3a6d29b8f030511e1a.tar.gz
vaadin-framework-b2c0ac2bac558a4bc497fa3a6d29b8f030511e1a.zip
Use HasUserOriginated interface where appropriate (#9608)
Diffstat (limited to 'server/src/main/java/com/vaadin/event/ExpandEvent.java')
-rw-r--r--server/src/main/java/com/vaadin/event/ExpandEvent.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/server/src/main/java/com/vaadin/event/ExpandEvent.java b/server/src/main/java/com/vaadin/event/ExpandEvent.java
index ea8193dfe0..61642e683f 100644
--- a/server/src/main/java/com/vaadin/event/ExpandEvent.java
+++ b/server/src/main/java/com/vaadin/event/ExpandEvent.java
@@ -29,7 +29,8 @@ import com.vaadin.util.ReflectTools;
* @param <T>
* the expanded item's type
*/
-public class ExpandEvent<T> extends Component.Event {
+public class ExpandEvent<T> extends Component.Event
+ implements HasUserOriginated {
private final T expandedItem;
@@ -62,13 +63,7 @@ public class ExpandEvent<T> extends Component.Event {
return expandedItem;
}
- /**
- * Returns whether this event was triggered by user interaction, on the
- * client side, or programmatically, on the server side.
- *
- * @return {@code true} if this event originates from the client,
- * {@code false} otherwise.
- */
+ @Override
public boolean isUserOriginated() {
return userOriginated;
}