From cba4eb476b559cc97ccf2d8197d176a0813707c7 Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Tue, 10 Jan 2017 08:36:09 +0200 Subject: Remove all referrals to book examples (#8163) Minor documentation fixes. --- documentation/advanced/advanced-navigator.asciidoc | 4 ---- documentation/advanced/advanced-printing.asciidoc | 3 --- documentation/advanced/advanced-push.asciidoc | 5 ----- documentation/advanced/advanced-shortcuts.asciidoc | 2 -- documentation/advanced/advanced-urifu.asciidoc | 3 --- documentation/advanced/advanced-windows.asciidoc | 9 ++++----- 6 files changed, 4 insertions(+), 22 deletions(-) (limited to 'documentation/advanced') diff --git a/documentation/advanced/advanced-navigator.asciidoc b/documentation/advanced/advanced-navigator.asciidoc index 4d74c683e5..7ef5b1ac36 100644 --- a/documentation/advanced/advanced-navigator.asciidoc +++ b/documentation/advanced/advanced-navigator.asciidoc @@ -60,7 +60,6 @@ public class NavigatorUI extends UI { } } ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.navigator.basic[on-line example, window="_blank"]. The [classname]#Navigator# automatically sets the URI fragment of the application URL. It also registers a [interfacename]#URIFragmentChangedListener# @@ -137,7 +136,6 @@ public class StartView extends VerticalLayout implements View { } } ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.navigator.basic[on-line example, window="_blank"]. You can initialize the view content in the constructor, as was done in the example above, or in the [methodname]#enter()# method. The advantage with the @@ -262,7 +260,6 @@ public class MainView extends VerticalLayout implements View { } } ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.navigator.basic[on-line example, window="_blank"]. The animal sub-view would have the following declarative design: @@ -275,7 +272,6 @@ The animal sub-view would have the following declarative design: ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.navigator.basic[on-line example, window="_blank"]. The main view is shown in <>. At this point, the URL would be [literal]#++http://localhost:8080/myapp#!main/reindeer++#. diff --git a/documentation/advanced/advanced-printing.asciidoc b/documentation/advanced/advanced-printing.asciidoc index 9ed39eced1..0443f43cbe 100644 --- a/documentation/advanced/advanced-printing.asciidoc +++ b/documentation/advanced/advanced-printing.asciidoc @@ -49,7 +49,6 @@ print.addClickListener(new Button.ClickListener() { } }); ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.printing.this[on-line example, window="_blank"]. The button in the above example would print the current page, including the button itself. You can hide such elements in CSS, as well as otherwise style the @@ -92,7 +91,6 @@ opener.setFeatures("height=200,width=400,resizable"); Button print = new Button("Click to Print"); opener.extend(print); ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.printing.open[on-line example, window="_blank"]. How the browser opens the window, as an actual (popup) window or just a tab, depends on the browser. After printing, we automatically close the window with @@ -173,7 +171,6 @@ layout.addComponent(name); layout.addComponent(ok); layout.addComponent(print); ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.printing.pdfgeneration[on-line example, window="_blank"]. (((range="endofrange", startref="term.advanced.printing"))) diff --git a/documentation/advanced/advanced-push.asciidoc b/documentation/advanced/advanced-push.asciidoc index 365e674a50..4238c21139 100644 --- a/documentation/advanced/advanced-push.asciidoc +++ b/documentation/advanced/advanced-push.asciidoc @@ -270,7 +270,6 @@ public class PushyUI extends UI { } } ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.push.simple[on-line example, window="_blank"]. When sharing data between UIs or user sessions, you need to consider the message-passing mechanism more carefully, as explained next. @@ -331,7 +330,6 @@ public class Broadcaster implements Serializable { } } ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.push.pusharound[on-line example, window="_blank"]. In Java 8, you could use lambda expressions for the listeners instead of the interface, and a parameterless expression to create the runnable: @@ -343,7 +341,6 @@ for (final Consumer listener: listeners) executorService.execute(() -> listener.accept(message)); ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.push.pusharound[on-line example, window="_blank"]. [[advanced.push.pusharound.receiving]] @@ -392,7 +389,6 @@ public class PushAroundUI extends UI } } ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.push.pusharound[on-line example, window="_blank"]. [[advanced.push.pusharound.sending]] @@ -419,7 +415,6 @@ send.addClickListener(new ClickListener() { } }); ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.push.pusharound[on-line example, window="_blank"]. diff --git a/documentation/advanced/advanced-shortcuts.asciidoc b/documentation/advanced/advanced-shortcuts.asciidoc index fa3c92fdae..c1fffe4617 100644 --- a/documentation/advanced/advanced-shortcuts.asciidoc +++ b/documentation/advanced/advanced-shortcuts.asciidoc @@ -68,7 +68,6 @@ name.addShortcutListener( ModifierKey.ALT)); layout.addComponent(name); ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.shortcut.focus[on-line example, window="_blank"]. You can also specify the shortcut by a shorthand notation, where the shortcut key is indicated with an ampersand ( [literal]#++&++#). @@ -81,7 +80,6 @@ TextField address = new TextField("Address (Alt+A)"); address.addShortcutListener( new AbstractField.FocusShortcut(address, "&Address")); ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.shortcut.focus[on-line example, window="_blank"]. This is especially useful for internationalization, so that you can determine the shortcut key from the localized string. diff --git a/documentation/advanced/advanced-urifu.asciidoc b/documentation/advanced/advanced-urifu.asciidoc index 709d6c4bd3..e245c8e727 100644 --- a/documentation/advanced/advanced-urifu.asciidoc +++ b/documentation/advanced/advanced-urifu.asciidoc @@ -68,7 +68,6 @@ method from the current [classname]#Page# object. The fragment is known when the String fragment = getPage().getUriFragment(); enter(fragment); ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.urifragment.basic[on-line example, window="_blank"]. To enable reusing the same code when the URI fragment is changed, as described next, it is usually best to build the relevant part of the UI in a separate @@ -110,7 +109,6 @@ public class MyUI extends UI { } } ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.urifragment.basic[on-line example, window="_blank"]. <> shows an application that allows specifying the menu selection with a URI fragment and correspondingly sets the fragment when the @@ -173,7 +171,6 @@ public class MyCustomServlet extends VaadinServlet } } ---- -See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.urifragment.basic[on-line example, window="_blank"]. The crawlable content does not need to be human readable. It can provide an index of links to other application states, as we did in the example above. The diff --git a/documentation/advanced/advanced-windows.asciidoc b/documentation/advanced/advanced-windows.asciidoc index d838ee81d0..0e8b5351a6 100644 --- a/documentation/advanced/advanced-windows.asciidoc +++ b/documentation/advanced/advanced-windows.asciidoc @@ -68,7 +68,7 @@ For example: [source, java] ---- -@Theme("book-examples") +@Theme("mytheme") public static class MyPopupUI extends UI { @Override protected void init(VaadinRequest request) { @@ -147,10 +147,9 @@ browsing can open the window in another tab, depending on the browser settings. === URL and Session The URL path for a popup window UI is by default determined from the UI class -name, by prefixig it with " [literal]#++popup/++#". For example, for the example -UI giver earlier, the URL would be -[literal]#++/book-examples/book/popup/MyPopupUI++#. - +name, by prefixing it with "[literal]#++popup/++#". For example, for the +UI given earlier, the URL would be +[literal]#++/example/base/popup/MyPopupUI++#. [[advanced.windows.popup-closing]] -- cgit v1.2.3