summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/minitutorials
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/minitutorials')
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
index be2768a5f7..8485bba499 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/FormatTableValue.java
@@ -3,7 +3,7 @@ package com.vaadin.tests.minitutorials.v7a1;
import java.text.NumberFormat;
import java.util.Locale;
-import com.vaadin.data.util.converter.StringToNumberConverter;
+import com.vaadin.data.util.converter.StringToDoubleConverter;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Table;
@@ -30,14 +30,14 @@ public class FormatTableValue extends AbstractTestUI {
table.getItem(itemId).getItemProperty(DEFAULT_PROPERTY)
.setValue(3.1415);
- table.setConverter(PERCENT_PROPERTY, new StringToNumberConverter() {
+ table.setConverter(PERCENT_PROPERTY, new StringToDoubleConverter() {
@Override
protected NumberFormat getFormat(Locale locale) {
return NumberFormat.getPercentInstance(locale);
}
});
- table.setConverter(CURRENCY_PROPERTY, new StringToNumberConverter() {
+ table.setConverter(CURRENCY_PROPERTY, new StringToDoubleConverter() {
@Override
protected NumberFormat getFormat(Locale locale) {
return NumberFormat.getCurrencyInstance(locale);