public class WebComponentUI extends UI
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()
Gets the router used for navigating in this UI.
|
<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, onAttach, onDetach, push, setCurrent, setLocale, setPollInterval
addListener, fireEvent, from, get, getChildren, getEventBus, getId, getParent, getTranslation, getTranslation, hasListener, isTemplateMapped, isVisible, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPollListener
add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
isEnabled, setEnabled
removeRouterLayoutContent, showRouterLayoutContent
addAttachListener
addDetachListener
public static final String NO_NAVIGATION
public void doInit(VaadinRequest request, int uiId)
UI
doInit
in class UI
request
- the initialization requestuiId
- the id of the new uiUI.getUIId()
public Router getRouter()
UI
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 UI
location
- the location to navigate to, not null
UI.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).
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 UI
location
- the location to navigate to, not null
queryParameters
- query parameters that are used for navigation, not
null
UI.navigate(String)
,
Router.navigate(UI, Location, NavigationTrigger)
Copyright © 2020. All rights reserved.