aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java b/uitest/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java
new file mode 100644
index 0000000000..403b82a2a7
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/datefield/DisabledDateFieldWidth.java
@@ -0,0 +1,43 @@
+package com.vaadin.tests.components.datefield;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
+import com.vaadin.ui.DateField;
+import com.vaadin.ui.GridLayout;
+
+public class DisabledDateFieldWidth extends TestBase {
+ @Override
+ public void setup() {
+
+ final DateField dateField1 = new DateField("DateField");
+ dateField1.setResolution(DateField.RESOLUTION_YEAR);
+ dateField1.setEnabled(false);
+
+ Button button = new Button("Repaint datefield",
+ new Button.ClickListener() {
+ @Override
+ public void buttonClick(ClickEvent event) {
+ dateField1.markAsDirty();
+ }
+ });
+
+ GridLayout gl = new GridLayout(3, 1);
+ gl.addComponent(dateField1);
+ gl.addComponent(button);
+
+ addComponent(gl);
+ }
+
+ @Override
+ protected String getDescription() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+}