Deprecated API
Contents
- Terminally Deprecated
- Interfaces
- Classes
- Annotation Interfaces
- Fields
- Methods
- Annotation Interface Elements
-
Terminally Deprecated ElementsElementDescriptionsince 25.1, for removal in 26.Use
Element.scrollIntoView(ScrollIntoViewOption...)withScrollIntoViewOption.Behavior,ScrollIntoViewOption.Block, andScrollIntoViewOption.Inlineoptions insteadUseUIInternals.getWrapperElement()throughgetInternals().getWrapperElement()instead.UseElement.scrollIntoView(ScrollIntoViewOption...)insteaduseFileIOUtils.deleteQuietly(File)instead, which also deletes directory contents and logs why a deletion failed instead of failing silentlyuseFileRouterRequestUtil.isAnonymousRoute(HttpServletRequest)to match requests to anonymous routesuseUploadHandlerinsteaduseDownloadHandlerinsteaduseUploadHandlerinsteadThe name refers to WebJars, which are not handled here. This method only delegates toStaticFileHandler.serveStaticResource(HttpServletRequest, HttpServletResponse), whichVaadinServlet.service(HttpServletRequest, HttpServletResponse)now calls directly, so overriding this method no longer affects request handling. OverrideVaadinServlet.createStaticFileHandler(VaadinService)to customize how static resources are served.base url will not be translated to the theme url anymorebase url will not be translated to the theme url anymoreNo translation of the url will be done in 25UseColorSchemeannotation instead
-
Deprecated InterfacesInterfaceDescriptionsince 25.1, for removal in 26.Polymer template support is deprecated - we recommend you to use
LitTemplateinstead. Read more details from the Vaadin blog.Polymer template support is deprecated - we recommend you to useLitTemplateinstead. Read more details from the Vaadin blog.useUploadHandlerinstead
-
Deprecated ClassesClassDescriptionUse
Element.scrollIntoView(ScrollIntoViewOption...)withScrollIntoViewOption.Behavior,ScrollIntoViewOption.Block, andScrollIntoViewOption.Inlineoptions insteadUseBrowserLiveReloadAccessorinsteadPolymer template support is deprecated - we recommend you to useLitTemplateinstead. Read more details from the Vaadin blog.useUploadHandlerinsteaduseDownloadHandlerinsteadFor browser information users should parse the user-agent using a parsing library like ua-parser/uap-java
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionAs of Vaadin 25, this annotation is deprecated. The theming system has been reworked to use
StyleSheetto load one or more stylesheets from public static resources locations orCssImportto load one or more stylesheets from asrc/main/frontend/folder and use mechanisms native to HTML, CSS and React (e.g.@import url("morestyles.css")in CSS).
-
Deprecated FieldsFieldDescriptionUse
UIInternals.getWrapperElement()throughgetInternals().getWrapperElement()instead.useInitParameters.URL_SAFE_SCHEMESinstead
-
Deprecated MethodsMethodDescriptionComponent styling can be done entirely with normal "light DOM" CSS.Use
Page.executeJs(String, Object...)instead. This method exists only for binary compatibility.UsePage.getExtendedClientDetails()to get the cached details, orExtendedClientDetails.refresh(SerializableConsumer)to refresh the cached values.UseElement.callJsFunction(String, Object...)instead. This method exists only for binary compatibility.UseElement.executeJs(String, Object...)instead. This method exists only for binary compatibility.UseElement.scrollIntoView(ScrollIntoViewOption...)insteaduseFileIOUtils.deleteQuietly(File)instead, which also deletes directory contents and logs why a deletion failed instead of failing silentlyuseFileRouterRequestUtil.isAnonymousRoute(HttpServletRequest)to match requests to anonymous routesThe name refers to WebJars, which are not handled here. This method only delegates toStaticFileHandler.serveStaticResource(HttpServletRequest, HttpServletResponse), whichVaadinServlet.service(HttpServletRequest, HttpServletResponse)now calls directly, so overriding this method no longer affects request handling. OverrideVaadinServlet.createStaticFileHandler(VaadinService)to customize how static resources are served.useWebBrowser.getUserAgent()method to get user-agent stringuse a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()base url will not be translated to the theme url anymorebase url will not be translated to the theme url anymoreNo translation of the url will be done in 25UseColorSchemeannotation instead
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionComponent styling can be done entirely with normal "light DOM" CSS.Use
ColorSchemeannotation instead