diff options
author | Marko Grönroos <magi@iki.fi> | 2009-01-11 18:10:57 +0000 |
---|---|---|
committer | Marko Grönroos <magi@iki.fi> | 2009-01-11 18:10:57 +0000 |
commit | 119df7c8c082b1d47bc37e94b582b5661b1a9a64 (patch) | |
tree | 92ec899e45598163eb3aaecefa8ac4f5088652a7 /src | |
parent | 44b97078a88ed061caf28b025d553f1fbfd3f448 (diff) | |
download | vaadin-framework-119df7c8c082b1d47bc37e94b582b5661b1a9a64.tar.gz vaadin-framework-119df7c8c082b1d47bc37e94b582b5661b1a9a64.zip |
Changed + to | operator in layout alignment example in Sampler.
svn changeset:6493/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/demo/sampler/features/layouts/LayoutAlignmentExample.java | 6 |
1 files changed, 3 insertions, 3 deletions
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: |