@Deprecated public final class CubaScreens extends io.jmix.ui.sys.ScreensImpl implements Screens, WindowManager
io.jmix.ui.sys.ScreensImpl.OpenedScreensImpl, io.jmix.ui.sys.ScreensImpl.ScreenOpenDetails, io.jmix.ui.sys.ScreensImpl.TabCloseTask, io.jmix.ui.sys.ScreensImpl.TabWindowContainerImpl, io.jmix.ui.sys.ScreensImpl.WindowStackImpl
Screens.LaunchMode
io.jmix.ui.Screens.OpenedScreens, io.jmix.ui.Screens.WindowStack
WindowManager.OpenType
Modifier and Type | Field and Description |
---|---|
protected UiComponents |
cubaUiComponents
Deprecated.
|
protected DataSupplier |
defaultDataSupplier
Deprecated.
|
protected io.jmix.ui.Facets |
facets
Deprecated.
|
protected ScreenViewsLoader |
screenViewsLoader
Deprecated.
|
protected io.jmix.ui.sys.ScreenXmlLoader |
screenXmlLoader
Deprecated.
|
Constructor and Description |
---|
CubaScreens()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyOpenTypeParameters(io.jmix.ui.component.Window window,
WindowManager.OpenType openType)
Deprecated.
|
void |
close(io.jmix.ui.component.Window window)
Deprecated.
Closes a given window.
|
protected io.jmix.ui.Notifications.NotificationType |
convertNotificationType(Frame.NotificationType type)
Deprecated.
|
protected io.jmix.ui.xml.layout.loader.ComponentLoaderContext |
createComponentLoaderContext(io.jmix.ui.screen.ScreenOptions options)
Deprecated.
|
protected io.jmix.ui.component.DialogWindow |
createDialogWindow(io.jmix.ui.WindowInfo windowInfo)
Deprecated.
|
io.jmix.ui.screen.Screen |
createEditor(io.jmix.ui.WindowInfo windowInfo,
io.jmix.core.Entity item,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
protected io.jmix.ui.component.RootWindow |
createRootWindow(io.jmix.ui.WindowInfo windowInfo)
Deprecated.
|
protected io.jmix.ui.component.TabWindow |
createTabWindow(io.jmix.ui.WindowInfo windowInfo)
Deprecated.
|
protected io.jmix.ui.sys.WindowContextImpl |
createWindowContext(io.jmix.ui.component.Window window,
io.jmix.ui.sys.ScreensImpl.ScreenOpenDetails openDetails)
Deprecated.
|
protected void |
findMessageGroup(org.dom4j.Element element,
java.lang.String descriptorPath,
io.jmix.ui.xml.layout.loader.ComponentLoaderContext componentLoaderContext)
Deprecated.
|
protected void |
fireScreenAfterShowEvent(io.jmix.ui.screen.FrameOwner frameOwner,
java.lang.Class<io.jmix.ui.screen.Screen.AfterShowEvent> eventType,
io.jmix.ui.screen.Screen.AfterShowEvent event)
Deprecated.
|
protected void |
fireScreenBeforeShowEvent(io.jmix.ui.screen.FrameOwner frameOwner,
java.lang.Class<io.jmix.ui.screen.Screen.BeforeShowEvent> eventType,
io.jmix.ui.screen.Screen.BeforeShowEvent event)
Deprecated.
|
protected void |
fireScreenInitEvent(io.jmix.ui.screen.FrameOwner frameOwner,
java.lang.Class<io.jmix.ui.screen.Screen.InitEvent> eventType,
io.jmix.ui.screen.Screen.InitEvent event)
Deprecated.
|
java.util.Collection<io.jmix.ui.component.Window> |
getOpenWindows()
Deprecated.
|
protected Settings |
getSettingsImpl(java.lang.String id)
Deprecated.
|
protected void |
initDatasources(io.jmix.ui.component.Window window,
DsContext dsContext,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
protected void |
initDsContext(io.jmix.ui.screen.Screen screen,
org.dom4j.Element screenDescriptor,
io.jmix.ui.xml.layout.loader.ComponentLoaderContext context)
Deprecated.
|
protected boolean |
isCubaScreen(io.jmix.ui.WindowInfo windowInfo)
Deprecated.
|
protected DsContext |
loadDsContext(org.dom4j.Element element)
Deprecated.
|
protected <T extends io.jmix.ui.screen.Screen> |
loadWindowFromXml(org.dom4j.Element element,
io.jmix.ui.WindowInfo windowInfo,
io.jmix.ui.component.Window window,
T controller,
io.jmix.ui.xml.layout.loader.ComponentLoaderContext componentLoaderContext)
Deprecated.
|
Window.Editor |
openEditor(io.jmix.ui.WindowInfo windowInfo,
io.jmix.core.Entity item,
WindowManager.OpenType openType)
Deprecated.
|
Window.Editor |
openEditor(io.jmix.ui.WindowInfo windowInfo,
io.jmix.core.Entity item,
WindowManager.OpenType openType,
Datasource parentDs)
Deprecated.
|
Window.Editor |
openEditor(io.jmix.ui.WindowInfo windowInfo,
io.jmix.core.Entity item,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
Window.Editor |
openEditor(io.jmix.ui.WindowInfo windowInfo,
io.jmix.core.Entity item,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params,
Datasource parentDs)
Deprecated.
|
io.jmix.ui.component.Frame |
openFrame(io.jmix.ui.component.Frame parentFrame,
io.jmix.ui.component.Component parent,
java.lang.String id,
io.jmix.ui.WindowInfo windowInfo,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
io.jmix.ui.component.Frame |
openFrame(io.jmix.ui.component.Frame parentFrame,
io.jmix.ui.component.Component parent,
io.jmix.ui.WindowInfo windowInfo)
Deprecated.
|
io.jmix.ui.component.Frame |
openFrame(io.jmix.ui.component.Frame parentFrame,
io.jmix.ui.component.Component parent,
io.jmix.ui.WindowInfo windowInfo,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
Window.Lookup |
openLookup(io.jmix.ui.WindowInfo windowInfo,
Window.Lookup.Handler handler,
WindowManager.OpenType openType)
Deprecated.
|
Window.Lookup |
openLookup(io.jmix.ui.WindowInfo windowInfo,
Window.Lookup.Handler handler,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
Window |
openWindow(io.jmix.ui.WindowInfo windowInfo,
WindowManager.OpenType openType)
Deprecated.
|
Window |
openWindow(io.jmix.ui.WindowInfo windowInfo,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
void |
selectWindowTab(io.jmix.ui.component.Window window)
Deprecated.
Select tab with window in main tabsheet.
|
void |
showExceptionDialog(java.lang.Throwable throwable)
Deprecated.
Shows exception dialog with default caption, message and displays stacktrace of given throwable.
|
void |
showExceptionDialog(java.lang.Throwable throwable,
java.lang.String caption,
java.lang.String message)
Deprecated.
Shows exception dialog with given caption, message and displays stacktrace of given throwable.
|
void |
showMessageDialog(java.lang.String title,
java.lang.String message,
Frame.MessageType messageType)
Deprecated.
Show message dialog with title and message.
|
void |
showNotification(java.lang.String caption)
Deprecated.
Show notification with
Frame.NotificationType.HUMANIZED . |
void |
showNotification(java.lang.String caption,
Frame.NotificationType type)
Deprecated.
Show notification.
|
void |
showNotification(java.lang.String caption,
java.lang.String description,
Frame.NotificationType type)
Deprecated.
Show notification with caption description.
|
void |
showOptionDialog(java.lang.String title,
java.lang.String message,
Frame.MessageType messageType,
io.jmix.ui.action.Action[] actions)
Deprecated.
Show options dialog with title and message.
|
void |
showWebPage(java.lang.String url,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Open a web page in browser.
|
afterScreenRemove, changeUrl, checkModificationsAndCloseAll, checkModificationsAndCloseAll, checkModificationsAndCloseAll, checkNotYetOpened, checkOpened, checkPermissions, create, create, createController, createNewTabLayout, createOrUpdateState, createParametersMap, createScreen, createWindow, createWindowBreadCrumbs, fireScreenAfterDetachEvent, fireScreenAfterInitEvent, getActiveWorkAreaScreensStream, getAnyCurrentScreen, getConfiguredWorkArea, getConfiguredWorkAreaOrNull, getCurrentBreadcrumbs, getDialogScreensStream, getMessageGroup, getOpenedScreens, getOpenedWorkAreaScreensStream, getRootScreenOrNull, getScreenInfo, getTabbedScreensStacks, getWorkAreaStacks, handleTabWindowClose, handleWindowBreadCrumbsNavigate, hasModalDialogWindow, hasModalWindow, hasUnsavedChanges, isMaxTabCountExceeded, isWindowClosePrevented, loadScreenXml, prepareScreenOpenDetails, remove, removeAll, removeDialogWindow, removeNewTabWindow, removeRootWindow, removeThisTabWindow, setAppUi, show, showDialogWindow, showFromNavigation, showNewTabWindow, showRootWindow, showThisTabWindow, showTooManyOpenTabsMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create, create, create, create, getConfiguredWorkAreaOrNull, getOpenedScreens, hasUnsavedChanges, remove, removeAll, show, showFromNavigation
openDefaultScreen, setWindowCaption
@Autowired protected ScreenViewsLoader screenViewsLoader
@Autowired protected UiComponents cubaUiComponents
@Autowired protected io.jmix.ui.sys.ScreenXmlLoader screenXmlLoader
@Autowired protected io.jmix.ui.Facets facets
protected DataSupplier defaultDataSupplier
public java.util.Collection<io.jmix.ui.component.Window> getOpenWindows()
getOpenWindows
in interface WindowManager
public void selectWindowTab(io.jmix.ui.component.Window window)
WindowManager
selectWindowTab
in interface WindowManager
public Window openWindow(io.jmix.ui.WindowInfo windowInfo, WindowManager.OpenType openType, java.util.Map<java.lang.String,java.lang.Object> params)
openWindow
in interface WindowManager
public Window openWindow(io.jmix.ui.WindowInfo windowInfo, WindowManager.OpenType openType)
openWindow
in interface WindowManager
public Window.Editor openEditor(io.jmix.ui.WindowInfo windowInfo, io.jmix.core.Entity item, WindowManager.OpenType openType, Datasource parentDs)
openEditor
in interface WindowManager
public Window.Editor openEditor(io.jmix.ui.WindowInfo windowInfo, io.jmix.core.Entity item, WindowManager.OpenType openType)
openEditor
in interface WindowManager
public Window.Editor openEditor(io.jmix.ui.WindowInfo windowInfo, io.jmix.core.Entity item, WindowManager.OpenType openType, java.util.Map<java.lang.String,java.lang.Object> params)
openEditor
in interface WindowManager
public io.jmix.ui.screen.Screen createEditor(io.jmix.ui.WindowInfo windowInfo, io.jmix.core.Entity item, WindowManager.OpenType openType, @Nullable java.util.Map<java.lang.String,java.lang.Object> params)
createEditor
in interface WindowManager
public Window.Editor openEditor(io.jmix.ui.WindowInfo windowInfo, io.jmix.core.Entity item, WindowManager.OpenType openType, @Nullable java.util.Map<java.lang.String,java.lang.Object> params, Datasource parentDs)
openEditor
in interface WindowManager
public Window.Lookup openLookup(io.jmix.ui.WindowInfo windowInfo, Window.Lookup.Handler handler, WindowManager.OpenType openType, java.util.Map<java.lang.String,java.lang.Object> params)
openLookup
in interface WindowManager
public Window.Lookup openLookup(io.jmix.ui.WindowInfo windowInfo, Window.Lookup.Handler handler, WindowManager.OpenType openType)
openLookup
in interface WindowManager
public io.jmix.ui.component.Frame openFrame(io.jmix.ui.component.Frame parentFrame, io.jmix.ui.component.Component parent, io.jmix.ui.WindowInfo windowInfo)
openFrame
in interface WindowManager
public io.jmix.ui.component.Frame openFrame(io.jmix.ui.component.Frame parentFrame, io.jmix.ui.component.Component parent, io.jmix.ui.WindowInfo windowInfo, java.util.Map<java.lang.String,java.lang.Object> params)
openFrame
in interface WindowManager
public io.jmix.ui.component.Frame openFrame(io.jmix.ui.component.Frame parentFrame, io.jmix.ui.component.Component parent, @Nullable java.lang.String id, io.jmix.ui.WindowInfo windowInfo, java.util.Map<java.lang.String,java.lang.Object> params)
openFrame
in interface WindowManager
public void close(io.jmix.ui.component.Window window)
WindowManager
close
in interface WindowManager
window
- a window to closeprotected io.jmix.ui.component.DialogWindow createDialogWindow(io.jmix.ui.WindowInfo windowInfo)
createDialogWindow
in class io.jmix.ui.sys.ScreensImpl
protected io.jmix.ui.component.RootWindow createRootWindow(io.jmix.ui.WindowInfo windowInfo)
createRootWindow
in class io.jmix.ui.sys.ScreensImpl
protected io.jmix.ui.component.TabWindow createTabWindow(io.jmix.ui.WindowInfo windowInfo)
createTabWindow
in class io.jmix.ui.sys.ScreensImpl
protected boolean isCubaScreen(io.jmix.ui.WindowInfo windowInfo)
protected io.jmix.ui.sys.WindowContextImpl createWindowContext(io.jmix.ui.component.Window window, io.jmix.ui.sys.ScreensImpl.ScreenOpenDetails openDetails)
createWindowContext
in class io.jmix.ui.sys.ScreensImpl
public void showNotification(java.lang.String caption)
WindowManager
showNotification
in interface WindowManager
caption
- textpublic void showNotification(java.lang.String caption, Frame.NotificationType type)
WindowManager
\n
).showNotification
in interface WindowManager
caption
- texttype
- defines how to display the notification.
Don't forget to escape data from the database in case of *_HTML
types!public void showNotification(java.lang.String caption, java.lang.String description, Frame.NotificationType type)
WindowManager
\n
).showNotification
in interface WindowManager
caption
- captiondescription
- texttype
- defines how to display the notification.
Don't forget to escape data from the database in case of *_HTML
types!protected io.jmix.ui.Notifications.NotificationType convertNotificationType(Frame.NotificationType type)
public void showMessageDialog(java.lang.String title, java.lang.String message, Frame.MessageType messageType)
WindowManager
\n
) for non HTML messageType.showMessageDialog
in interface WindowManager
title
- dialog titlemessage
- textmessageType
- defines how to display the dialog.
Don't forget to escape data from the database in case of *_HTML
types!public void showOptionDialog(java.lang.String title, java.lang.String message, Frame.MessageType messageType, io.jmix.ui.action.Action[] actions)
WindowManager
\n
) for non HTML messageType.showOptionDialog
in interface WindowManager
title
- dialog titlemessage
- textmessageType
- defines how to display the dialog.
Don't forget to escape data from the database in case of *_HTML
types!actions
- available actionspublic void showExceptionDialog(java.lang.Throwable throwable)
WindowManager
showExceptionDialog
in interface WindowManager
throwable
- throwablepublic void showExceptionDialog(java.lang.Throwable throwable, @Nullable java.lang.String caption, @Nullable java.lang.String message)
WindowManager
showExceptionDialog
in interface WindowManager
throwable
- throwablecaption
- dialog captionmessage
- dialog messagepublic void showWebPage(java.lang.String url, @Nullable java.util.Map<java.lang.String,java.lang.Object> params)
WindowManager
WebBrowserTools
instead.showWebPage
in interface WindowManager
url
- URL of the pageparams
- optional parameters.
target
- String value used as the target name in a
window.open call in the client. This means that special values such as
"_blank", "_self", "_top", "_parent" have special meaning. If not specified, "_blank" is used.width
- Integer value specifying the width of the browser window in pixelsheight
- Integer value specifying the height of the browser window in pixelsborder
- String value specifying the border style of the window of the browser window.
Possible values are "DEFAULT", "MINIMAL", "NONE".WebBrowserTools.showWebPage(String, Map)
@Deprecated protected void applyOpenTypeParameters(io.jmix.ui.component.Window window, WindowManager.OpenType openType)
protected io.jmix.ui.xml.layout.loader.ComponentLoaderContext createComponentLoaderContext(io.jmix.ui.screen.ScreenOptions options)
createComponentLoaderContext
in class io.jmix.ui.sys.ScreensImpl
protected <T extends io.jmix.ui.screen.Screen> void loadWindowFromXml(org.dom4j.Element element, io.jmix.ui.WindowInfo windowInfo, io.jmix.ui.component.Window window, T controller, io.jmix.ui.xml.layout.loader.ComponentLoaderContext componentLoaderContext)
loadWindowFromXml
in class io.jmix.ui.sys.ScreensImpl
protected void findMessageGroup(org.dom4j.Element element, java.lang.String descriptorPath, io.jmix.ui.xml.layout.loader.ComponentLoaderContext componentLoaderContext)
findMessageGroup
in class io.jmix.ui.sys.ScreensImpl
protected void initDsContext(io.jmix.ui.screen.Screen screen, org.dom4j.Element screenDescriptor, io.jmix.ui.xml.layout.loader.ComponentLoaderContext context)
protected DsContext loadDsContext(org.dom4j.Element element)
protected void initDatasources(io.jmix.ui.component.Window window, DsContext dsContext, java.util.Map<java.lang.String,java.lang.Object> params)
protected void fireScreenInitEvent(io.jmix.ui.screen.FrameOwner frameOwner, java.lang.Class<io.jmix.ui.screen.Screen.InitEvent> eventType, io.jmix.ui.screen.Screen.InitEvent event)
fireScreenInitEvent
in class io.jmix.ui.sys.ScreensImpl
protected void fireScreenAfterShowEvent(io.jmix.ui.screen.FrameOwner frameOwner, java.lang.Class<io.jmix.ui.screen.Screen.AfterShowEvent> eventType, io.jmix.ui.screen.Screen.AfterShowEvent event)
fireScreenAfterShowEvent
in class io.jmix.ui.sys.ScreensImpl
protected void fireScreenBeforeShowEvent(io.jmix.ui.screen.FrameOwner frameOwner, java.lang.Class<io.jmix.ui.screen.Screen.BeforeShowEvent> eventType, io.jmix.ui.screen.Screen.BeforeShowEvent event)
fireScreenBeforeShowEvent
in class io.jmix.ui.sys.ScreensImpl
protected Settings getSettingsImpl(java.lang.String id)