Screens
, Dialogs
and Notifications
APIs instead.@Deprecated public interface WindowManager extends Screens
Modifier and Type | Interface and Description |
---|---|
static class |
WindowManager.OpenType
Deprecated.
|
Screens.LaunchMode, Screens.OpenedScreens, Screens.WindowStack
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAIN_MENU_ACTION_ID
Deprecated.
Constant that is passed to
Window.close(String) and Window.close(String, boolean) methods when
the screen is closed by window manager. |
NAVIGATION_CLOSE_ACTION, NAVIGATION_CLOSE_ACTION_ID
Modifier and Type | Method and Description |
---|---|
default void |
close(Window window)
Deprecated.
|
Screen |
createEditor(WindowInfo windowInfo,
Entity item,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
java.util.Collection<Window> |
getOpenWindows()
Deprecated.
Use
Screens.getOpenedScreens() instead. |
default void |
openDefaultScreen()
Deprecated.
Opens default screen.
|
Window.Editor |
openEditor(WindowInfo windowInfo,
Entity item,
WindowManager.OpenType openType)
Deprecated.
|
Window.Editor |
openEditor(WindowInfo windowInfo,
Entity item,
WindowManager.OpenType openType,
Datasource parentDs)
Deprecated.
|
Window.Editor |
openEditor(WindowInfo windowInfo,
Entity item,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
Window.Editor |
openEditor(WindowInfo windowInfo,
Entity item,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params,
Datasource parentDs)
Deprecated.
|
Frame |
openFrame(Frame parentFrame,
Component parent,
java.lang.String id,
WindowInfo windowInfo,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
Frame |
openFrame(Frame parentFrame,
Component parent,
WindowInfo windowInfo)
Deprecated.
|
Frame |
openFrame(Frame parentFrame,
Component parent,
WindowInfo windowInfo,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
Window.Lookup |
openLookup(WindowInfo windowInfo,
Window.Lookup.Handler handler,
WindowManager.OpenType openType)
Deprecated.
|
Window.Lookup |
openLookup(WindowInfo windowInfo,
Window.Lookup.Handler handler,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
Window |
openWindow(WindowInfo windowInfo,
WindowManager.OpenType openType)
Deprecated.
|
Window |
openWindow(WindowInfo windowInfo,
WindowManager.OpenType openType,
java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
|
void |
selectWindowTab(Window window)
Deprecated.
Use
Screens.getOpenedScreens() and WindowStack#select() instead. |
default void |
setWindowCaption(Window window,
java.lang.String caption,
java.lang.String description)
Deprecated.
Please use
Component.HasCaption.setCaption(String) ()} and Component.HasDescription.setDescription(String) ()} methods. |
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,
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.
|
create, create, create, create, create, getOpenedScreens, hasUnsavedChanges, remove, removeAll, show, showFromNavigation
static final java.lang.String MAIN_MENU_ACTION_ID
Window.close(String)
and Window.close(String, boolean)
methods when
the screen is closed by window manager. Propagated to Window.CloseListener#windowClosed
.@Deprecated java.util.Collection<Window> getOpenWindows()
Screens.getOpenedScreens()
instead.@Deprecated void selectWindowTab(Window window)
Screens.getOpenedScreens()
and WindowStack#select()
instead.@Deprecated default void setWindowCaption(Window window, java.lang.String caption, java.lang.String description)
Component.HasCaption.setCaption(String)
()} and Component.HasDescription.setDescription(String)
()} methods.Window openWindow(WindowInfo windowInfo, WindowManager.OpenType openType, java.util.Map<java.lang.String,java.lang.Object> params)
Window openWindow(WindowInfo windowInfo, WindowManager.OpenType openType)
Window.Editor openEditor(WindowInfo windowInfo, Entity item, WindowManager.OpenType openType, Datasource parentDs)
Window.Editor openEditor(WindowInfo windowInfo, Entity item, WindowManager.OpenType openType)
Window.Editor openEditor(WindowInfo windowInfo, Entity item, WindowManager.OpenType openType, java.util.Map<java.lang.String,java.lang.Object> params)
Window.Editor openEditor(WindowInfo windowInfo, Entity item, WindowManager.OpenType openType, java.util.Map<java.lang.String,java.lang.Object> params, Datasource parentDs)
Screen createEditor(WindowInfo windowInfo, Entity item, WindowManager.OpenType openType, java.util.Map<java.lang.String,java.lang.Object> params)
Window.Lookup openLookup(WindowInfo windowInfo, Window.Lookup.Handler handler, WindowManager.OpenType openType, java.util.Map<java.lang.String,java.lang.Object> params)
Window.Lookup openLookup(WindowInfo windowInfo, Window.Lookup.Handler handler, WindowManager.OpenType openType)
Frame openFrame(Frame parentFrame, Component parent, WindowInfo windowInfo)
Frame openFrame(Frame parentFrame, Component parent, WindowInfo windowInfo, java.util.Map<java.lang.String,java.lang.Object> params)
Frame openFrame(Frame parentFrame, Component parent, @Nullable java.lang.String id, WindowInfo windowInfo, java.util.Map<java.lang.String,java.lang.Object> params)
default void close(Window window)
default void openDefaultScreen()
Default screen can be defined with the cuba.web.defaultScreenId
application property.
void showNotification(java.lang.String caption)
Frame.NotificationType#HUMANIZED
. \n
).caption
- textvoid showNotification(java.lang.String caption, Frame.NotificationType type)
\n
).caption
- texttype
- defines how to display the notification.
Don't forget to escape data from the database in case of *_HTML
types!void showNotification(java.lang.String caption, java.lang.String description, Frame.NotificationType type)
\n
).caption
- captiondescription
- texttype
- defines how to display the notification.
Don't forget to escape data from the database in case of *_HTML
types!void showMessageDialog(java.lang.String title, java.lang.String message, Frame.MessageType messageType)
\n
) for non HTML messageType.title
- dialog titlemessage
- textmessageType
- defines how to display the dialog.
Don't forget to escape data from the database in case of *_HTML
types!void showOptionDialog(java.lang.String title, java.lang.String message, Frame.MessageType messageType, Action[] actions)
\n
) for non HTML messageType.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 actionsvoid showExceptionDialog(java.lang.Throwable throwable)
throwable
- throwablevoid showExceptionDialog(java.lang.Throwable throwable, @Nullable java.lang.String caption, @Nullable java.lang.String message)
throwable
- throwablecaption
- dialog captionmessage
- dialog messagevoid showWebPage(java.lang.String url, @Nullable java.util.Map<java.lang.String,java.lang.Object> params)
WebBrowserTools
instead.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)