Browse Source

Add MenuItem notices to BrowserWindowOpener documentation (#10820)

tags/8.5.0.alpha1
Ilia Motornyi 6 years ago
parent
commit
ab547965fd
No account linked to committer's email address

+ 2
- 2
documentation/advanced/advanced-printing.asciidoc View File

@@ -107,12 +107,12 @@ To print content as PDF, you need to provide the downloadable content as a
static or a dynamic resource, such as a [classname]#StreamResource#.

You can let the user open the resource using a [classname]#Link# component, or
some other component with a [classname]#PopupWindowOpener# extension. When such
some other component with a [classname]#BrowserWindowOpener# extension. When such
a link or opener is clicked, the browser opens the PDF in the browser, in an
external viewer (such as Adobe Reader), or lets the user save the document.

It is crucial to notice that clicking a [classname]#Link# or a
[classname]#PopupWindowOpener# is a client-side operation. If you get the
[classname]#BrowserWindowOpener# is a client-side operation. If you get the
content of the dynamic PDF from the same UI state, you can not have the link or
opener enabled, as then clicking it would not get the current UI content.
Instead, you have to create the resource object before the link or opener are

+ 1
- 1
documentation/advanced/advanced-windows.asciidoc View File

@@ -93,7 +93,7 @@ public static class MyPopupUI extends UI {
=== Popping It Up

A popup window is opened using the [classname]#BrowserWindowOpener# extension,
which you can attach to any component. The constructor of the extension takes
which you can attach to any component or `MenuItem`. The constructor of the extension takes
the class object of the UI class to be opened as a parameter.

You can configure the features of the popup window with

+ 1
- 1
documentation/articles/OpeningAUIInAPopupWindow.asciidoc View File

@@ -10,7 +10,7 @@ Opening a UI in a popup window

To open a new popup window in the browser showing another part of your
application, you can use the new `BrowserWindowOpener` extension. Any
component that you extend with `BrowserWindowOpener` will make clicking
component or `MenuItem` that you extend with `BrowserWindowOpener` will make clicking
the component open a new browser window with some options for the
content. Opening a popup this way helps you bypass most popup blockers.


Loading…
Cancel
Save