public class WebComponentUI extends UI
For internal use only. May be renamed or removed in a future release.
| Modifier and Type | Class and Description |
|---|---|
static class |
WebComponentUI.WebComponentConnectEvent
Event used for sending the activation event for an exported web component
from the client to the server.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_NAVIGATION |
| Constructor and Description |
|---|
WebComponentUI() |
| Modifier and Type | Method and Description |
|---|---|
void |
doInit(VaadinRequest request,
int uiId)
Internal initialization method, should not be overridden.
|
Router |
getRouter()
Deprecated.
For internal use only. Will be removed in the future.
|
Optional<ThemeDefinition> |
getThemeFor(Class<?> navigationTarget,
String path)
Gets the
ThemeDefinition associated with the given navigation
target, if any. |
boolean |
isNavigationSupported()
Returns false, since WebComponentUI does not support navigation.
|
<T,C extends Component & HasUrlParameter<T>> |
navigate(Class<? extends C> navigationTarget,
T parameter)
Updates this UI to show the view corresponding to the given navigation
target with the specified parameter.
|
void |
navigate(Class<? extends Component> navigationTarget)
Updates this UI to show the view corresponding to the given navigation
target.
|
void |
navigate(String location)
Updates this UI to show the view corresponding to the given location.
|
void |
navigate(String location,
QueryParameters queryParameters)
Updates this UI to show the view corresponding to the given location and
query parameters.
|
access, accessLater, accessLater, accessSynchronously, add, addAfterNavigationListener, addBeforeEnterListener, addBeforeLeaveListener, addShortcutListener, addShortcutListener, beforeClientResponse, close, getActiveDragSourceComponent, getCsrfToken, getCurrent, getElement, getInternals, getLoadingIndicatorConfiguration, getLocale, getNavigationListeners, getPage, getPollInterval, getPushConfiguration, getReconnectDialogConfiguration, getSession, getUI, getUIId, init, isClosing, navigate, onAttach, onDetach, push, setCurrent, setDirection, setLocale, setPollIntervaladdListener, fireEvent, from, get, getChildren, getEventBus, getId, getParent, getTranslation, getTranslation, getTranslation, getTranslation, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPollListeneradd, addComponentAsFirst, addComponentAtIndex, remove, removeAllisEnabled, setEnabledremoveRouterLayoutContent, showRouterLayoutContentaddAttachListeneraddDetachListenerpublic static final String NO_NAVIGATION
public void doInit(VaadinRequest request, int uiId)
UIdoInit in class UIrequest - the initialization requestuiId - the id of the new uiUI.getUIId()@Deprecated public Router getRouter()
null, since WebComponentUI doesn't support
navigation.public boolean isNavigationSupported()
isNavigationSupported in class UIfalsepublic Optional<ThemeDefinition> getThemeFor(Class<?> navigationTarget, String path)
UIThemeDefinition associated with the given navigation
target, if any. The theme is defined by using the Theme
annotation on the navigation target class.
If no Theme and NoTheme annotation are used, by default
the com.vaadin.flow.theme.lumo.Lumo class is used (if present on
the classpath).
getThemeFor in class UInavigationTarget - the navigation target classpath - the resolved route path so we can determine what the rendered
target is forThemeUtil.findThemeForNavigationTarget(UI, Class, String)public void navigate(String location)
UI
Besides the navigation to the location this method also updates
the browser location (and page history).
navigate in class UIlocation - the location to navigate to, not nullUI.navigate(String, QueryParameters),
Router.navigate(UI, Location, NavigationTrigger)public void navigate(Class<? extends Component> navigationTarget)
UI
Besides the navigation to the location this method also updates
the browser location (and page history).
navigate in class UInavigationTarget - navigation target to navigate toUI.navigate(Class, Object),
UI.navigate(Class, RouteParameters)public <T,C extends Component & HasUrlParameter<T>> void navigate(Class<? extends C> navigationTarget, T parameter)
UI
Besides the navigation to the location this method also updates
the browser location (and page history).
Note! A null parameter will be handled the same as
navigate(navigationTarget) and will throw an exception if HasUrlParameter
is not @OptionalParameter or @WildcardParameter.
public void navigate(String location, QueryParameters queryParameters)
UI
Besides the navigation to the location this method also updates
the browser location (and page history).
navigate in class UIlocation - the location to navigate to, not nullqueryParameters - query parameters that are used for navigation, not
nullUI.navigate(String),
Router.navigate(UI, Location, NavigationTrigger)Copyright © 2025. All rights reserved.