From 24a888a2d1dc198d1d88c9e0dbdde1cfe8b0a7f1 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 25 Aug 2016 13:08:17 +0300 Subject: Move old PasswordField to compatibility package Change-Id: I8db672100e06cbe2eb53de2b0ec2a98b8febe70b --- .../ui/passwordfield/PasswordFieldConnector.java | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 compatibility-client/src/main/java/com/vaadin/client/v7/ui/passwordfield/PasswordFieldConnector.java (limited to 'compatibility-client/src') diff --git a/compatibility-client/src/main/java/com/vaadin/client/v7/ui/passwordfield/PasswordFieldConnector.java b/compatibility-client/src/main/java/com/vaadin/client/v7/ui/passwordfield/PasswordFieldConnector.java new file mode 100644 index 0000000000..42a233011b --- /dev/null +++ b/compatibility-client/src/main/java/com/vaadin/client/v7/ui/passwordfield/PasswordFieldConnector.java @@ -0,0 +1,32 @@ +/* + * Copyright 2000-2016 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package com.vaadin.client.v7.ui.passwordfield; + +import com.vaadin.client.v7.ui.VLegacyPasswordField; +import com.vaadin.client.v7.ui.textfield.LegacyTextFieldConnector; +import com.vaadin.shared.ui.Connect; +import com.vaadin.v7.ui.PasswordField; + +@Deprecated +@Connect(PasswordField.class) +public class PasswordFieldConnector extends LegacyTextFieldConnector { + + @Override + public VLegacyPasswordField getWidget() { + return (VLegacyPasswordField) super.getWidget(); + } +} -- cgit v1.2.3