public class JavaScriptBootstrapUI extends UI
JavaScriptBootstrapHandler
. This class is intended for
internal use in client side bootstrapping.
For internal use only. May be renamed or removed in a future release.
Modifier and Type | Class and Description |
---|---|
static class |
JavaScriptBootstrapUI.ClientViewPlaceholder
Placeholder view when navigating from server-side views to client-side
views.
|
Modifier and Type | Field and Description |
---|---|
static String |
SERVER_ROUTING |
Constructor and Description |
---|
JavaScriptBootstrapUI()
Create UI for client side bootstrapping.
|
Modifier and Type | Method and Description |
---|---|
void |
connectClient(String clientElementTag,
String clientElementId,
String flowRoute,
String appShellTitle)
Connect a client with the server side UI.
|
Stream<Component> |
getChildren()
Gets the child components of this component.
|
String |
getForwardToClientUrl()
Gets the new forward url.
|
void |
leaveNavigation(String route)
Check that the view can be leave.
|
void |
navigate(String pathname,
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, doInit, getActiveDragSourceComponent, getCsrfToken, getCurrent, getElement, getInternals, getLoadingIndicatorConfiguration, getLocale, getNavigationListeners, getPage, getPollInterval, getPushConfiguration, getReconnectDialogConfiguration, getRouter, getSession, getUI, getUIId, init, isClosing, isNavigationSupported, navigate, navigate, navigate, navigate, onAttach, onDetach, push, setCurrent, setDirection, setLocale, setPollInterval
addListener, fireEvent, from, get, getEventBus, getId, getParent, getTranslation, getTranslation, hasListener, isAttached, 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 SERVER_ROUTING
public JavaScriptBootstrapUI()
public Stream<Component> getChildren()
Component
The default implementation finds child components by traversing each
child Element
tree.
If the component is injected to a PolymerTemplate using the
@Id
annotation the getChildren method will only return
children added from the server side and will not return any children
declared in the template file.
getChildren
in class Component
Id
public String getForwardToClientUrl()
@ClientCallable public void connectClient(String clientElementTag, String clientElementId, String flowRoute, String appShellTitle)
clientElementTag
- client side element tagclientElementId
- client side element idflowRoute
- flow route that should be attached to the client element@ClientCallable public void leaveNavigation(String route)
route
- the route that is navigating to.public void navigate(String pathname, QueryParameters queryParameters)
UI
Besides the navigation to the location
this method also updates
the browser location (and page history).
navigate
in class UI
pathname
- 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 © 2021. All rights reserved.