Modifier and Type | Method and Description |
---|---|
static UI |
UI.getCurrent()
Gets the currently used UI.
|
Modifier and Type | Method and Description |
---|---|
Optional<UI> |
UI.getUI() |
Optional<UI> |
Component.getUI()
Gets the UI this component is attached to.
|
Modifier and Type | Method and Description |
---|---|
static void |
UI.setCurrent(UI ui)
Sets the thread local for the current UI.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static ChartOptions |
ChartOptions.get(UI ui)
Returns a ChartOptions instance for the given UI.
|
Modifier and Type | Class and Description |
---|---|
class |
JavaScriptBootstrapUI
Custom UI for
JavaScriptBootstrapHandler . |
Modifier and Type | Method and Description |
---|---|
UI |
HeartbeatEvent.getSource() |
UI |
UIInternals.getUI()
Gets the UI that this instance belongs to.
|
UI |
AbstractAttachDetachEvent.getUI()
Gets the UI the component is attached to.
|
Modifier and Type | Method and Description |
---|---|
void |
UIInternals.moveElementsFrom(UI otherUI)
Move all the children of the other UI to this current UI.
|
default void |
UIInternalUpdater.moveToNewUI(UI oldUI,
UI newUI)
Move all the children from the old UI to the new UI.
|
default void |
UIInternalUpdater.updateRoot(UI ui,
HasElement oldRoot,
HasElement newRoot)
Update root element of the given UI.
|
Constructor and Description |
---|
HeartbeatEvent(UI ui,
long heartbeatTime)
Constructs a heartbeat Event.
|
UIInternals(UI ui)
Creates a new instance for the given UI.
|
UIInternals(UI ui,
UIInternalUpdater internalsHandler)
Creates a new instance for the given UI.
|
Modifier and Type | Method and Description |
---|---|
UI |
History.getUI()
Gets the UI that this instance belongs to.
|
Constructor and Description |
---|
History(UI ui)
Creates a history API endpoint for the given UI.
|
Page(UI ui)
Creates a page instance for the given UI.
|
Modifier and Type | Class and Description |
---|---|
class |
WebComponentUI
Custom UI for use with WebComponents served from the server.
|
Constructor and Description |
---|
WebComponentConnectEvent(UI source,
boolean fromClient,
String tag,
String webComponentElementId,
String userAssignedId,
elemental.json.JsonObject attributeValues)
Creates a new web component connection event.
|
Modifier and Type | Method and Description |
---|---|
static Instantiator |
Instantiator.get(UI ui)
Gets the instantiator to use for the given UI.
|
Modifier and Type | Method and Description |
---|---|
UI |
LocaleChangeEvent.getUI()
Returns the UI where the locale changed in.
|
Constructor and Description |
---|
LocaleChangeEvent(UI ui,
Locale locale)
Locale change event constructor.
|
Modifier and Type | Method and Description |
---|---|
UI |
StateTree.getUI()
Gets the
UI that this tree belongs to. |
UI |
ExecutionContext.getUI()
Gets the UI associated with the execution.
|
Modifier and Type | Method and Description |
---|---|
static Map<Class<?>,CurrentInstance> |
CurrentInstance.setCurrent(UI ui)
Sets current instances for the UI and all related classes.
|
Modifier and Type | Method and Description |
---|---|
void |
StateNode.runWhenAttached(SerializableConsumer<UI> command)
Runs the command when the node is attached to a UI.
|
Constructor and Description |
---|
ExecutionContext(UI ui,
boolean clientSideInitialized)
Creates a new, immutable context.
|
Modifier and Type | Method and Description |
---|---|
UI |
NavigationEvent.getUI()
Gets the UI in which the navigation occurs.
|
UI |
LocationChangeEvent.getUI()
Gets the UI in which the view is shown.
|
UI |
BeforeEvent.getUI()
Gets the UI this navigation takes place inside.
|
Modifier and Type | Method and Description |
---|---|
static List<AfterNavigationObserver> |
EventUtil.collectAfterNavigationObservers(UI ui)
Collect all Components implementing
AfterNavigationObserver that
are found in the given UI. |
static List<BeforeLeaveObserver> |
EventUtil.collectBeforeLeaveObservers(UI ui)
Collect all Components implementing
BeforeLeaveObserver connected
to the given UI. |
static void |
EventUtil.informLocaleChangeObservers(UI ui)
Inform components connected to the given ui that implement
LocaleChangeObserver about locale change. |
static void |
EventUtil.informLocaleChangeObservers(UI ui,
List<HasElement> components)
Inform components implementing
LocaleChangeObserver about locale
change. |
void |
Router.initializeUI(UI ui,
Location location)
Enables navigation for a new UI instance.
|
void |
Router.initializeUI(UI ui,
VaadinRequest initRequest)
Deprecated.
use
Router.initializeUI(UI, Location) instead |
int |
Router.navigate(UI ui,
Location location,
NavigationTrigger trigger)
Navigates the given UI to the given location.
|
int |
Router.navigate(UI ui,
Location location,
NavigationTrigger trigger,
elemental.json.JsonValue state)
Navigates the given UI to the given location.
|
Constructor and Description |
---|
BeforeEnterEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
RouteParameters parameters,
UI ui,
List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeEnterEvent.
|
BeforeEnterEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
UI ui,
List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeEnterEvent.
|
BeforeEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
RouteParameters parameters,
UI ui,
List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeEvent.
|
BeforeEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
UI ui,
List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeEvent.
|
BeforeLeaveEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
RouteParameters parameters,
UI ui,
List<Class<? extends RouterLayout>> layouts)
Constructs a new BeforeLeaveEvent.
|
BeforeLeaveEvent(Router router,
NavigationTrigger trigger,
Location location,
Class<?> navigationTarget,
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.
|
Modifier and Type | Method and Description |
---|---|
UI |
VaadinService.findUI(VaadinRequest request)
Finds the
UI that belongs to the provided request. |
UI |
InitialPageSettings.getUi()
Deprecated.
Get the target UI instance.
|
UI |
UIInitEvent.getUI()
Get the initialized UI for this initialization event.
|
UI |
BootstrapPageResponse.getUI()
Deprecated.
Gets the UI that will be displayed on the generated bootstrap page.
|
UI |
BootstrapHandler.BootstrapContext.getUI()
Gets the UI.
|
UI |
VaadinSession.getUIById(int uiId)
Returns a UI with the given id.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
VaadinSession.addUI(UI ui)
Adds an initialized UI to this session.
|
protected BootstrapHandler.BootstrapContext |
BootstrapHandler.createBootstrapContext(VaadinRequest request,
VaadinResponse response,
UI ui,
Function<VaadinRequest,String> contextPathCallback)
|
void |
VaadinService.fireUIInitListeners(UI ui)
Fire UI initialization event to all registered
UIInitListener s. |
protected static elemental.json.JsonObject |
BootstrapHandler.getInitialUidl(UI ui)
Generates the initial UIDL message which is included in the initial
bootstrap page.
|
protected void |
BootstrapHandler.initializeUIWithRouter(BootstrapHandler.BootstrapContext context,
UI ui) |
static boolean |
VaadinService.isCsrfTokenValid(UI ui,
String requestToken)
Verifies that the given CSRF token (synchronizer token pattern) is valid
for the given UI.
|
boolean |
VaadinService.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.
|
void |
VaadinSession.removeUI(UI ui)
Called by the framework to remove an UI instance from the session because
it has been closed.
|
Modifier and Type | Method and Description |
---|---|
protected BootstrapHandler.BootstrapContext |
BootstrapHandler.createAndInitUI(Class<? extends UI> uiClass,
VaadinRequest request,
VaadinResponse response,
VaadinSession session) |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
protected UI |
AtmospherePushConnection.getUI() |
Modifier and Type | Method and Description |
---|---|
Optional<UI> |
IndexHtmlResponse.getUI()
Gets the UI that will be displayed on the generated HTML page.
|
Modifier and Type | Method and Description |
---|---|
protected BootstrapHandler.BootstrapContext |
WebComponentBootstrapHandler.createBootstrapContext(VaadinRequest request,
VaadinResponse response,
UI ui,
Function<VaadinRequest,String> callback) |
protected BootstrapHandler.BootstrapContext |
JavaScriptBootstrapHandler.createBootstrapContext(VaadinRequest request,
VaadinResponse response,
UI ui,
Function<VaadinRequest,String> callback) |
elemental.json.JsonObject |
MetadataWriter.createMetadata(UI ui,
boolean repaintAll,
boolean async,
SystemMessages messages)
Creates a JSON object containing metadata related to the given UI.
|
elemental.json.JsonObject |
UidlWriter.createUidl(UI ui,
boolean async)
Creates a JSON object containing all pending changes to the given UI.
|
elemental.json.JsonObject |
UidlWriter.createUidl(UI ui,
boolean async,
boolean resync)
Creates a JSON object containing all pending changes to the given UI.
|
void |
ServerRpcHandler.handleRpc(UI ui,
Reader reader,
VaadinRequest request)
Reads JSON containing zero or more serialized RPC calls (including legacy
variable changes) and executes the calls.
|
protected void |
JavaScriptBootstrapHandler.initializeUIWithRouter(BootstrapHandler.BootstrapContext context,
UI ui) |
protected void |
IndexHtmlRequestHandler.initializeUIWithRouter(BootstrapHandler.BootstrapContext context,
UI ui) |
Modifier and Type | Method and Description |
---|---|
protected BootstrapHandler.BootstrapContext |
WebComponentBootstrapHandler.createAndInitUI(Class<? extends UI> uiClass,
VaadinRequest request,
VaadinResponse response,
VaadinSession session) |
protected BootstrapHandler.BootstrapContext |
JavaScriptBootstrapHandler.createAndInitUI(Class<? extends UI> uiClass,
VaadinRequest request,
VaadinResponse response,
VaadinSession session) |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Optional<Runnable> |
RpcInvocationHandler.handle(UI ui,
elemental.json.JsonObject invocationJson)
Handles RPC data
invocationJson using ui as a context. |
Optional<Runnable> |
NavigationRpcHandler.handle(UI ui,
elemental.json.JsonObject invocationJson) |
Optional<Runnable> |
AbstractRpcInvocationHandler.handle(UI ui,
elemental.json.JsonObject invocationJson) |
Copyright © 2024. All rights reserved.