Splash Screen
Shows a configurable splash screen on the bootstrap page
This add-on makes it easy to show a splash screen while the browser is downloading the application's theme and widgetset and while the initial UI contents are initialized.
Sample code
@SplashScreen(value = "splash.html", width = 500, height = 300) public class BasicDemo extends UI { @WebServlet(value = "/*", asyncSupported = true) @VaadinServletConfiguration(productionMode = false, ui = BasicDemo.class) public static class Servlet extends VaadinServlet { @Override public void init(ServletConfig servletConfig) throws ServletException { super.init(servletConfig); // Hook up with the framework's host page generation SplashScreenHandler.init(getService()); } } @Override protected void init(VaadinRequest request) { setContent(new SplashScreenDemoLayout()); } }
<style type="text/css"> #splash>div { background-color: #d9dce4; height: 100%; box-shadow: 10px 10px 20px rgba(0,0,0,0.75); border-radius: 10px; } #splash h1 { text-align: center; margin: 0; padding-top: 30px; font-family: Helvetica; font-weight: 200; } </style> <div> <h1>This is my splash screen!</h1> </div>
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Backport @SplashScreenConfigurator
functionality from the Vaadin 8 version.
- Released
- 2017-06-20
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.7+
- Vaadin 8.0+ in 0.2
- Browser
- Browser Independent
Splash Screen - Vaadin Add-on Directory
Shows a configurable splash screen on the bootstrap pageSource Code
Splash Screen version 0.1.0
null
Splash Screen version 0.1.1
Fixes IE compatibility
Splash Screen version 0.2
Update to Vaadin Framework 8.0
Use `VaadinServiceInitListener` to automatically init the add-on if it's on the classpath
Splash Screen version 0.3
Adds functionality for dynamically configuring the splash screen using `@SplashScreenConfigurator`.
Splash Screen version 0.1.2
Backport `@SplashScreenConfigurator` functionality from the Vaadin 8 version.
Splash Screen version 0.3.1
Mark `@SplashScreenConfigurator` as `@Inherited`