aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java
diff options
context:
space:
mode:
authorJani Laakso <jani.laakso@itmill.com>2007-12-04 19:51:22 +0000
committerJani Laakso <jani.laakso@itmill.com>2007-12-04 19:51:22 +0000
commit3b5793fd5540f8eee3c9a0ef49e2688c9505920c (patch)
treec60d8b56d5f2fe2772e2728f7ac639f3ff780af1 /src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java
parent2bfeca0498c879c11f11a54a22ad87cccdaa78c2 (diff)
downloadvaadin-framework-3b5793fd5540f8eee3c9a0ef49e2688c9505920c.tar.gz
vaadin-framework-3b5793fd5540f8eee3c9a0ef49e2688c9505920c.zip
License header parametrized
Cleanup performed Organized imports Format svn changeset:3162/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java')
-rw-r--r--src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java b/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java
index c83db8b2a0..b7a02f3161 100644
--- a/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java
+++ b/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java
@@ -1,3 +1,7 @@
+/*
+@ITMillApache2LicenseForJavaFiles@
+ */
+
package com.itmill.toolkit.demo.featurebrowser;
import com.itmill.toolkit.ui.ComboBox;
@@ -21,12 +25,12 @@ public class ComboBoxExample extends CustomComponent {
"Fielding", "Einstein" };
public ComboBoxExample() {
- OrderedLayout main = new OrderedLayout();
+ final OrderedLayout main = new OrderedLayout();
main.setMargin(true);
setCompositionRoot(main);
// starts-with filter
- ComboBox s1 = new ComboBox("Select with starts-with filter");
+ final ComboBox s1 = new ComboBox("Select with starts-with filter");
s1.setFilteringMode(Filtering.FILTERINGMODE_STARTSWITH);
s1.setColumns(20);
for (int i = 0; i < 105; i++) {
@@ -39,7 +43,7 @@ public class ComboBoxExample extends CustomComponent {
main.addComponent(s1);
// contains filter
- ComboBox s2 = new ComboBox("Select with contains filter");
+ final ComboBox s2 = new ComboBox("Select with contains filter");
s2.setFilteringMode(Filtering.FILTERINGMODE_CONTAINS);
s2.setColumns(20);
for (int i = 0; i < 500; i++) {
@@ -52,7 +56,7 @@ public class ComboBoxExample extends CustomComponent {
main.addComponent(s2);
// initially empty
- ComboBox s3 = new ComboBox("Initially empty; enter your own");
+ final ComboBox s3 = new ComboBox("Initially empty; enter your own");
s3.setColumns(20);
s3.setImmediate(true);
main.addComponent(s3);