diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2026.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket2026.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2026.java b/uitest/src/com/vaadin/tests/tickets/Ticket2026.java new file mode 100644 index 0000000000..0b72073bec --- /dev/null +++ b/uitest/src/com/vaadin/tests/tickets/Ticket2026.java @@ -0,0 +1,35 @@ +package com.vaadin.tests.tickets; + +import com.vaadin.Application; +import com.vaadin.ui.GridLayout; +import com.vaadin.ui.UI.LegacyWindow; +import com.vaadin.ui.TextField; + +public class Ticket2026 extends Application.LegacyApplication { + + @Override + public void init() { + LegacyWindow w = new LegacyWindow(getClass().getSimpleName()); + setMainWindow(w); + + GridLayout layout = new GridLayout(2, 2); + layout.setSpacing(true); + + @SuppressWarnings("unused") + int nr = 5; + TextField tf; + tf = new TextField("TextField (tabIndex 1)"); + tf.setTabIndex(1); + tf.focus(); + layout.addComponent(tf); + layout.addComponent(new TextField("TextField without tab index")); + layout.addComponent(new TextField("TextField without tab index")); + layout.addComponent(new TextField("TextField without tab index")); + layout.addComponent(new TextField("TextField without tab index")); + tf = new TextField("TextField (tabIndex 2)"); + tf.setTabIndex(2); + layout.addComponent(tf); + + w.setContent(layout); + } +} |