@SpringUI public class AppUI extends com.vaadin.ui.UI implements com.vaadin.server.ErrorHandler, EnhancedUI, UiExceptionHandler.UiContext
| Modifier and Type | Class and Description |
|---|---|
static class |
AppUI.SystemMessages |
com.vaadin.ui.UI.WindowOrderUpdateEvent, com.vaadin.ui.UI.WindowOrderUpdateListenercom.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener| Constructor and Description |
|---|
AppUI() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTimer(JmixTimer timer) |
void |
beforeTopLevelWindowInit() |
protected App |
createApplication() |
com.vaadin.server.Resource |
createVersionedResource(java.lang.String value) |
void |
detach() |
void |
error(com.vaadin.server.ErrorEvent event) |
App |
getApp() |
static AppUI |
getCurrent() |
Dialogs |
getDialogs() |
JmixFileDownloader |
getFileDownloader() |
Fragments |
getFragments() |
History |
getHistory() |
Notifications |
getNotifications() |
Screens |
getScreens() |
TestIdManager |
getTestIdManager() |
java.util.List<JmixTimer> |
getTimers() |
RootWindow |
getTopLevelWindow() |
protected com.vaadin.ui.AbstractComponent |
getTopLevelWindowComposition() |
RootWindow |
getTopLevelWindowNN() |
UiEventsMulticaster |
getUiEventsMulticaster() |
UrlChangeHandler |
getUrlChangeHandler() |
UrlRouting |
getUrlRouting() |
WebBrowserTools |
getWebBrowserTools() |
java.lang.String |
getWebJarPath(java.lang.String webjar,
java.lang.String partialPath) |
void |
handleRequest(com.vaadin.server.VaadinRequest request) |
boolean |
hasAuthenticatedSession() |
protected void |
init(com.vaadin.server.VaadinRequest request) |
protected void |
initInternalComponents() |
protected void |
initJsLibraries()
Dynamically init external JS libraries.
|
boolean |
isAccessibleForUser(com.vaadin.ui.Component component)
Check if users can interact with the component - there are no modal windows that prevent user action.
|
protected boolean |
isLinkHandlerRequest(com.vaadin.server.VaadinRequest request) |
boolean |
isPerformanceTestMode() |
boolean |
isTestMode() |
protected boolean |
isVaadinSessionOpen() |
void |
paintContent(com.vaadin.server.PaintTarget target) |
protected void |
processExternalLink(com.vaadin.server.VaadinRequest request,
NavigationState requestedState) |
protected void |
processLinkHandlerRequest(com.vaadin.server.VaadinRequest request) |
protected void |
processRequest(NavigationState navigationState) |
protected void |
publishAppInitializedEvent(App app) |
protected void |
refresh(com.vaadin.server.VaadinRequest request) |
void |
removeTimer(JmixTimer timer) |
void |
setHistory(History history) |
void |
setTopLevelWindow(RootWindow window)
INTERNAL.
|
protected void |
setupUI() |
void |
setUrlChangeHandler(UrlChangeHandler urlChangeHandler) |
void |
setUrlRouting(UrlRouting urlRouting) |
protected void |
showCriticalExceptionMessage(java.lang.Exception exception) |
java.lang.String |
translateToWebPath(java.lang.String fullWebJarPath) |
protected void |
updateClientSystemMessages(java.util.Locale locale) |
void |
updateSystemMessagesLocale(AppUI.SystemMessages msgs) |
protected void |
updateUiTheme() |
access, accessSynchronously, addAction, addActionHandler, addClickListener, addPollListener, addWindow, addWindowOrderUpdateListener, attach, changeVariables, close, doInit, doRefresh, focus, getActionManager, getActiveDragSource, getComponentCount, getConnectorTracker, getEmbedId, getLastHeartbeatTimestamp, getLastProcessedClientToServerId, getLoadingIndicatorConfiguration, getLocaleService, getNavigator, getNotificationConfiguration, getOverlayContainerLabel, getPage, getPollInterval, getPushConfiguration, getPushConnection, getReconnectDialogConfiguration, getScrollLeft, getScrollTop, getSession, getState, getState, getStateType, getTabIndex, getTheme, getTooltipConfiguration, getUI, getUIId, getUiPathInfo, getUiRootPath, getWindows, isClosing, isConnectorEnabled, isMobileHtml5DndEnabled, isResizeLazy, iterator, push, removeAction, removeActionHandler, removeClickListener, removePollListener, removeWindow, scrollIntoView, setActiveDragSource, setCaption, setContent, setCurrent, setFocusedComponent, setLastHeartbeatTimestamp, setLastProcessedClientToServerId, setMobileHtml5DndEnabled, setNavigator, setOverlayContainerLabel, setPollInterval, setPushConnection, setResizeLazy, setScrollLeft, setScrollTop, setSession, setTabIndex, setTheme, showNotification, showNotification, showNotification, showNotification, showNotification, showNotificationaddComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getContent, readDesign, readDesignChildren, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setHeight, setWidth, writeDesignaddContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, handleConnectorRequest, isAttached, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected App app
public static final java.lang.String LAST_REQUEST_ACTION_ATTR
public static final java.lang.String LAST_REQUEST_PARAMS_ATTR
@Autowired protected io.jmix.core.Messages messages
@Autowired protected org.springframework.context.ApplicationEventPublisher eventPublisher
@Autowired protected UiEventPublisher uiEventPublisher
@Autowired protected UiProperties uiProperties
@Autowired protected ThemeConstantsRepository themeConstantsRepository
@Autowired protected io.jmix.core.security.CurrentAuthentication currentAuthentication
@Autowired protected UiEventsMulticaster uiEventsMulticaster
@Autowired protected IconResolver iconResolver
@Autowired protected WebJarResourceResolver webJarResourceResolver
@Autowired protected org.springframework.beans.factory.BeanFactory beanFactory
@Autowired(required=false) protected UserSettingsTools userSettingsTools
protected TestIdManager testIdManager
protected JmixFileDownloader fileDownloader
protected RootWindow topLevelWindow
protected Fragments fragments
protected Screens screens
protected Dialogs dialogs
protected Notifications notifications
protected WebBrowserTools webBrowserTools
protected UrlChangeHandler urlChangeHandler
protected UrlRouting urlRouting
protected History history
protected void initJsLibraries()
Example:
JavaScriptExtension:
@JavaScript("resources/jquery/jquery-1.10.2.min.js")
public class JQueryIntegration extends AbstractJavaScriptExtension {
@Override
public void extend(AbstractClientConnector target) {
super.extend(target);
}
@Override
protected Class<? extends ClientConnector> getSupportedParentType() {
return UI.class;
}
}
AppUI:
protected void initJsLibraries() {
new JQueryIntegration().extend(this);
}
If you want to include scripts to generated page statically implement BootstrapListener
protected void initInternalComponents()
protected App createApplication()
public Screens getScreens()
getScreens in interface UiExceptionHandler.UiContextpublic Dialogs getDialogs()
getDialogs in interface UiExceptionHandler.UiContextpublic Notifications getNotifications()
getNotifications in interface UiExceptionHandler.UiContextpublic WebBrowserTools getWebBrowserTools()
getWebBrowserTools in interface UiExceptionHandler.UiContextpublic Fragments getFragments()
getFragments in interface UiExceptionHandler.UiContextpublic UrlRouting getUrlRouting()
@Autowired @Lazy public void setUrlRouting(UrlRouting urlRouting)
public UrlChangeHandler getUrlChangeHandler()
@Autowired @Lazy public void setUrlChangeHandler(UrlChangeHandler urlChangeHandler)
public History getHistory()
@Autowired @Lazy public void setHistory(History history)
protected void init(com.vaadin.server.VaadinRequest request)
init in class com.vaadin.ui.UIpublic boolean hasAuthenticatedSession()
true if authentication is set and
it isn't represented by AnonymousAuthenticationTokenprotected void publishAppInitializedEvent(App app)
protected void showCriticalExceptionMessage(java.lang.Exception exception)
protected void setupUI()
protected void refresh(com.vaadin.server.VaadinRequest request)
refresh in class com.vaadin.ui.UIpublic void handleRequest(com.vaadin.server.VaadinRequest request)
handleRequest in class com.vaadin.ui.UI@Nullable public static AppUI getCurrent()
public App getApp()
@Nullable public RootWindow getTopLevelWindow()
public RootWindow getTopLevelWindowNN()
public void setTopLevelWindow(@Nullable
RootWindow window)
public TestIdManager getTestIdManager()
public boolean isTestMode()
public boolean isPerformanceTestMode()
public void error(com.vaadin.server.ErrorEvent event)
error in interface com.vaadin.server.ErrorHandlerprotected void processExternalLink(com.vaadin.server.VaadinRequest request,
NavigationState requestedState)
protected boolean isLinkHandlerRequest(com.vaadin.server.VaadinRequest request)
protected void processLinkHandlerRequest(com.vaadin.server.VaadinRequest request)
protected void processRequest(@Nullable
NavigationState navigationState)
public void detach()
detach in interface com.vaadin.server.ClientConnectordetach in class com.vaadin.ui.UIprotected void updateClientSystemMessages(java.util.Locale locale)
protected com.vaadin.ui.AbstractComponent getTopLevelWindowComposition()
public java.util.List<JmixTimer> getTimers()
public void addTimer(JmixTimer timer)
public void removeTimer(JmixTimer timer)
public void beforeTopLevelWindowInit()
protected void updateUiTheme()
public JmixFileDownloader getFileDownloader()
public UiEventsMulticaster getUiEventsMulticaster()
@Nullable public com.vaadin.server.Resource createVersionedResource(java.lang.String value)
createVersionedResource in interface EnhancedUIpublic java.lang.String getWebJarPath(java.lang.String webjar,
java.lang.String partialPath)
getWebJarPath in interface EnhancedUIpublic java.lang.String translateToWebPath(java.lang.String fullWebJarPath)
translateToWebPath in interface EnhancedUIpublic void paintContent(com.vaadin.server.PaintTarget target)
throws com.vaadin.server.PaintException
paintContent in interface com.vaadin.ui.LegacyComponentpaintContent in class com.vaadin.ui.UIcom.vaadin.server.PaintExceptionprotected boolean isVaadinSessionOpen()
public boolean isAccessibleForUser(com.vaadin.ui.Component component)
component - componentpublic void updateSystemMessagesLocale(AppUI.SystemMessages msgs)