Uses of Class
com.vaadin.flow.component.UI
-
-
Uses of UI in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return UI Modifier and Type Method Description static UIUI. getCurrent()Gets the currently used UI.UIHeartbeatEvent. getSource()Methods in com.vaadin.flow.component that return types with arguments of type UI Modifier and Type Method Description Optional<UI>Component. getUI()Gets the UI this component is attached to.Optional<UI>UI. getUI()Methods in com.vaadin.flow.component with parameters of type UI Modifier and Type Method Description static voidUI. setCurrent(UI ui)Sets the thread local for the current UI.Constructors in com.vaadin.flow.component with parameters of type UI Constructor Description HeartbeatEvent(UI ui, long heartbeatTime)Constructs a heartbeat Event.PollEvent(UI ui, boolean fromClient)Creates a new event using the given source and indicator whether the event originated from the client side or the server side. -
Uses of UI in com.vaadin.flow.component.charts
Methods in com.vaadin.flow.component.charts with parameters of type UI Modifier and Type Method Description static ChartOptionsChartOptions. get(UI ui)Returns a ChartOptions instance for the given UI. -
Uses of UI in com.vaadin.flow.component.combobox
Method parameters in com.vaadin.flow.component.combobox with type arguments of type UI Modifier and Type Method Description protected voidComboBoxBase. runBeforeClientResponse(SerializableConsumer<UI> command)Helper for running a command in the before client response hook -
Uses of UI in com.vaadin.flow.component.internal
Subclasses of UI in com.vaadin.flow.component.internal Modifier and Type Class Description classJavaScriptBootstrapUICustom UI forJavaScriptBootstrapHandler.Methods in com.vaadin.flow.component.internal that return UI Modifier and Type Method Description UIAbstractAttachDetachEvent. getUI()Gets the UI the component is attached to.UIUIInternals. getUI()Gets the UI that this instance belongs to.Methods in com.vaadin.flow.component.internal with parameters of type UI Modifier and Type Method Description voidUIInternals. moveElementsFrom(UI otherUI)Move all the children of the other UI to this current UI.default voidUIInternalUpdater. moveToNewUI(UI oldUI, UI newUI)Move all the children from the old UI to the new UI.default voidUIInternalUpdater. updateRoot(UI ui, HasElement oldRoot, HasElement newRoot)Update root element of the given UI.Constructors in com.vaadin.flow.component.internal with parameters of type UI Constructor Description UIInternals(UI ui)Creates a new instance for the given UI.UIInternals(UI ui, UIInternalUpdater internalsHandler)Creates a new instance for the given UI. -
Uses of UI in com.vaadin.flow.component.page
Methods in com.vaadin.flow.component.page that return UI Modifier and Type Method Description UIHistory. getUI()Gets the UI that this instance belongs to.Constructors in com.vaadin.flow.component.page with parameters of type UI Constructor Description History(UI ui)Creates a history API endpoint for the given UI.Page(UI ui)Creates a page instance for the given UI. -
Uses of UI in com.vaadin.flow.component.webcomponent
Subclasses of UI in com.vaadin.flow.component.webcomponent Modifier and Type Class Description classWebComponentUICustom UI for use with WebComponents served from the server.Constructors in com.vaadin.flow.component.webcomponent with parameters of type UI Constructor Description WebComponentConnectEvent(UI source, boolean fromClient, String tag, String webComponentElementId, String userAssignedId, elemental.json.JsonObject attributeValues)Creates a new web component connection event. -
Uses of UI in com.vaadin.flow.di
Methods in com.vaadin.flow.di with parameters of type UI Modifier and Type Method Description static InstantiatorInstantiator. get(UI ui)Gets the instantiator to use for the given UI. -
Uses of UI in com.vaadin.flow.i18n
Methods in com.vaadin.flow.i18n that return UI Modifier and Type Method Description UILocaleChangeEvent. getUI()Returns the UI where the locale changed in.Constructors in com.vaadin.flow.i18n with parameters of type UI Constructor Description LocaleChangeEvent(UI ui, Locale locale)Locale change event constructor. -
Uses of UI in com.vaadin.flow.internal
Methods in com.vaadin.flow.internal that return UI Modifier and Type Method Description UIExecutionContext. getUI()Gets the UI associated with the execution.UIStateTree. getUI()Gets theUIthat this tree belongs to.Methods in com.vaadin.flow.internal with parameters of type UI Modifier and Type Method Description static Map<Class<?>,CurrentInstance>CurrentInstance. setCurrent(UI ui)Sets current instances for the UI and all related classes.Method parameters in com.vaadin.flow.internal with type arguments of type UI Modifier and Type Method Description voidStateNode. runWhenAttached(SerializableConsumer<UI> command)Runs the command when the node is attached to a UI.Constructors in com.vaadin.flow.internal with parameters of type UI Constructor Description ExecutionContext(UI ui, boolean clientSideInitialized)Creates a new, immutable context. -
Uses of UI in com.vaadin.flow.router
Methods in com.vaadin.flow.router that return UI Modifier and Type Method Description UIBeforeEvent. getUI()Gets the UI this navigation takes place inside.UILocationChangeEvent. getUI()Gets the UI in which the view is shown.UINavigationEvent. getUI()Gets the UI in which the navigation occurs.Methods in com.vaadin.flow.router with parameters of type UI Modifier and Type Method Description static List<AfterNavigationObserver>EventUtil. collectAfterNavigationObservers(UI ui)Collect all Components implementingAfterNavigationObserverthat are found in the given UI.static List<BeforeLeaveObserver>EventUtil. collectBeforeLeaveObservers(UI ui)Collect all Components implementingBeforeLeaveObserverconnected to the given UI.static voidEventUtil. informLocaleChangeObservers(UI ui)Inform components connected to the given ui that implementLocaleChangeObserverabout locale change.static voidEventUtil. informLocaleChangeObservers(UI ui, List<HasElement> components)Inform components implementingLocaleChangeObserverabout locale change.voidRouter. initializeUI(UI ui, Location location)Enables navigation for a new UI instance.voidRouter. initializeUI(UI ui, VaadinRequest initRequest)Deprecated.useRouter.initializeUI(UI, Location)insteadintRouter. navigate(UI ui, Location location, NavigationTrigger trigger)Navigates the given UI to the given location.intRouter. navigate(UI ui, Location location, NavigationTrigger trigger, elemental.json.JsonValue state)Navigates the given UI to the given location.Constructors in com.vaadin.flow.router with parameters of type UI Constructor Description BeforeEnterEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui, List<Class<? extends RouterLayout>> layouts)Constructs a new BeforeEnterEvent.BeforeEnterEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, RouteParameters parameters, UI ui, List<Class<? extends RouterLayout>> layouts)Constructs a new BeforeEnterEvent.BeforeEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui, List<Class<? extends RouterLayout>> layouts)Constructs a new BeforeEvent.BeforeEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, RouteParameters parameters, UI ui, List<Class<? extends RouterLayout>> layouts)Constructs a new BeforeEvent.BeforeLeaveEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, UI ui, List<Class<? extends RouterLayout>> layouts)Constructs a new BeforeLeaveEvent.BeforeLeaveEvent(Router router, NavigationTrigger trigger, Location location, Class<?> navigationTarget, RouteParameters parameters, UI ui, List<Class<? extends RouterLayout>> layouts)Constructs a new BeforeLeaveEvent.ErrorNavigationEvent(Router router, Location location, UI ui, NavigationTrigger trigger, ErrorParameter<?> errorParameter)Creates a new navigation event.ErrorNavigationEvent(Router router, Location location, UI ui, NavigationTrigger trigger, ErrorParameter<?> errorParameter, elemental.json.JsonValue state)Creates a new navigation event.LocationChangeEvent(Router router, UI ui, NavigationTrigger trigger, Location location, List<HasElement> routeTargetChain)Creates a new location change event.NavigationEvent(Router router, Location location, UI ui, NavigationTrigger trigger)Creates a new navigation event.NavigationEvent(Router router, Location location, UI ui, NavigationTrigger trigger, elemental.json.JsonValue state, boolean forwardTo)Creates a new navigation event. -
Uses of UI in com.vaadin.flow.router.internal
Methods in com.vaadin.flow.router.internal with parameters of type UI Modifier and Type Method Description static voidAbstractNavigationStateRenderer. purgeInactiveUIPreservedChainCache(UI inactiveUI)Removes preserved component cache for an inactive UI. -
Uses of UI in com.vaadin.flow.server
Methods in com.vaadin.flow.server that return UI Modifier and Type Method Description UIVaadinService. findUI(VaadinRequest request)Finds theUIthat belongs to the provided request.UIInitialPageSettings. getUi()Deprecated.Get the target UI instance.UIBootstrapHandler.BootstrapContext. getUI()Gets the UI.UIBootstrapPageResponse. getUI()Deprecated.Gets the UI that will be displayed on the generated bootstrap page.UIUIInitEvent. getUI()Get the initialized UI for this initialization event.UIVaadinSession. getUIById(int uiId)Returns a UI with the given id.Methods in com.vaadin.flow.server that return types with arguments of type UI Modifier and Type Method Description Optional<UI>AppShellSettings. getUi()Get the target UI instance.protected static Class<? extends UI>BootstrapHandler. getUIClass(VaadinRequest request)Returns the UI class mapped for servlet that handles the given request.Collection<UI>VaadinSession. getUIs()Gets all the UIs of this session.Methods in com.vaadin.flow.server with parameters of type UI Modifier and Type Method Description voidVaadinSession. addUI(UI ui)Adds an initialized UI to this session.protected BootstrapHandler.BootstrapContextBootstrapHandler. createBootstrapContext(VaadinRequest request, VaadinResponse response, UI ui, Function<VaadinRequest,String> contextPathCallback)voidVaadinService. fireUIInitListeners(UI ui)Fire UI initialization event to all registeredUIInitListeners.protected static elemental.json.JsonObjectBootstrapHandler. getInitialUidl(UI ui)Generates the initial UIDL message which is included in the initial bootstrap page.protected voidBootstrapHandler. initializeUIWithRouter(BootstrapHandler.BootstrapContext context, UI ui)static booleanVaadinService. isCsrfTokenValid(UI ui, String requestToken)Verifies that the given CSRF token (synchronizer token pattern) is valid for the given UI.booleanVaadinService. isUIActive(UI ui)Returns whether the given UI is active (the client-side actively communicates with the server) or whether it can be removed from the session and eventually collected.voidVaadinSession. removeUI(UI ui)Called by the framework to remove an UI instance from the session because it has been closed.Method parameters in com.vaadin.flow.server with type arguments of type UI Modifier and Type Method Description protected BootstrapHandler.BootstrapContextBootstrapHandler. createAndInitUI(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session)Constructors in com.vaadin.flow.server with parameters of type UI Constructor Description BootstrapContext(VaadinRequest request, VaadinResponse response, VaadinSession session, UI ui, Function<VaadinRequest,String> contextCallback)Creates a new context instance using the given parameters.BootstrapContext(VaadinRequest request, VaadinResponse response, VaadinSession session, UI ui, Function<VaadinRequest,String> contextCallback, Function<VaadinRequest,Location> routeCallback)Creates a new context instance using the given parameters.BootstrapPageResponse(VaadinRequest request, VaadinSession session, VaadinResponse response, org.jsoup.nodes.Document document, UI ui, VaadinUriResolver uriResolver)Deprecated.Create a new bootstrap page response.BootstrapUriResolver(UI ui)Creates a new bootstrap resolver based on the given ui.InitialPageSettings(VaadinRequest request, UI ui, AfterNavigationEvent afterNavigationEvent, WebBrowser browser)Deprecated.Create new initial page settings object.UIInitEvent(UI ui, VaadinService service)Constructs a prototypical Event. -
Uses of UI in com.vaadin.flow.server.communication
Methods in com.vaadin.flow.server.communication that return UI Modifier and Type Method Description protected UIAtmospherePushConnection. getUI()Methods in com.vaadin.flow.server.communication that return types with arguments of type UI Modifier and Type Method Description Optional<UI>IndexHtmlResponse. getUI()Gets the UI that will be displayed on the generated HTML page.Methods in com.vaadin.flow.server.communication with parameters of type UI Modifier and Type Method Description protected booleanReturnChannelHandler. allowInert(UI ui, elemental.json.JsonObject invocationJson)protected BootstrapHandler.BootstrapContextJavaScriptBootstrapHandler. createBootstrapContext(VaadinRequest request, VaadinResponse response, UI ui, Function<VaadinRequest,String> callback)protected BootstrapHandler.BootstrapContextWebComponentBootstrapHandler. createBootstrapContext(VaadinRequest request, VaadinResponse response, UI ui, Function<VaadinRequest,String> callback)elemental.json.JsonObjectMetadataWriter. createMetadata(UI ui, boolean repaintAll, boolean async, SystemMessages messages)Creates a JSON object containing metadata related to the given UI.elemental.json.JsonObjectUidlWriter. createUidl(UI ui, boolean async)Creates a JSON object containing all pending changes to the given UI.elemental.json.JsonObjectUidlWriter. createUidl(UI ui, boolean async, boolean resync)Creates a JSON object containing all pending changes to the given UI.voidServerRpcHandler. handleRpc(UI ui, Reader reader, VaadinRequest request)Reads JSON containing zero or more serialized RPC calls (including legacy variable changes) and executes the calls.voidServerRpcHandler. handleRpc(UI ui, String message, VaadinRequest request)Reads JSON containing zero or more serialized RPC calls (including legacy variable changes) and executes the calls.protected voidIndexHtmlRequestHandler. initializeUIWithRouter(BootstrapHandler.BootstrapContext context, UI ui)protected voidJavaScriptBootstrapHandler. initializeUIWithRouter(BootstrapHandler.BootstrapContext context, UI ui)Method parameters in com.vaadin.flow.server.communication with type arguments of type UI Modifier and Type Method Description protected BootstrapHandler.BootstrapContextJavaScriptBootstrapHandler. createAndInitUI(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session)protected BootstrapHandler.BootstrapContextWebComponentBootstrapHandler. createAndInitUI(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session)Constructors in com.vaadin.flow.server.communication with parameters of type UI Constructor Description AtmospherePushConnection(UI ui)Creates an instance connected to the given UI.IndexHtmlResponse(VaadinRequest vaadinRequest, VaadinResponse vaadinResponse, org.jsoup.nodes.Document document, UI ui)Create a response object for client side bootstrapping with UI.JavaScriptBootstrapContext(VaadinRequest request, VaadinResponse response, UI ui, Function<VaadinRequest,String> callback)Creates a new context instance using the given parameters. -
Uses of UI in com.vaadin.flow.server.communication.rpc
Methods in com.vaadin.flow.server.communication.rpc with parameters of type UI Modifier and Type Method Description protected booleanAbstractRpcInvocationHandler. allowInert(UI ui, elemental.json.JsonObject invocationJson)Specifies whether inert status should be ignored for an RPC invocation or not.protected booleanPublishedServerEventHandlerRpcHandler. allowInert(UI ui, elemental.json.JsonObject invocationJson)Optional<Runnable>AbstractRpcInvocationHandler. handle(UI ui, elemental.json.JsonObject invocationJson)Optional<Runnable>NavigationRpcHandler. handle(UI ui, elemental.json.JsonObject invocationJson)Optional<Runnable>RpcInvocationHandler. handle(UI ui, elemental.json.JsonObject invocationJson)Handles RPC datainvocationJsonusinguias a context.
-