summaryrefslogtreecommitdiffstats
path: root/documentation/advanced
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2017-01-10 08:36:09 +0200
committerHenri Sara <henri.sara@gmail.com>2017-01-10 08:36:09 +0200
commitcba4eb476b559cc97ccf2d8197d176a0813707c7 (patch)
treef6c17b79ea161809d31e044425b95486e4c99efc /documentation/advanced
parent91723ac8dde24249b2753d671f42d0f3cddb20a9 (diff)
downloadvaadin-framework-cba4eb476b559cc97ccf2d8197d176a0813707c7.tar.gz
vaadin-framework-cba4eb476b559cc97ccf2d8197d176a0813707c7.zip
Remove all referrals to book examples (#8163)
Minor documentation fixes.
Diffstat (limited to 'documentation/advanced')
-rw-r--r--documentation/advanced/advanced-navigator.asciidoc4
-rw-r--r--documentation/advanced/advanced-printing.asciidoc3
-rw-r--r--documentation/advanced/advanced-push.asciidoc5
-rw-r--r--documentation/advanced/advanced-shortcuts.asciidoc2
-rw-r--r--documentation/advanced/advanced-urifu.asciidoc3
-rw-r--r--documentation/advanced/advanced-windows.asciidoc9
6 files changed, 4 insertions, 22 deletions
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:
<vaadin-label _id="back" size-auto :middle :center/>
</vaadin-vertical-layout>
----
-See the http://demo.vaadin.com/book-examples-vaadin7/book#advanced.navigator.basic[on-line example, window="_blank"].
The main view is shown in <<figure.advanced.navigator.mainview>>. 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<String> 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"].
<<figure.advanced.urifu>> 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]]