diff options
author | Leif Åstrand <legioth@gmail.com> | 2018-01-12 13:49:45 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-01-12 13:49:45 +0200 |
commit | c905ac6adf1aeb3ff4f3b15ae6e5344a7ea3d490 (patch) | |
tree | 9e562e950a8fd9860422165ad84bb77e9558d4be /server | |
parent | b45f30685df11bccbb9c42ae8415bc9b28673166 (diff) | |
download | vaadin-framework-c905ac6adf1aeb3ff4f3b15ae6e5344a7ea3d490.tar.gz vaadin-framework-c905ac6adf1aeb3ff4f3b15ae6e5344a7ea3d490.zip |
Rename widgetEventsAllowed to handleWidgetEvents (#10529)
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Grid.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index 803ac58b58..3a18de05c6 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -2065,16 +2065,14 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, * {@link ComboBox} or {@link TextField} it might be problematic as the * component gets re-rendered and might lose focus. * - * @param widgetEventsAllowed + * @param handleWidgetEvents * {@code true} to handle events; {@code false} to not * @return this column * @since 8.3 */ - public Column<T, V> setWidgetEventsAllowed( - boolean widgetEventsAllowed) { - if (getState(false).widgetEventsAllowed != widgetEventsAllowed) { - getState().widgetEventsAllowed = widgetEventsAllowed; - } + public Column<T, V> setHandleWidgetEvents( + boolean handleWidgetEvents) { + getState().handleWidgetEvents = handleWidgetEvents; return this; } @@ -2082,13 +2080,13 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, * Gets whether Grid is handling the events in this Column from * Component and Widgets. * - * @see #setWidgetEventsAllowed(boolean) + * @see #setHandleWidgetEvents(boolean) * * @return {@code true} if handling events; {@code false} if not * @since 8.3 */ - public boolean isWidgetEventsAllowed() { - return getState(false).widgetEventsAllowed; + public boolean isHandleWidgetEvents() { + return getState(false).handleWidgetEvents; } /** |