| Package | Description |
|---|---|
| com.vaadin.event | |
| com.vaadin.navigator | |
| com.vaadin.server | |
| com.vaadin.server.communication | |
| com.vaadin.ui | |
| com.vaadin.util |
| Modifier and Type | Method and Description |
|---|---|
UI |
MarkedAsDirtyConnectorEvent.getUi()
Get the UI for which the connector event was fired
|
UI |
UIEvents.PollEvent.getUI()
Get the
UI instance that received the poll request. |
| Constructor and Description |
|---|
MarkedAsDirtyConnectorEvent(ClientConnector source,
UI ui) |
PollEvent(UI ui) |
| Modifier and Type | Method and Description |
|---|---|
UI |
Navigator.getUI() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Navigator.init(UI ui,
NavigationStateManager stateManager,
ViewDisplay display)
Initializes a navigator created with the no arguments constructor.
|
| Constructor and Description |
|---|
Navigator(UI ui,
ComponentContainer container)
Creates a navigator that is tracking the active view using URI fragments
of the
Page containing the given UI and replacing the contents of
a ComponentContainer with the active view. |
Navigator(UI ui,
NavigationStateManager stateManager,
ViewDisplay display)
Creates a navigator.
|
Navigator(UI ui,
SingleComponentContainer container)
Creates a navigator that is tracking the active view using URI fragments
of the
Page containing the given UI and replacing the contents of
a SingleComponentContainer with the active view. |
Navigator(UI ui,
ViewDisplay display)
Creates a navigator that is tracking the active view using URI fragments
of the
Page containing the given UI. |
| Modifier and Type | Method and Description |
|---|---|
UI |
UIProvider.createInstance(UICreateEvent event) |
UI |
LegacyApplicationUIProvider.createInstance(UICreateEvent event)
Deprecated.
|
UI |
VaadinService.findUI(VaadinRequest request)
Finds the
UI that belongs to the provided request. |
UI |
LegacyApplicationUIProvider.getExistingUI(UIClassSelectionEvent event)
Deprecated.
Hack used to return existing LegacyWindow instances without regard for
out-of-sync problems.
|
UI |
LocaleService.getUI()
Retrieves the UI this service is bound to
|
UI |
DragAndDropService.getUI() |
UI |
ClientConnector.getUI()
Returns the UI this connector is attached to
|
UI |
AbstractClientConnector.getUI()
Finds a UI ancestor of this connector.
|
UI |
VaadinSession.getUIByEmbedId(String embedId)
Finds the UI with the corresponding embed id.
|
UI |
VaadinSession.getUIById(int uiId)
Returns a UI with the given id.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends UI> |
BootstrapResponse.getUiClass()
Gets the class of the UI that will be displayed on the generated
bootstrap page.
|
Class<? extends UI> |
UICreateEvent.getUIClass()
Gets the UI class that will be created.
|
Class<? extends UI> |
BootstrapHandler.BootstrapContext.getUIClass() |
abstract Class<? extends UI> |
UIProvider.getUIClass(UIClassSelectionEvent event) |
Class<? extends UI> |
LegacyApplicationUIProvider.getUIClass(UIClassSelectionEvent event)
Deprecated.
|
Class<? extends UI> |
DefaultUIProvider.getUIClass(UIClassSelectionEvent event) |
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.
|
void |
VaadinPortletSession.firePortletActionRequest(UI uI,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
For internal use by the framework only - API subject to change.
|
void |
VaadinPortletSession.firePortletEventRequest(UI uI,
javax.portlet.EventRequest request,
javax.portlet.EventResponse response)
For internal use by the framework only - API subject to change.
|
void |
VaadinPortletSession.firePortletRenderRequest(UI uI,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
For internal use by the framework only - API subject to change.
|
void |
VaadinPortletSession.firePortletResourceRequest(UI uI,
javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response)
For internal use by the framework only - API subject to change.
|
LegacyCommunicationManager.ClientCache |
LegacyCommunicationManager.getClientCache(UI uI)
Deprecated.
As of 7.1. See #11410.
|
ClientConnector |
LegacyCommunicationManager.getConnector(UI uI,
String connectorId)
Deprecated.
As of 7.1. In 7.2 and later, use
uI.getConnectorTracker().getConnector(connectorId) instead.
See ticket #11411. |
String |
LegacyCommunicationManager.getTheme(UI uI)
Deprecated.
As of 7.1. See #11412.
|
InputStream |
VaadinServletService.getThemeResourceAsStream(UI uI,
String themeName,
String resource) |
abstract InputStream |
VaadinService.getThemeResourceAsStream(UI ui,
String themeName,
String resource)
Finds the given theme resource from the web content folder or using the
class loader and returns a stream for it
|
InputStream |
VaadinPortletService.getThemeResourceAsStream(UI uI,
String themeName,
String resource) |
void |
VaadinPortletSession.PortletListener.handleActionRequest(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
UI uI) |
void |
VaadinPortletSession.PortletListener.handleEventRequest(javax.portlet.EventRequest request,
javax.portlet.EventResponse response,
UI uI) |
void |
VaadinPortletSession.PortletListener.handleRenderRequest(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
UI uI) |
void |
VaadinPortletSession.PortletListener.handleResourceRequest(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
UI uI) |
void |
VaadinSession.removeUI(UI ui)
Called by the framework to remove an UI instance from the session because
it has been closed.
|
void |
LegacyCommunicationManager.repaintAll(UI ui)
Deprecated.
|
void |
VaadinPortletSession.sendPortletEvent(UI uI,
QName name,
Serializable value)
Sends a portlet event to the indicated destination.
|
void |
VaadinPortletSession.setPortletMode(UI uI,
javax.portlet.PortletMode portletMode)
Sets the portlet mode.
|
void |
VaadinPortletSession.setSharedRenderParameter(UI uI,
String name,
String value)
Sets a shared portlet parameter.
|
static List<ComponentSizeValidator.InvalidLayout> |
ComponentSizeValidator.validateLayouts(UI ui)
Validates the layout and returns a collection of errors
|
| Modifier and Type | Method and Description |
|---|---|
String |
VaadinServletService.getMainDivId(VaadinSession session,
VaadinRequest request,
Class<? extends UI> uiClass) |
abstract String |
VaadinService.getMainDivId(VaadinSession session,
VaadinRequest request,
Class<? extends UI> uiClass)
Creates and returns a unique ID for the DIV where the UI is to be
rendered.
|
String |
VaadinPortletService.getMainDivId(VaadinSession session,
VaadinRequest request,
Class<? extends UI> uiClass) |
| Constructor and Description |
|---|
LocaleService(UI ui,
UIState.LocaleServiceState state)
Creates a LocaleService bound to the given UI
|
Page(UI uI,
PageState state) |
| Constructor and Description |
|---|
BootstrapFragmentResponse(BootstrapHandler handler,
VaadinRequest request,
VaadinSession session,
Class<? extends UI> uiClass,
List<org.jsoup.nodes.Node> fragmentNodes,
UIProvider uiProvider)
Crate a new bootstrap fragment response.
|
BootstrapPageResponse(BootstrapHandler handler,
VaadinRequest request,
VaadinSession session,
Class<? extends UI> uiClass,
org.jsoup.nodes.Document document,
Map<String,Object> headers,
UIProvider uiProvider)
Crate a new bootstrap page response.
|
BootstrapResponse(BootstrapHandler handler,
VaadinRequest request,
VaadinSession session,
Class<? extends UI> uiClass,
UIProvider uiProvider)
Creates a new bootstrap event.
|
BrowserWindowOpener(Class<? extends UI> uiClass)
Creates a window opener that will open windows containing the provided UI
class
|
BrowserWindowOpener(Class<? extends UI> uiClass,
String path)
Creates a window opener that will open windows containing the provided UI
using the provided path
|
UICreateEvent(VaadinRequest request,
Class<? extends UI> uiClass)
Creates a new UI create event for a given VaadinRequest and UI class but
without a UI id.
|
UICreateEvent(VaadinRequest request,
Class<? extends UI> uiClass,
Integer uiId)
Creates a new UI create event for a given VaadinRequest, UI class and UI
id
|
| Modifier and Type | Method and Description |
|---|---|
UI |
AtmospherePushConnection.getUI()
Gets the UI this push connection is associated with.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
UIInitHandler.getInitialUidl(VaadinRequest request,
UI uI)
Generates the initial UIDL message that can e.g.
|
protected void |
ServerRpcHandler.handleInvocation(UI ui,
ClientConnector connector,
LegacyChangeVariablesInvocation legacyInvocation)
Handles the given Legacy variable change RPC method invocation for the
given connector
|
protected void |
ServerRpcHandler.handleInvocation(UI ui,
ClientConnector connector,
ServerRpcMethodInvocation invocation)
Handles the given RPC method invocation for the given connector
|
protected void |
ServerRpcHandler.handleInvocations(UI ui,
int lastSyncIdSeenByClient,
elemental.json.JsonArray invocationsData)
Processes invocations data received from the client.
|
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.
|
Set<String> |
SharedStateWriter.write(UI ui,
Writer writer)
Writes a JSON object containing the pending state changes of the dirty
connectors of the given UI.
|
void |
ClientRpcWriter.write(UI ui,
Writer writer)
Writes a JSON object containing all pending client RPC invocations in the
given UI.
|
void |
UidlWriter.write(UI ui,
Writer writer,
boolean async)
Writes a JSON object containing all pending changes to the given UI.
|
void |
MetadataWriter.write(UI ui,
Writer writer,
boolean repaintAll,
boolean async,
SystemMessages messages)
Writes a JSON object containing metadata related to the given UI.
|
void |
ResourceWriter.write(UI ui,
Writer writer,
JsonPaintTarget target)
Writes a JSON object containing registered resources.
|
void |
LegacyUidlWriter.write(UI ui,
Writer writer,
PaintTarget target)
Writes a JSON array containing the changes of all dirty
LegacyComponents in the given UI. |
void |
ConnectorTypeWriter.write(UI ui,
Writer writer,
PaintTarget target)
Writes a JSON object containing connector-ID-to-type-ID mappings for each
dirty Connector in the given UI.
|
void |
ConnectorHierarchyWriter.write(UI ui,
Writer writer,
Set<String> stateUpdateConnectors)
Writes a JSON object containing the connector hierarchy (parent-child
mappings) of the dirty connectors in the given UI.
|
| Constructor and Description |
|---|
AtmospherePushConnection(UI ui) |
| Modifier and Type | Class and Description |
|---|---|
class |
LegacyWindow
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static UI |
UI.getCurrent()
Gets the currently used UI.
|
UI |
UI.getUI()
Overridden to return a value instead of referring to the parent.
|
UI |
Component.getUI()
Gets the UI the 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 |
|---|
ConnectorTracker(UI uI)
Creates a new ConnectorTracker for the given uI.
|
| Modifier and Type | Method and Description |
|---|---|
static Map<Class<?>,CurrentInstance> |
CurrentInstance.setCurrent(UI ui)
Sets current instances for the UI and all related classes.
|
Copyright © 2022 Vaadin Ltd. All rights reserved.