@Component(value="cuba_AppUI") @Scope(value="prototype") public class AppUI extends CubaUI implements com.vaadin.server.ErrorHandler, EnhancedUI, UiExceptionHandler.UiContext
CubaUI.SystemMessagescom.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(CubaTimer timer) |
protected void |
autowireContext(java.lang.Object instance,
org.springframework.context.ApplicationContext applicationContext) |
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() |
CubaFileDownloader |
getFileDownloader() |
Fragments |
getFragments() |
History |
getHistory() |
Notifications |
getNotifications() |
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() |
WebBrowserTools |
getWebBrowserTools() |
java.lang.String |
getWebJarPath(java.lang.String webjar,
java.lang.String partialPath) |
WindowManager |
getWindowManager()
Deprecated.
|
void |
handleRequest(com.vaadin.server.VaadinRequest request) |
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) |
protected void |
setScreens(Screens screens) |
void |
setTopLevelWindow(RootWindow window)
INTERNAL.
|
protected void |
setupUI() |
void |
setUrlChangeHandler(UrlChangeHandler urlChangeHandler) |
void |
setUrlRouting(UrlRouting urlRouting) |
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, updateSystemMessagesLocaleaccess, 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, 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, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, 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, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, 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, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, handleConnectorRequest, isAttached, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic 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 UiEventsMulticaster uiEventsMulticaster
@Inject protected IconResolver iconResolver
@Inject protected WebJarResourceResolver webJarResourceResolver
@Inject protected BeanLocator beanLocator
protected TestIdManager testIdManager
protected boolean testMode
protected boolean performanceTestMode
protected CubaFileDownloader 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 see CubaBootstrapListener.
protected void initInternalComponents()
protected void initHistoryBackControl()
protected App createApplication()
@Deprecated public WindowManager getWindowManager()
getScreens() instead.public Screens getScreens()
getScreens in interface UiExceptionHandler.UiContextprotected void setScreens(Screens screens)
public Dialogs getDialogs()
getDialogs in interface UiExceptionHandler.UiContextprotected void setDialogs(Dialogs dialogs)
public Notifications getNotifications()
getNotifications in interface UiExceptionHandler.UiContextprotected void setNotifications(Notifications notifications)
public WebBrowserTools getWebBrowserTools()
getWebBrowserTools in interface UiExceptionHandler.UiContextprotected void setWebBrowserTools(WebBrowserTools webBrowserTools)
public Fragments getFragments()
getFragments in interface UiExceptionHandler.UiContextprotected 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)
protected void publishAppInitializedEvent(App app)
protected void showCriticalExceptionMessage(java.lang.Exception exception)
protected void setupUI()
throws LoginException
LoginExceptionprotected 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.UIpublic static AppUI getCurrent()
public App getApp()
@Nullable public RootWindow getTopLevelWindow()
@Nonnull public RootWindow getTopLevelWindowNN()
public void setTopLevelWindow(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(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 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 updateUiTheme()
public CubaFileDownloader getFileDownloader()
public UiEventsMulticaster getUiEventsMulticaster()
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.PaintException