Skip to content

Commit

Permalink
Updated migration related documentation (#8602)
Browse files Browse the repository at this point in the history
* Updated migration related documentation

More detailed information on compatibility components.
Mention vaadin:upgrade8 target in migration guide.

Fixes #8581
  • Loading branch information
pleku authored and hesara committed Feb 17, 2017
1 parent 672ab94 commit fb74e3d
Show file tree
Hide file tree
Showing 29 changed files with 104 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
*
* @since 7.1
* @author Vaadin Ltd.
*
* @deprecated As of 8.0, no replacement available.
*/
@SuppressWarnings("serial")
@Deprecated
Expand Down Expand Up @@ -1003,7 +1005,7 @@ public void setWeeklyCaptionFormat(String dateFormatPattern) {
/**
* Sets sort order for events. By default sort order is
* {@link EventSortOrder#DURATION_DESC}.
*
*
* @param order
* sort strategy for events
*/
Expand All @@ -1018,7 +1020,7 @@ public void setEventSortOrder(EventSortOrder order) {

/**
* Returns sort order for events.
*
*
* @return currently active sort strategy
*/
public EventSortOrder getEventSortOrder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
import com.vaadin.v7.shared.ui.checkbox.CheckBoxServerRpc;
import com.vaadin.v7.shared.ui.checkbox.CheckBoxState;

/**
* @author Vaadin Ltd
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.CheckBox} based on the
* new data binding API
*/
@Deprecated
public class CheckBox extends AbstractField<Boolean> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
* component.
*
* @since 7.0.0
*
* @see ColorPickerArea
* @author Vaadin Ltd
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.ColorPicker} based on
* new data binding API
*/
@Deprecated
public class ColorPicker extends AbstractColorPicker {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
* A class that defines area-like implementation for a color picker component.
*
* @since 7.0.0
*
* @see ColorPicker
* @author Vaadin Ltd
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.ColorPickerArea} based
* on new data binding API
*/
@Deprecated
public class ColorPickerArea extends AbstractColorPicker {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
* on newItemsAllowed and change filtering mode (and also turn it off), but you
* can not turn on multi-select mode.
*
* @author Vaadin Ltd
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.ComboBox} based on the
* new data binding API
*/
@SuppressWarnings("serial")
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
* field value type
*
* @since 7.0
* @author Vaadin Ltd
*
* @deprecated As of 8.0 replaced by a {@link com.vaadin.ui.CustomField} based
* on new data binding API
*/
@Deprecated
public abstract class CustomField<T> extends AbstractField<T>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* 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
Expand All @@ -27,11 +27,12 @@
* This class contains a basic implementation for both {@link FormFieldFactory}
* and {@link TableFieldFactory}. The class is singleton, use {@link #get()}
* method to get reference to the instance.
*
*
* <p>
* There are also some static helper methods available for custom built field
* factories.
*
* @deprecated Removed feature in 8.0
*/
@Deprecated
public class DefaultFieldFactory
Expand All @@ -41,7 +42,7 @@ public class DefaultFieldFactory

/**
* Singleton method to get an instance of DefaultFieldFactory.
*
*
* @return an instance of DefaultFieldFactory
*/
public static DefaultFieldFactory get() {
Expand Down Expand Up @@ -74,7 +75,7 @@ public Field createField(Container container, Object itemId,
/**
* If name follows method naming conventions, convert the name to spaced
* upper case text. For example, convert "firstName" to "First Name"
*
*
* @param propertyId
* @return the formatted caption string
*/
Expand All @@ -93,7 +94,7 @@ public static String createCaptionByPropertyId(Object propertyId) {
* <b>Item</b>: {@link Form}. <br/>
* <b>default field type</b>: {@link LegacyTextField}.
* <p>
*
*
* @param type
* the type of the property
* @return the most suitable generic {@link LegacyField} for given type
Expand Down
3 changes: 3 additions & 0 deletions compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@
*
* @since 7.4
* @author Vaadin Ltd
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.Grid} based on the new
* data binding API
*/
@Deprecated
public class Grid extends AbstractComponent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
*
* @author Vaadin Ltd.
* @since 5.3
* @deprecated use com.vaadin.ui.HorizontalLayout (with different defaults)
*
* @deprecated Replaced in 8.0 with {@link com.vaadin.ui.HorizontalLayout} with
* spacing on by default
*/
@Deprecated
public class HorizontalLayout extends com.vaadin.ui.HorizontalLayout {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.util.Date;

import com.vaadin.ui.InlineDateTimeField;
import com.vaadin.v7.data.Property;

/**
Expand All @@ -30,6 +31,9 @@
* @see PopupDateField
* @author Vaadin Ltd.
* @since 5.0
*
* @deprecated As of 8.0, replaced by {@link com.vaadin.ui.InlineDateField} and
* {@link InlineDateTimeField} based on LocalDate
*/
@Deprecated
public class InlineDateField extends DateField {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
*
* @author Vaadin Ltd.
* @since 3.0
*
* @deprecated As of 8.0, replaced by {@link com.vaadin.ui.Label} that removes
* data binding support
*/
@SuppressWarnings("serial")
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
/**
* This is a simple list select without, for instance, support for new items,
* lazyloading, and other advanced features.
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.ListSelect} based on
* the new data binding API
*/
@SuppressWarnings("serial")
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
* multiselect, new items, lazyloading, and other advanced features. Sometimes
* "native" select without all the bells-and-whistles of the ComboBox is a
* better choice.
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.NativeSelect} based on
* the new data binding API
*/
@SuppressWarnings("serial")
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@
/**
* Configures select to be used as an option group.
*
* @deprecated As of 8.0, use {@link RadioButtonGroup} or {@link CheckBoxGroup}
* instead
* @author Vaadin Ltd
*
* @deprecated As of 8.0, use {@link RadioButtonGroup} for single select or
* {@link CheckBoxGroup} for multiselect instead
*/
@SuppressWarnings("serial")
@Deprecated
public class OptionGroup extends AbstractSelect
implements FieldEvents.BlurNotifier, FieldEvents.FocusNotifier {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
/**
* A field that is used to enter secret text information like passwords. The
* entered text is not displayed on the screen.
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.PasswordField} based
* on the new data binding API
*/
@Deprecated
public class PasswordField extends AbstractTextField {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.vaadin.server.PaintException;
import com.vaadin.server.PaintTarget;
import com.vaadin.ui.DateTimeField;
import com.vaadin.v7.data.Property;
import com.vaadin.v7.shared.ui.datefield.PopupDateFieldState;

Expand All @@ -33,6 +34,9 @@
* @see InlineDateField
* @author Vaadin Ltd.
* @since 5.0
*
* @deprecated As of 8.0, use {@link com.vaadin.ui.DateField} or
* {@link DateTimeField} instead.
*/
@Deprecated
public class PopupDateField extends DateField {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
*
* @since 7.1
* @author Vaadin Ltd
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.ProgressBar} based on
* the new data binding API
*/
@Deprecated
public class ProgressBar extends AbstractField<Float>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
* Note, that using {@link TextField#setMaxLength(int)} method in
* {@link RichTextArea} may produce unexpected results as formatting is counted
* into length of field.
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.RichTextArea} based on
* the new data binding API
*/
@Deprecated
public class RichTextArea extends AbstractField<String>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
* A component for selecting a numerical value within a range.
*
* @author Vaadin Ltd.
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.Slider} based on the
* new data binding API
*/
@Deprecated
public class Slider extends AbstractField<Double> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
*
* @author Vaadin Ltd.
* @since 3.0
*
* @deprecated As of 8.0, use Grid instead
*/
@Deprecated
@SuppressWarnings({ "deprecation" })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
* @author Vaadin Ltd.
* @since 6.0
* @see FormFieldFactory
*
* @deprecated As of 8.0, Table is replaced by Grid
*/
@Deprecated
public interface TableFieldFactory extends Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

/**
* A text field that supports multi line editing.
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.TextArea} based on the
* new data binding API
*/
@Deprecated
public class TextArea extends AbstractTextField {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
*
* @author Vaadin Ltd.
* @since 3.0
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.TextField} based on
* the new data binding API
*/
@SuppressWarnings("serial")
@Deprecated
Expand Down
2 changes: 2 additions & 0 deletions compatibility-server/src/main/java/com/vaadin/v7/ui/Tree.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
*
* @author Vaadin Ltd.
* @since 3.0
*
* @deprecated As of 8.0. Replacement planned for 8.1
*/
@SuppressWarnings({ "serial", "deprecation" })
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
* standard Hierarchical implementations. Developer must however note that
* {@link Collapsible} containers can not be shared among several users as they
* share UI state in the container.
*
* @deprecated As of 8.0. Replacement planned for 8.1
*/
@SuppressWarnings({ "serial" })
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
/**
* Multiselect component with two lists: left side for available items and right
* side for selected items.
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.TwinColSelect} based
* on the new data binding API
*/
@SuppressWarnings("serial")
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
*
* @author Vaadin Ltd.
* @since 3.0
*
* @deprecated As of 8.0 replaced by {@link com.vaadin.ui.Upload} that is by
* default in immediate mode.
*/
@SuppressWarnings("serial")
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
*
* @author Vaadin Ltd.
* @since 5.3
* @deprecated use com.vaadin.ui.VerticalLayout (with different defaults)
*
* @deprecated Replaced in 8.0 with {@link com.vaadin.ui.VerticalLayout} with
* margin and spacing on by default
*/
@Deprecated
public class VerticalLayout extends com.vaadin.ui.VerticalLayout {
Expand Down
Loading

0 comments on commit fb74e3d

Please sign in to comment.