summaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-08-30 17:16:40 +0300
committerArtur Signell <artur@vaadin.com>2016-08-30 17:19:35 +0300
commit18be14999dfdd5ed5d2405dbc27fc89242f35dc4 (patch)
treef02cb5b96527d8b76ada9000cb2fc39118a579fc /compatibility-server
parenta23bf9481cedb7f981a5ff95f6acc19a7c46ffd2 (diff)
downloadvaadin-framework-18be14999dfdd5ed5d2405dbc27fc89242f35dc4.tar.gz
vaadin-framework-18be14999dfdd5ed5d2405dbc27fc89242f35dc4.zip
Remove Legacy prefix
Change-Id: I8460d2426662d9f8d60d6b7d532e95df33cd95b4
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractTextField.java16
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/TextArea.java10
2 files changed, 13 insertions, 13 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractTextField.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractTextField.java
index f72ee383e5..c9843de648 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractTextField.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractTextField.java
@@ -37,7 +37,7 @@ import com.vaadin.v7.event.FieldEvents.TextChangeEvent;
import com.vaadin.v7.event.FieldEvents.TextChangeListener;
import com.vaadin.v7.event.FieldEvents.TextChangeNotifier;
import com.vaadin.v7.shared.ui.textfield.AbstractTextFieldState;
-import com.vaadin.v7.shared.ui.textfield.LegacyTextFieldConstants;
+import com.vaadin.v7.shared.ui.textfield.TextFieldConstants;
@Deprecated
public abstract class AbstractTextField extends AbstractField<String> implements
@@ -130,10 +130,10 @@ public abstract class AbstractTextField extends AbstractField<String> implements
if (hasListeners(TextChangeEvent.class)) {
target.addAttribute(
- LegacyTextFieldConstants.ATTR_TEXTCHANGE_EVENTMODE,
+ TextFieldConstants.ATTR_TEXTCHANGE_EVENTMODE,
getTextChangeEventMode().toString());
target.addAttribute(
- LegacyTextFieldConstants.ATTR_TEXTCHANGE_TIMEOUT,
+ TextFieldConstants.ATTR_TEXTCHANGE_TIMEOUT,
getTextChangeTimeout());
if (lastKnownTextContent != null) {
/*
@@ -144,7 +144,7 @@ public abstract class AbstractTextField extends AbstractField<String> implements
* the actual value, depending on its state.
*/
target.addAttribute(
- LegacyTextFieldConstants.ATTR_NO_VALUE_CHANGE_BETWEEN_PAINTS,
+ TextFieldConstants.ATTR_NO_VALUE_CHANGE_BETWEEN_PAINTS,
true);
}
}
@@ -169,13 +169,13 @@ public abstract class AbstractTextField extends AbstractField<String> implements
setWidth(newWidth);
}
- if (variables.containsKey(LegacyTextFieldConstants.VAR_CURSOR)) {
+ if (variables.containsKey(TextFieldConstants.VAR_CURSOR)) {
Integer object = (Integer) variables
- .get(LegacyTextFieldConstants.VAR_CURSOR);
+ .get(TextFieldConstants.VAR_CURSOR);
lastKnownCursorPosition = object.intValue();
}
- if (variables.containsKey(LegacyTextFieldConstants.VAR_CUR_TEXT)) {
+ if (variables.containsKey(TextFieldConstants.VAR_CUR_TEXT)) {
/*
* NOTE, we might want to develop this further so that on a
* value change event the whole text content don't need to be
@@ -478,7 +478,7 @@ public abstract class AbstractTextField extends AbstractField<String> implements
* Also on value change events we could use the mechanism.
*/
String object = (String) variables
- .get(LegacyTextFieldConstants.VAR_CUR_TEXT);
+ .get(TextFieldConstants.VAR_CUR_TEXT);
lastKnownTextContent = object;
textChangeEventPending = true;
}
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/TextArea.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/TextArea.java
index b1f50859d6..8375649716 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/TextArea.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/TextArea.java
@@ -21,7 +21,7 @@ import org.jsoup.nodes.Element;
import com.vaadin.ui.declarative.DesignContext;
import com.vaadin.ui.declarative.DesignFormatter;
import com.vaadin.v7.data.Property;
-import com.vaadin.v7.shared.ui.textarea.LegacyTextAreaState;
+import com.vaadin.v7.shared.ui.textarea.TextAreaState;
/**
* A text field that supports multi line editing.
@@ -85,13 +85,13 @@ public class TextArea extends AbstractTextField {
}
@Override
- protected LegacyTextAreaState getState() {
- return (LegacyTextAreaState) super.getState();
+ protected TextAreaState getState() {
+ return (TextAreaState) super.getState();
}
@Override
- protected LegacyTextAreaState getState(boolean markAsDirty) {
- return (LegacyTextAreaState) super.getState(markAsDirty);
+ protected TextAreaState getState(boolean markAsDirty) {
+ return (TextAreaState) super.getState(markAsDirty);
}
/**