package com.vaadin.tests.components.nativeselect; import java.util.LinkedHashMap; import com.vaadin.tests.components.select.AbstractSelectTestCase; import com.vaadin.ui.NativeSelect; public class NativeSelects extends AbstractSelectTestCase { @Override protected Class getTestClass() { return NativeSelect.class; } @Override protected void createActions() { super.createActions(); createColumnSelectAction(); } private void createColumnSelectAction() { LinkedHashMap options = new LinkedHashMap(); options.put("-", 0); for (int i = 1; i <= 10; i++) { options.put(String.valueOf(i), i); } options.put("50", 50); options.put("100", 100); options.put("1000", 1000); super.createSelectAction("Columns", CATEGORY_DATA_SOURCE, options, "-", columnsAction); } private Command columnsAction = new Command() { @Override public void execute(NativeSelect c, Integer value, Object data) { c.setColumns(value); } }; }