@Component(value="cuba_AppUI") @Scope(value="prototype") public class AppUI extends CubaUI implements com.vaadin.server.ErrorHandler, EnhancedUI, UiExceptionHandler.UiContext
CubaUI.SystemMessages
com.vaadin.ui.UI.WindowOrderUpdateEvent, com.vaadin.ui.UI.WindowOrderUpdateListener
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
com.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(CubaTimer timer) |
protected void |
autowireContext(java.lang.Object instance,
org.springframework.context.ApplicationContext applicationContext) |
void |
beforeTopLevelWindowInit() |
void |
clearProfiledScreens(java.util.List<java.lang.String> profilerMarkers) |
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() |
protected java.lang.String |
getExceptionCauseMessage(java.lang.Exception exception) |
CubaFileDownloader |
getFileDownloader() |
Fragments |
getFragments() |
History |
getHistory() |
Notifications |
getNotifications() |
java.lang.String |
getProfiledScreen(java.lang.String profilerMarker) |
java.lang.String |
getProfilerMarker() |
Screens |
getScreens() |
TestIdManager |
getTestIdManager() |
java.util.List<CubaTimer> |
getTimers() |
RootWindow |
getTopLevelWindow() |
protected com.vaadin.ui.AbstractComponent |
getTopLevelWindowComposition() |
RootWindow |
getTopLevelWindowNN() |
UiEventsMulticaster |
getUiEventsMulticaster() |
UrlChangeHandler |
getUrlChangeHandler() |
UrlRouting |
getUrlRouting() |
UserSession |
getUserSession() |
WebBrowserTools |
getWebBrowserTools() |
java.lang.String |
getWebJarPath(java.lang.String webjar,
java.lang.String partialPath) |
WindowManager |
getWindowManager()
Deprecated.
|
void |
handleRequest(com.vaadin.server.VaadinRequest request) |
boolean |
hasAuthenticatedSession() |
protected void |
init(com.vaadin.server.VaadinRequest request) |
protected void |
initHistoryBackControl() |
protected void |
initInternalComponents() |
protected void |
initJsLibraries()
Dynamically init external JS libraries.
|
protected boolean |
isLinkHandlerRequest(com.vaadin.server.VaadinRequest request) |
boolean |
isPerformanceTestMode() |
boolean |
isTestMode() |
protected boolean |
isUserSessionAlive(Connection connection) |
protected void |
onHistoryBackPerformed() |
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(CubaTimer timer) |
protected void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected void |
setDialogs(Dialogs dialogs) |
protected void |
setFragments(Fragments fragments) |
void |
setHistory(History history) |
protected void |
setNotifications(Notifications notifications) |
void |
setProfiledScreen(java.lang.String profilerMarker,
java.lang.String screen) |
void |
setProfilerMarker(java.lang.String profilerMarker) |
protected void |
setProfilerParameters() |
protected void |
setScreens(Screens screens) |
void |
setTopLevelWindow(RootWindow window)
INTERNAL.
|
protected void |
setupUI() |
void |
setUrlChangeHandler(UrlChangeHandler urlChangeHandler) |
void |
setUrlRouting(UrlRouting urlRouting) |
void |
setUserSession(UserSession userSession) |
protected void |
setWebBrowserTools(WebBrowserTools webBrowserTools) |
protected void |
showCriticalExceptionMessage(java.lang.Exception exception) |
java.lang.String |
translateToWebPath(java.lang.String fullWebJarPath) |
protected void |
updateClientSystemMessages(java.util.Locale locale) |
protected void |
updateUiTheme() |
isAccessibleForUser, updateSystemMessagesLocale
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, isUsingThoroughSizeCheck, 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, setUsingThoroughSizeCheck, showNotification, showNotification, showNotification, showNotification, showNotification, showNotification
addComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getContent, readDesign, readDesignChildren, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setHeight, setWidth, writeDesign
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
addAttachListener, 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, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, getCaption, getCubaId, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCubaId, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, handleConnectorRequest, isAttached, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public static final java.lang.String NAME
public static final java.lang.String LAST_REQUEST_ACTION_ATTR
public static final java.lang.String LAST_REQUEST_PARAMS_ATTR
protected App app
@Inject protected Messages messages
@Inject protected Events events
@Inject protected GlobalConfig globalConfig
@Inject protected WebConfig webConfig
@Inject protected UserSettingsTools userSettingsTools
@Inject protected ThemeConstantsRepository themeConstantsRepository
@Inject protected UserSessionSource userSessionSource
@Inject protected UserSessionService userSessionService
@Inject protected TrustedClientService trustedClientService
@Inject protected UiEventsMulticaster uiEventsMulticaster
@Inject protected IconResolver iconResolver
@Inject protected WebJarResourceResolver webJarResourceResolver
@Inject protected ScreenProfilerConfig screenProfilerConfig
@Inject protected BeanLocator beanLocator
protected TestIdManager testIdManager
protected boolean testMode
protected boolean performanceTestMode
protected CubaFileDownloader fileDownloader
protected ScreenClientProfilerAgent clientProfiler
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 java.lang.String profilerMarker
protected java.util.Map<java.lang.String,java.lang.String> profiledScreens
protected UserSession userSession
public UserSession getUserSession()
public void setUserSession(UserSession userSession)
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 see CubaBootstrapListener
.
protected void initInternalComponents()
protected void initHistoryBackControl()
protected App createApplication()
@Deprecated public WindowManager getWindowManager()
getScreens()
instead.public Screens getScreens()
getScreens
in interface UiExceptionHandler.UiContext
protected void setScreens(Screens screens)
public Dialogs getDialogs()
getDialogs
in interface UiExceptionHandler.UiContext
protected void setDialogs(Dialogs dialogs)
public Notifications getNotifications()
getNotifications
in interface UiExceptionHandler.UiContext
protected void setNotifications(Notifications notifications)
public WebBrowserTools getWebBrowserTools()
getWebBrowserTools
in interface UiExceptionHandler.UiContext
protected void setWebBrowserTools(WebBrowserTools webBrowserTools)
public Fragments getFragments()
getFragments
in interface UiExceptionHandler.UiContext
protected void setFragments(Fragments fragments)
public UrlRouting getUrlRouting()
public void setUrlRouting(UrlRouting urlRouting)
public UrlChangeHandler getUrlChangeHandler()
public void setUrlChangeHandler(UrlChangeHandler urlChangeHandler)
public History getHistory()
public void setHistory(History history)
protected void init(com.vaadin.server.VaadinRequest request)
init
in class com.vaadin.ui.UI
@Inject protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
protected void autowireContext(java.lang.Object instance, org.springframework.context.ApplicationContext applicationContext)
protected boolean isUserSessionAlive(Connection connection)
public boolean hasAuthenticatedSession()
protected void publishAppInitializedEvent(App app)
protected void showCriticalExceptionMessage(java.lang.Exception exception)
protected java.lang.String getExceptionCauseMessage(java.lang.Exception exception)
protected void setupUI() throws LoginException
LoginException
protected void refresh(com.vaadin.server.VaadinRequest request)
refresh
in class com.vaadin.ui.UI
public void handleRequest(com.vaadin.server.VaadinRequest request)
handleRequest
in class com.vaadin.ui.UI
public static AppUI getCurrent()
public App getApp()
@Nullable public RootWindow getTopLevelWindow()
@Nonnull 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.ErrorHandler
protected 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(NavigationState navigationState)
public void detach()
detach
in interface com.vaadin.server.ClientConnector
detach
in class com.vaadin.ui.UI
protected void updateClientSystemMessages(java.util.Locale locale)
protected void onHistoryBackPerformed()
protected com.vaadin.ui.AbstractComponent getTopLevelWindowComposition()
public java.util.List<CubaTimer> getTimers()
public void addTimer(CubaTimer timer)
public void removeTimer(CubaTimer timer)
public void beforeTopLevelWindowInit()
protected void setProfilerParameters()
protected void updateUiTheme()
public CubaFileDownloader getFileDownloader()
public UiEventsMulticaster getUiEventsMulticaster()
public com.vaadin.server.Resource createVersionedResource(java.lang.String value)
createVersionedResource
in interface EnhancedUI
public java.lang.String getWebJarPath(java.lang.String webjar, java.lang.String partialPath)
getWebJarPath
in interface EnhancedUI
public java.lang.String translateToWebPath(java.lang.String fullWebJarPath)
translateToWebPath
in interface EnhancedUI
public void paintContent(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException
paintContent
in interface com.vaadin.ui.LegacyComponent
paintContent
in class com.vaadin.ui.UI
com.vaadin.server.PaintException
public java.lang.String getProfilerMarker()
public void setProfilerMarker(java.lang.String profilerMarker)
setProfilerMarker
in interface EnhancedUI
public void setProfiledScreen(java.lang.String profilerMarker, java.lang.String screen)
public java.lang.String getProfiledScreen(java.lang.String profilerMarker)
public void clearProfiledScreens(java.util.List<java.lang.String> profilerMarkers)