From: Marko Grönroos Date: Sun, 11 Jan 2009 18:10:57 +0000 (+0000) Subject: Changed + to | operator in layout alignment example in Sampler. X-Git-Tag: 6.7.0.beta1~3364 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=119df7c8c082b1d47bc37e94b582b5661b1a9a64;p=vaadin-framework.git Changed + to | operator in layout alignment example in Sampler. svn changeset:6493/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutAlignmentExample.java b/src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutAlignmentExample.java index be5fa6aef8..b45d2ad608 100644 --- a/src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutAlignmentExample.java +++ b/src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutAlignmentExample.java @@ -54,15 +54,15 @@ public class LayoutAlignmentExample extends VerticalLayout { Button middleleft = new Button("Middle Left"); grid.addComponent(middleleft, 0, 1); - grid.setComponentAlignment(middleleft, new Alignment(Bits.ALIGNMENT_VERTICAL_CENTER + Bits.ALIGNMENT_LEFT)); + grid.setComponentAlignment(middleleft, new Alignment(Bits.ALIGNMENT_VERTICAL_CENTER | Bits.ALIGNMENT_LEFT)); Button middlecenter = new Button("Middle Center"); grid.addComponent(middlecenter, 1, 1); - grid.setComponentAlignment(middlecenter, new Alignment(Bits.ALIGNMENT_VERTICAL_CENTER + Bits.ALIGNMENT_HORIZONTAL_CENTER)); + grid.setComponentAlignment(middlecenter, new Alignment(Bits.ALIGNMENT_VERTICAL_CENTER | Bits.ALIGNMENT_HORIZONTAL_CENTER)); Button middleright = new Button("Middle Right"); grid.addComponent(middleright, 2, 1); - grid.setComponentAlignment(middleright, new Alignment(Bits.ALIGNMENT_VERTICAL_CENTER + Bits.ALIGNMENT_RIGHT)); + grid.setComponentAlignment(middleright, new Alignment(Bits.ALIGNMENT_VERTICAL_CENTER | Bits.ALIGNMENT_RIGHT)); // Here we again use constants: