Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    com.vaadin.flow.component.html.Label
    Use NativeLabel instead, if you need the HTML <label> element, which is normally not needed within a Vaadin Flow application's high-level components. To use a Label that works in the older style of Vaadin 8 or Java Swing, and can be used both to label a component and to display loose text, an alternative is the Label available in Classic Components. This Label component / <label> element is not meant for loose text in the page - it should only be coupled with another component by using the Label.setFor(Component) or by adding them to it with the HasComponents.add(Component...) method, for example if you use Input.
    com.vaadin.flow.component.html.testbench.LabelElement
    Use NativeLabelElement instead.
  • Deprecated Interfaces
    Interface
    Description
    com.vaadin.flow.component.template.internal.DeprecatedPolymerPublishedEventHandler
    Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
    com.vaadin.flow.component.template.internal.DeprecatedPolymerTemplate
    Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
    com.vaadin.flow.component.textfield.HasPrefixAndSuffix
    since Vaadin 24, use HasPrefix and HasSuffix interfaces instead.
  • Deprecated Classes
    Class
    Description
    com.vaadin.flow.component.html.Label
    Use NativeLabel instead, if you need the HTML <label> element, which is normally not needed within a Vaadin Flow application's high-level components. To use a Label that works in the older style of Vaadin 8 or Java Swing, and can be used both to label a component and to display loose text, an alternative is the Label available in Classic Components. This Label component / <label> element is not meant for loose text in the page - it should only be coupled with another component by using the Label.setFor(Component) or by adding them to it with the HasComponents.add(Component...) method, for example if you use Input.
    com.vaadin.flow.component.html.testbench.LabelElement
    Use NativeLabelElement instead.
    com.vaadin.flow.internal.BrowserLiveReloadAccess
    Use BrowserLiveReloadAccessor instead
    com.vaadin.flow.internal.nodefeature.PolymerServerEventHandlers
    Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
  • Deprecated Fields
    Field
    Description
    com.vaadin.external.apache.commons.fileupload2.FileUploadBase.MAX_HEADER_SIZE
    This constant is no longer used. As of commons-fileupload 1.2, the only applicable limit is the total size of a parts headers, MultipartStream.HEADER_PART_SIZE_MAX.
    com.vaadin.flow.dom.ElementConstants.ARIA_LABEL_PROPERTY_NAME
    use ElementConstants.ARIA_LABEL_ATTRIBUTE_NAME instead
    com.vaadin.flow.server.frontend.NodeUpdater.DEP_NAME_FLOW_DEPS
    com.vaadin.flow.server.frontend.NodeUpdater.DEP_NAME_FLOW_JARS
    com.vaadin.flow.server.InitParameters.SERVLET_PARAMETER_ENABLE_DEV_SERVER
  • Deprecated Methods
    Method
    Description
    com.vaadin.collaborationengine.CollaborationBinder.bind(HasValue<?, FIELDVALUE>, ValueProvider<BEAN, FIELDVALUE>, Setter<BEAN, FIELDVALUE>)
    The method does not work with the collaboration binder. Use CollaborationBinder.bind(HasValue, String) instead.
    com.vaadin.collaborationengine.CollaborationBinder.getBean()
    This operation, along with CollaborationBinder.setBean(Object), is not supported by the collaboration binder. Instead of CollaborationBinder.setBean(Object), you can provide the bean for populating the fields using CollaborationBinder.setTopic(java.lang.String, com.vaadin.flow.function.SerializableSupplier<BEAN>), and write the values back to the bean using Binder.writeBean(BEAN).
    com.vaadin.collaborationengine.CollaborationBinder.readBean(BEAN)
    This operation is not supported by the collaboration binder. You can instead provide the bean for populating the fields using CollaborationBinder.setTopic(java.lang.String, com.vaadin.flow.function.SerializableSupplier<BEAN>) to avoid overriding currently edited values. If you explicitly want to reset the field values for every user currently editing the fields, you can use CollaborationBinder.reset(BEAN).
    com.vaadin.collaborationengine.CollaborationBinder.setBean(BEAN)
    This operation is not supported by the collaboration binder. You can instead provide the bean for populating the fields using CollaborationBinder.setTopic(java.lang.String, com.vaadin.flow.function.SerializableSupplier<BEAN>), and write the values back to the bean using Binder.writeBean(BEAN).
    com.vaadin.external.apache.commons.fileupload2.FileUploadBase.createItem(Map<String, String>, boolean)
    1.2 This method is no longer used in favour of internally created instances of FileItem.
    com.vaadin.external.apache.commons.fileupload2.FileUploadBase.getFieldName(Map<String, String>)
    1.2.1 Use FileUploadBase.getFieldName(FileItemHeaders).
    com.vaadin.external.apache.commons.fileupload2.FileUploadBase.getFileName(Map<String, String>)
    1.2.1 Use FileUploadBase.getFileName(FileItemHeaders).
    com.vaadin.external.apache.commons.fileupload2.FileUploadBase.getHeader(Map<String, String>, String)
    1.2.1 Use FileItemHeaders.getHeader(String).
    com.vaadin.external.apache.commons.fileupload2.FileUploadBase.parseHeaders(String)
    1.2.1 Use FileUploadBase.getParsedHeaders(String)
    com.vaadin.external.apache.commons.fileupload2.jaksrvlt.JakSrvltRequestContext.getContentLength()
    1.3 Use JakSrvltRequestContext.contentLength() instead
    com.vaadin.external.apache.commons.fileupload2.RequestContext.getContentLength()
    1.3 Use UploadContext.contentLength() instead
    com.vaadin.flow.component.charts.model.AbstractSeriesItem.setX(Date)
    as of 4.0. Use AbstractSeriesItem.setX(Instant)
    com.vaadin.flow.component.charts.model.AreaOptions.setPointStart(Date)
    as of 4.0. Use AreaOptions.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.Breaks.setFrom(Date)
    as of 4.0. Use #setPointStart(Instant)
    com.vaadin.flow.component.charts.model.Breaks.setTo(Date)
    as of 4.0. Use #setPointStart(Instant)
    com.vaadin.flow.component.charts.model.OhlcOptions.setPointStart(Date)
    as of 4.0. Use OhlcOptions.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotBand.setFrom(Date)
    as of 4.0. Use #setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotBand.setTo(Date)
    as of 4.0. Use #setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsArea.setPointStart(Date)
    as of 4.0. Use PlotOptionsArea.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsArearange.setPointStart(Date)
    as of 4.0. Use PlotOptionsArearange.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsAreaspline.setPointStart(Date)
    as of 4.0. Use PlotOptionsAreaspline.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsAreasplinerange.setPointStart(Date)
    as of 4.0. Use PlotOptionsAreasplinerange.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsBar.setPointStart(Date)
    as of 4.0. Use PlotOptionsBar.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsBoxplot.setPointStart(Date)
    as of 4.0. Use PlotOptionsBoxplot.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsBubble.setPointStart(Date)
    as of 4.0. Use PlotOptionsBubble.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsCandlestick.setPointStart(Date)
    as of 4.0. Use PlotOptionsCandlestick.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsColumn.setPointStart(Date)
    as of 4.0. Use PlotOptionsColumn.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsColumnrange.setPointStart(Date)
    as of 4.0. Use PlotOptionsColumnrange.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsErrorbar.setPointStart(Date)
    as of 4.0. Use PlotOptionsErrorbar.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsLine.setPointStart(Date)
    as of 4.0. Use PlotOptionsLine.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsOhlc.setPointStart(Date)
    as of 4.0. Use PlotOptionsOhlc.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsPolygon.setPointStart(Date)
    as of 4.0. Use PlotOptionsPolygon.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsScatter.setPointStart(Date)
    as of 4.0. Use PlotOptionsScatter.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsSeries.setPointStart(Date)
    as of 4.0. Use PlotOptionsSeries.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsSpline.setPointStart(Date)
    as of 4.0. Use PlotOptionsSpline.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PlotOptionsWaterfall.setPointStart(Date)
    as of 4.0. Use PlotOptionsWaterfall.setPointStart(Instant)
    com.vaadin.flow.component.charts.model.PointOptions.setPointStart(Date)
    com.vaadin.flow.component.charts.util.Util.toHighchartsTS(Date)
    as of 4.0. Use Util.toHighchartsTS(Instant)
    com.vaadin.flow.component.charts.util.Util.toServerDate(double)
    as of 4.0. Use Util.toServerInstant(double)
    com.vaadin.flow.component.combobox.ComboBoxBase.setItems(InMemoryDataProvider<TItem>)
    does not work so don't use
    com.vaadin.flow.component.Component.getTranslation(Object, Locale, Object...)
    Use Component.getTranslation(Locale, String, Object...) instead
    com.vaadin.flow.component.Component.getTranslation(String, Locale, Object...)
    Use Component.getTranslation(Locale, String, Object...) instead
    com.vaadin.flow.component.crud.BinderCrudEditor.getView()
    This method should not be used outside.
    com.vaadin.flow.component.grid.Grid.createColumn(Renderer<T>, String)
    This method should not be used outside. Grid.getDefaultColumnFactory() should be used instead.
    com.vaadin.flow.component.grid.GridTester.getFooterCell(int)
    Use AbstractColumn.getFooterText() or AbstractColumn.getFooterComponent() directly
    com.vaadin.flow.component.grid.GridTester.getHeaderCell(int)
    Use AbstractColumn.getHeaderText() or AbstractColumn.getHeaderComponent()
    com.vaadin.flow.component.richtexteditor.RichTextEditor.getHtmlValue()
    since v24 the RichTextEditor uses the HTML value by default. Use RichTextEditor.getValue() instead.
    com.vaadin.flow.component.ShortcutRegistration.getOwner()
    This component has now multiple owners so this method has been replaced by #getOwners().
    com.vaadin.flow.component.tabs.Tabs.add(Component...)
    since 24.0, use Tabs.add(Tab...) instead.
    com.vaadin.flow.component.tabs.Tabs.addComponentAsFirst(Component)
    since 24.0, use Tabs.addTabAsFirst(Tab) instead.
    com.vaadin.flow.component.tabs.Tabs.addComponentAtIndex(int, Component)
    since 24.0, use Tabs.addTabAtIndex(int, Tab) instead.
    com.vaadin.flow.component.tabs.Tabs.getComponentAt(int)
    since 24.0, use Tabs.getTabAt(int) instead.
    com.vaadin.flow.component.tabs.Tabs.indexOf(Component)
    since 24.0, use Tabs.indexOf(Tab) instead.
    com.vaadin.flow.component.tabs.Tabs.remove(Component...)
    since 24.0, use Tabs.remove(Tab...) instead.
    com.vaadin.flow.component.tabs.Tabs.replace(Component, Component)
    since 24.0, use Tabs.replace(Tab, Tab) instead.
    com.vaadin.flow.component.treegrid.TreeGrid.getGenericDataView()
    not supported
    com.vaadin.flow.component.treegrid.TreeGrid.getLazyDataView()
    not supported
    com.vaadin.flow.component.treegrid.TreeGrid.getListDataView()
    not supported
    com.vaadin.flow.component.treegrid.TreeGrid.setDataProvider(DataProvider<T, ?>)
    use TreeGrid.setDataProvider(HierarchicalDataProvider), HasHierarchicalDataProvider.setItems(Collection, ValueProvider), HasHierarchicalDataProvider.setItems(Stream, ValueProvider) or HasHierarchicalDataProvider.setTreeData(TreeData) instead.
    com.vaadin.flow.component.treegrid.TreeGrid.setItems(BackEndDataProvider<T, Void>)
    use TreeGrid.setDataProvider(HierarchicalDataProvider), HasHierarchicalDataProvider.setItems(Collection, ValueProvider), HasHierarchicalDataProvider.setItems(Stream, ValueProvider) or HasHierarchicalDataProvider.setTreeData(TreeData) instead.
    com.vaadin.flow.component.treegrid.TreeGrid.setItems(CallbackDataProvider.FetchCallback<T, Void>)
    use TreeGrid.setDataProvider(HierarchicalDataProvider), HasHierarchicalDataProvider.setItems(Collection, ValueProvider), HasHierarchicalDataProvider.setItems(Stream, ValueProvider) or HasHierarchicalDataProvider.setTreeData(TreeData) instead.
    com.vaadin.flow.component.treegrid.TreeGrid.setItems(ListDataProvider<T>)
    use TreeGrid.setDataProvider(HierarchicalDataProvider), HasHierarchicalDataProvider.setItems(Collection, ValueProvider), HasHierarchicalDataProvider.setItems(Stream, ValueProvider) or HasHierarchicalDataProvider.setTreeData(TreeData) instead.
    com.vaadin.flow.component.treegrid.TreeGrid.setItems(Collection<T>)
    use TreeGrid.setDataProvider(HierarchicalDataProvider), HasHierarchicalDataProvider.setItems(Collection, ValueProvider), HasHierarchicalDataProvider.setItems(Stream, ValueProvider) or HasHierarchicalDataProvider.setTreeData(TreeData) instead.
    com.vaadin.flow.component.treegrid.TreeGrid.setItems(T...)
    use TreeGrid.setDataProvider(HierarchicalDataProvider), HasHierarchicalDataProvider.setItems(Collection, ValueProvider), HasHierarchicalDataProvider.setItems(Stream, ValueProvider) or HasHierarchicalDataProvider.setTreeData(TreeData) instead.
    com.vaadin.flow.component.UI.doInit(VaadinRequest, int)
    Use UI.doInit(VaadinRequest, int, String) instead
    com.vaadin.flow.component.UI.getRouter()
    For internal use only. Will be removed in the future.
    com.vaadin.flow.router.LocationUtil.parsePathToSegments(String)
    use LocationUtil.parsePathToSegments(String, boolean)
    com.vaadin.flow.server.AbstractConfiguration.frontendHotdeploy()
    Use AbstractConfiguration.getMode() instead
    com.vaadin.flow.server.frontend.Options.enableNpmFileCleaning(boolean)
  • Deprecated Constructors
    Constructor
    Description
    com.vaadin.external.apache.commons.fileupload2.MultipartStream()
    1.2.1 Use MultipartStream(InputStream, byte[], int, ProgressNotifier)
    com.vaadin.external.apache.commons.fileupload2.MultipartStream(InputStream, byte[])
    1.2.1 Use MultipartStream(InputStream, byte[], int, ProgressNotifier).
    com.vaadin.external.apache.commons.fileupload2.MultipartStream(InputStream, byte[], int)
    1.2.1 Use MultipartStream(InputStream, byte[], int, ProgressNotifier).
    com.vaadin.flow.component.charts.model.DataSeriesItem(Date, Number)
    as of 4.0. Use DataSeriesItem(Instant, Number)
    com.vaadin.flow.component.charts.model.DataSeriesItem(Date, Number, Number)
    as of 4.0. Use DataSeriesItem(Instant, Number,Number)
    com.vaadin.flow.component.charts.model.FlagItem(Date, String)
    as of 4.0. Use FlagItem(Instant, String)
    com.vaadin.flow.component.charts.model.FlagItem(Date, String, String)
    as of 4.0. Use FlagItem(Instant, String, String)
    com.vaadin.flow.component.charts.model.OhlcItem(Date, Number, Number, Number, Number)
    as of 4.0. Use OhlcItem(Instant, Number, Number, Number, Number)
    com.vaadin.flow.server.frontend.FrontendTools(String, Supplier<String>, boolean)
    use FrontendTools(FrontendToolsSettings) instead, as it simplifies configuring the frontend tools and gives the default values to configuration parameters.
    com.vaadin.flow.server.frontend.FrontendTools(String, Supplier<String>, String, URI)
    use FrontendTools(FrontendToolsSettings) instead, as it simplifies configuring the frontend tools and gives the default values to configuration parameters.
    com.vaadin.flow.server.frontend.FrontendTools(String, Supplier<String>, String, URI, boolean, boolean)
    use FrontendTools(FrontendToolsSettings) instead, as it simplifies configuring the frontend tools and gives the default values to configuration parameters.
    com.vaadin.flow.server.frontend.FrontendTools(String, Supplier<String>, String, URI, boolean, boolean, boolean)
    use FrontendTools(FrontendToolsSettings) instead, as it simplifies configuring the frontend tools and gives the default values to configuration parameters.

Copyright © 2023. All rights reserved.