summaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java
diff options
context:
space:
mode:
authorAnastasia Smirnova <anasmi@utu.fi>2018-03-13 02:20:58 -1200
committerIlia Motornyi <elmot@vaadin.com>2018-03-13 17:20:58 +0300
commit4fc7530ded4a3775e3e9c7343e026a624ce00079 (patch)
tree6af9607b4270ac6ba6f04d686ceaab89bf627413 /uitest/src/main/java
parente813c97e0bdc00c5542c9bf0f55eef65f34ac093 (diff)
downloadvaadin-framework-4fc7530ded4a3775e3e9c7343e026a624ce00079.tar.gz
vaadin-framework-4fc7530ded4a3775e3e9c7343e026a624ce00079.zip
Native select add 'disabled' attribute (#10710)
* Adding disabled attribute to the NativeSelect * Merge branch 'master' into nativeSelectDisabled * Merge branch 'master' into nativeSelectDisabled * Correct formatting issues
Diffstat (limited to 'uitest/src/main/java')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/components/nativeselect/NativeSelectDisabled.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/nativeselect/NativeSelectDisabled.java b/uitest/src/main/java/com/vaadin/tests/components/nativeselect/NativeSelectDisabled.java
new file mode 100644
index 0000000000..885b701517
--- /dev/null
+++ b/uitest/src/main/java/com/vaadin/tests/components/nativeselect/NativeSelectDisabled.java
@@ -0,0 +1,27 @@
+package com.vaadin.tests.components.nativeselect;
+
+import com.vaadin.annotations.Widgetset;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.tests.components.AbstractTestUI;
+import com.vaadin.ui.NativeSelect;
+
+/**
+ * @author Vaadin Ltd
+ *
+ */
+@Widgetset("com.vaadin.DefaultWidgetSet")
+public class NativeSelectDisabled extends AbstractTestUI {
+
+ @Override
+ protected void setup(VaadinRequest request) {
+ NativeSelect<String> select = new NativeSelect<>();
+ select.setItems("Foo", "Bar");
+ select.setValue("Bar");
+ select.setEnabled(false);
+ addButton("Set Enabled/Disabled", event -> {
+ select.setEnabled(!select.isEnabled());
+ });
+ addComponent(select);
+ }
+
+}