diff options
author | Artur Signell <artur@vaadin.com> | 2016-08-30 17:16:40 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-08-30 17:19:35 +0300 |
commit | 18be14999dfdd5ed5d2405dbc27fc89242f35dc4 (patch) | |
tree | f02cb5b96527d8b76ada9000cb2fc39118a579fc /compatibility-client | |
parent | a23bf9481cedb7f981a5ff95f6acc19a7c46ffd2 (diff) | |
download | vaadin-framework-18be14999dfdd5ed5d2405dbc27fc89242f35dc4.tar.gz vaadin-framework-18be14999dfdd5ed5d2405dbc27fc89242f35dc4.zip |
Remove Legacy prefix
Change-Id: I8460d2426662d9f8d60d6b7d532e95df33cd95b4
Diffstat (limited to 'compatibility-client')
-rw-r--r-- | compatibility-client/src/main/java/com/vaadin/v7/client/ui/VTextField.java | 6 | ||||
-rw-r--r-- | compatibility-client/src/main/java/com/vaadin/v7/client/ui/textfield/TextFieldConnector.java | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VTextField.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VTextField.java index 36d272644e..ffaec8ad20 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VTextField.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VTextField.java @@ -37,7 +37,7 @@ import com.vaadin.client.BrowserInfo; import com.vaadin.client.WidgetUtil; import com.vaadin.client.ui.Field; import com.vaadin.shared.EventId; -import com.vaadin.v7.shared.ui.textfield.LegacyTextFieldConstants; +import com.vaadin.v7.shared.ui.textfield.TextFieldConstants; /** * This class represents a basic text input field with one row. @@ -158,7 +158,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler, } else { // Default case - just send an immediate text change message client.updateVariable(paintableId, - LegacyTextFieldConstants.VAR_CUR_TEXT, text, true); + TextFieldConstants.VAR_CUR_TEXT, text, true); // Shouldn't investigate valueBeforeEdit to avoid duplicate text // change events as the states are not in sync any more @@ -428,7 +428,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler, int cursorPos = prompting ? 0 : getCursorPos(); if (lastCursorPos != cursorPos) { client.updateVariable(paintableId, - LegacyTextFieldConstants.VAR_CURSOR, cursorPos, false); + TextFieldConstants.VAR_CURSOR, cursorPos, false); lastCursorPos = cursorPos; return true; } diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/textfield/TextFieldConnector.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/textfield/TextFieldConnector.java index 2bb9b37fc8..a7c11cb550 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/textfield/TextFieldConnector.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/textfield/TextFieldConnector.java @@ -27,7 +27,7 @@ import com.vaadin.shared.ui.Connect; import com.vaadin.shared.ui.Connect.LoadStyle; import com.vaadin.v7.client.ui.VTextField; import com.vaadin.v7.shared.ui.textfield.AbstractTextFieldState; -import com.vaadin.v7.shared.ui.textfield.LegacyTextFieldConstants; +import com.vaadin.v7.shared.ui.textfield.TextFieldConstants; import com.vaadin.v7.ui.TextField; @Deprecated @@ -59,13 +59,13 @@ public class TextFieldConnector extends AbstractFieldConnector getWidget().listenTextChangeEvents = hasEventListener("ie"); if (getWidget().listenTextChangeEvents) { getWidget().textChangeEventMode = uidl.getStringAttribute( - LegacyTextFieldConstants.ATTR_TEXTCHANGE_EVENTMODE); + TextFieldConstants.ATTR_TEXTCHANGE_EVENTMODE); if (getWidget().textChangeEventMode - .equals(LegacyTextFieldConstants.TEXTCHANGE_MODE_EAGER)) { + .equals(TextFieldConstants.TEXTCHANGE_MODE_EAGER)) { getWidget().textChangeEventTimeout = 1; } else { getWidget().textChangeEventTimeout = uidl.getIntAttribute( - LegacyTextFieldConstants.ATTR_TEXTCHANGE_TIMEOUT); + TextFieldConstants.ATTR_TEXTCHANGE_TIMEOUT); if (getWidget().textChangeEventTimeout < 1) { // Sanitize and allow lazy/timeout with timeout set to 0 to // work as eager @@ -90,7 +90,7 @@ public class TextFieldConnector extends AbstractFieldConnector */ if (!(Util.getFocusedElement() == getWidget().getElement()) || !uidl.getBooleanAttribute( - LegacyTextFieldConstants.ATTR_NO_VALUE_CHANGE_BETWEEN_PAINTS) + TextFieldConstants.ATTR_NO_VALUE_CHANGE_BETWEEN_PAINTS) || getWidget().valueBeforeEdit == null || !text.equals(getWidget().valueBeforeEdit)) { getWidget().updateFieldContent(text); |