3.5.18. Generic UI Infrastructure
This section describes Generic UI infrastructure classes that can be extended in an application.
-
AppUIis a class inherited fromcom.vaadin.ui.UI. There is one instance of this class for each open web browser tab. It refers aRootWindowwhich contains either a login screen or main screen, depending on the connection state. You can get a reference to theAppUIfor the current browser tab by using theAppUI.getCurrent()static method.If you want to customize functionality of
AppUIin your project, create a class extendingAppUIin the web module and register it in web-spring.xml withcuba_AppUIid andprototypescope, for example:<bean id="cuba_AppUI" class="com.company.sample.web.MyAppUI" scope="prototype"/> -
Connectionis an interface providing functionality of connecting to middleware and holding a user session.ConnectionImplis a standard implementation of this interface.If you want to customize functionality of
Connectionin your project, create a class extendingConnectionImplin the web module and register it in web-spring.xml withcuba_Connectionid andvaadinscope, for example:<bean id="cuba_Connection" class="com.company.sample.web.MyConnection" scope="vaadin"/> -
ExceptionHandlersclass contains a collection of client-level exception handlers. -
Appcontains links toConnection,ExceptionHandlersand other infrastructure objects. A single instance of this class is created for an HTTP session and stored in its attribute. You can get a reference to theAppinstance by using theApp.getInstance()static method.If you want to customize functionality of
Appin your project, create a class extendingDefaultAppin the web module and register it in web-spring.xml withcuba_Appid andvaadinscope, for example:<bean name="cuba_App" class="com.company.sample.web.MyApp" scope="vaadin"/>