diff options
author | Per-Åke Minborg <minborg@speedment.com> | 2016-10-28 16:01:40 -0700 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-11-07 06:56:41 +0000 |
commit | 25eba3c79655287027301b844d74a92812fc741a (patch) | |
tree | 29ced9523bad5c84cdbbec9554e151c53f7e06ac /server/src/main/java/com/vaadin/ui/AbstractOrderedLayout.java | |
parent | d2e69d55b70e5a1c8396daeb329a0f981017b6de (diff) | |
download | vaadin-framework-25eba3c79655287027301b844d74a92812fc741a.tar.gz vaadin-framework-25eba3c79655287027301b844d74a92812fc741a.zip |
Use lambdas where appropriate
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf722d
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/AbstractOrderedLayout.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/AbstractOrderedLayout.java | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/server/src/main/java/com/vaadin/ui/AbstractOrderedLayout.java b/server/src/main/java/com/vaadin/ui/AbstractOrderedLayout.java index f4fadeacfb..6c995611fb 100644 --- a/server/src/main/java/com/vaadin/ui/AbstractOrderedLayout.java +++ b/server/src/main/java/com/vaadin/ui/AbstractOrderedLayout.java @@ -44,14 +44,10 @@ public abstract class AbstractOrderedLayout extends AbstractLayout implements Layout.AlignmentHandler, Layout.SpacingHandler, LayoutClickNotifier, Layout.MarginHandler { - private AbstractOrderedLayoutServerRpc rpc = new AbstractOrderedLayoutServerRpc() { - - @Override - public void layoutClick(MouseEventDetails mouseDetails, - Connector clickedConnector) { - fireEvent(LayoutClickEvent.createEvent(AbstractOrderedLayout.this, - mouseDetails, clickedConnector)); - } + private final AbstractOrderedLayoutServerRpc rpc = ( + MouseEventDetails mouseDetails, Connector clickedConnector) -> { + fireEvent(LayoutClickEvent.createEvent(AbstractOrderedLayout.this, + mouseDetails, clickedConnector)); }; public static final Alignment ALIGNMENT_DEFAULT = Alignment.TOP_LEFT; @@ -507,8 +503,7 @@ public abstract class AbstractOrderedLayout extends AbstractLayout // write default attributes super.writeDesign(design, designContext); - AbstractOrderedLayout def = designContext - .getDefaultInstance(this); + AbstractOrderedLayout def = designContext.getDefaultInstance(this); writeMargin(design, getMargin(), def.getMargin(), designContext); |