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.
|
boolean |
isNavigationSupported()
Returns true if this UI instance supports 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, getRouter, getSession, getUI, getUIId, init, isClosing, navigate, onAttach, onDetach, push, setCurrent, setDirection, setLocale, setPollIntervaladdListener, fireEvent, from, get, getChildren, getEventBus, getId, getParent, 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()public boolean isNavigationSupported()
UIisNavigationSupported in class UIpublic 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 © 2021. All rights reserved.