summaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2009-02-26 14:16:42 +0000
committerMarc Englund <marc.englund@itmill.com>2009-02-26 14:16:42 +0000
commit57033f860aed919eafda23fbaba9bf9d56588329 (patch)
treee86a45fdab6ec00361672c57a348ef548bde6c16 /src/com/itmill/toolkit/demo
parent0180f5538dd5cde1345693e31a3a25f78a0244b1 (diff)
downloadvaadin-framework-57033f860aed919eafda23fbaba9bf9d56588329.tar.gz
vaadin-framework-57033f860aed919eafda23fbaba9bf9d56588329.zip
Fixes #2635 by removing reference manual links.
svn changeset:6974/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo')
-rw-r--r--src/com/itmill/toolkit/demo/sampler/FeatureSet.java37
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChild.pngbin4714 -> 0 bytes
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildAutosize.pngbin4652 -> 0 bytes
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildModal.pngbin4427 -> 0 bytes
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildPositionSize.pngbin4206 -> 0 bytes
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildScrollable.pngbin4001 -> 0 bytes
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowNativeNew.pngbin7121 -> 0 bytes
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowNativeShared.pngbin5670 -> 0 bytes
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/NativeWindow.java (renamed from src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildPositionSize.java)15
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/NativeWindowExample.java54
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/Subwindow.java (renamed from src/com/itmill/toolkit/demo/sampler/features/windows/WindowChild.java)15
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowAutoSized.java (renamed from src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildModal.java)16
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowAutoSizedExample.java65
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowClose.java35
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowCloseExample.java52
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowExample.java56
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowModal.java48
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowModalExample.java62
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositioned.java35
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositionedExample.java90
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowSized.java36
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowSizedExample.java64
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildAutosize.java47
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildExample.java54
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildModalExample.java43
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildPositionSizeExample.java65
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildScrollable.java41
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildScrollableExample.java68
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeNew.java46
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeNewExample.java63
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeShared.java48
-rw-r--r--src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeSharedExample.java69
32 files changed, 636 insertions, 588 deletions
diff --git a/src/com/itmill/toolkit/demo/sampler/FeatureSet.java b/src/com/itmill/toolkit/demo/sampler/FeatureSet.java
index 6de029b807..c36086c3dd 100644
--- a/src/com/itmill/toolkit/demo/sampler/FeatureSet.java
+++ b/src/com/itmill/toolkit/demo/sampler/FeatureSet.java
@@ -76,13 +76,12 @@ import com.itmill.toolkit.demo.sampler.features.trees.TreeActions;
import com.itmill.toolkit.demo.sampler.features.trees.TreeMouseEvents;
import com.itmill.toolkit.demo.sampler.features.trees.TreeMultiSelect;
import com.itmill.toolkit.demo.sampler.features.trees.TreeSingleSelect;
-import com.itmill.toolkit.demo.sampler.features.windows.WindowChild;
-import com.itmill.toolkit.demo.sampler.features.windows.WindowChildAutosize;
-import com.itmill.toolkit.demo.sampler.features.windows.WindowChildModal;
-import com.itmill.toolkit.demo.sampler.features.windows.WindowChildPositionSize;
-import com.itmill.toolkit.demo.sampler.features.windows.WindowChildScrollable;
-import com.itmill.toolkit.demo.sampler.features.windows.WindowNativeNew;
-import com.itmill.toolkit.demo.sampler.features.windows.WindowNativeShared;
+import com.itmill.toolkit.demo.sampler.features.windows.Subwindow;
+import com.itmill.toolkit.demo.sampler.features.windows.SubwindowAutoSized;
+import com.itmill.toolkit.demo.sampler.features.windows.SubwindowClose;
+import com.itmill.toolkit.demo.sampler.features.windows.SubwindowModal;
+import com.itmill.toolkit.demo.sampler.features.windows.SubwindowPositioned;
+import com.itmill.toolkit.demo.sampler.features.windows.SubwindowSized;
/**
* Contains the FeatureSet implementation and the structure for the feature
@@ -302,16 +301,20 @@ public class FeatureSet extends Feature {
public static class Windows extends FeatureSet {
public Windows() {
- super("Windows", new Feature[] {
- //
- new WindowNativeShared(), //
- new WindowNativeNew(), //
- new WindowChild(), //
- new WindowChildAutosize(), //
- new WindowChildModal(), //
- new WindowChildPositionSize(), //
- new WindowChildScrollable(), //
- });
+ super(
+ "Windows",
+ "Windows",
+ "Windows can for instance organize the UI, save space (popup windows), focus attention (modal windows), provide multiple views for multitasking (native browser windows).",
+ new Feature[] {
+ //
+ new Subwindow(), //
+ new SubwindowModal(), //
+ new SubwindowAutoSized(), //
+ new SubwindowSized(), //
+ new SubwindowPositioned(), //
+ new SubwindowClose(), //
+ // new NativeWindow(), // in progress
+ });
}
}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChild.png b/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChild.png
deleted file mode 100644
index ab9b46b2d0..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChild.png
+++ /dev/null
Binary files differ
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildAutosize.png b/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildAutosize.png
deleted file mode 100644
index a875d8f6e8..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildAutosize.png
+++ /dev/null
Binary files differ
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildModal.png b/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildModal.png
deleted file mode 100644
index bc7c695339..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildModal.png
+++ /dev/null
Binary files differ
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildPositionSize.png b/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildPositionSize.png
deleted file mode 100644
index 414de9a69c..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildPositionSize.png
+++ /dev/null
Binary files differ
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildScrollable.png b/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildScrollable.png
deleted file mode 100644
index 534fe5355c..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowChildScrollable.png
+++ /dev/null
Binary files differ
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowNativeNew.png b/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowNativeNew.png
deleted file mode 100644
index df94bafa38..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowNativeNew.png
+++ /dev/null
Binary files differ
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowNativeShared.png b/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowNativeShared.png
deleted file mode 100644
index e9278aaf2b..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/75-WindowNativeShared.png
+++ /dev/null
Binary files differ
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildPositionSize.java b/src/com/itmill/toolkit/demo/sampler/features/windows/NativeWindow.java
index 05851c5752..d82a2c3d12 100644
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildPositionSize.java
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/NativeWindow.java
@@ -5,18 +5,18 @@ import com.itmill.toolkit.demo.sampler.Feature;
import com.itmill.toolkit.demo.sampler.NamedExternalResource;
import com.itmill.toolkit.ui.Window;
-public class WindowChildPositionSize extends Feature {
+public class NativeWindow extends Feature {
@Override
public String getName() {
- return "Window position and size";
+ return "Subwindow";
}
@Override
public String getDescription() {
- return "Creates and opens a new floating child window with specified"
- + " size and position attributes. This child window is also"
- + " set to allow resizing.";
+ return "A <i>Subwindow</i> is a popup-window within the browser window."
+ + " There can be multiple subwindows in one (native) browser"
+ + " window.";
}
@Override
@@ -26,14 +26,11 @@ public class WindowChildPositionSize extends Feature {
@Override
public Class[] getRelatedFeatures() {
- return new Class[] { WindowNativeShared.class, WindowNativeNew.class,
- WindowChild.class, WindowChildAutosize.class,
- WindowChildModal.class, WindowChildScrollable.class };
+ return new Class[] { SubwindowModal.class };
}
@Override
public NamedExternalResource[] getRelatedResources() {
- // TODO Auto-generated method stub
return null;
}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/NativeWindowExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/NativeWindowExample.java
new file mode 100644
index 0000000000..80c377fb11
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/NativeWindowExample.java
@@ -0,0 +1,54 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.terminal.ExternalResource;
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.VerticalLayout;
+import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.Button.ClickEvent;
+import com.itmill.toolkit.ui.Window.CloseEvent;
+
+public class NativeWindowExample extends VerticalLayout {
+
+ Window window;
+
+ public NativeWindowExample() {
+
+ // Create the window
+ window = new Window("Automatically sized subwindow");
+ // Native windows should be explicitly removed from the application
+ // when appropriate; in this case when closed:
+ window.addListener(new Window.CloseListener() {
+ // inline close-listener
+ public void windowClose(CloseEvent e) {
+ getApplication().removeWindow(window);
+ }
+ });
+
+ // Configure the windows layout; by default a VerticalLayout
+ VerticalLayout layout = (VerticalLayout) window.getLayout();
+ layout.setMargin(true);
+ layout.setSpacing(true);
+ // make it undefined for auto-sizing window
+ layout.setSizeUndefined();
+
+ // Add some content;
+ window.addComponent(new Label("This is is native (browser) window."));
+
+ // Add a button for opening the window
+ Button open = new Button("Open native window",
+ new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ getApplication().addWindow(window);
+ getApplication().getMainWindow().open(
+ new ExternalResource(window.getURL()),
+ "NativeWindowExample", 500, 500,
+ Window.BORDER_NONE);
+ }
+ });
+ addComponent(open);
+
+ }
+
+} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChild.java b/src/com/itmill/toolkit/demo/sampler/features/windows/Subwindow.java
index 83e07a6fca..27a053f66a 100644
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChild.java
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/Subwindow.java
@@ -5,18 +5,18 @@ import com.itmill.toolkit.demo.sampler.Feature;
import com.itmill.toolkit.demo.sampler.NamedExternalResource;
import com.itmill.toolkit.ui.Window;
-public class WindowChild extends Feature {
+public class Subwindow extends Feature {
@Override
public String getName() {
- return "Child window";
+ return "Subwindow";
}
@Override
public String getDescription() {
- return "Creates and opens a new floating child window with its own state."
- + "<br>Child windows are typically used for Dialog Windows and"
- + " Multiple Document Interface applications.";
+ return "A <i>Subwindow</i> is a popup-window within the browser window."
+ + " There can be multiple subwindows in one (native) browser"
+ + " window.";
}
@Override
@@ -26,14 +26,11 @@ public class WindowChild extends Feature {
@Override
public Class[] getRelatedFeatures() {
- return new Class[] { WindowNativeShared.class, WindowNativeNew.class,
- WindowChildAutosize.class, WindowChildModal.class,
- WindowChildPositionSize.class, WindowChildScrollable.class };
+ return new Class[] { SubwindowModal.class };
}
@Override
public NamedExternalResource[] getRelatedResources() {
- // TODO Auto-generated method stub
return null;
}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildModal.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowAutoSized.java
index 5d47c1fe88..97c44fe885 100644
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildModal.java
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowAutoSized.java
@@ -5,18 +5,19 @@ import com.itmill.toolkit.demo.sampler.Feature;
import com.itmill.toolkit.demo.sampler.NamedExternalResource;
import com.itmill.toolkit.ui.Window;
-public class WindowChildModal extends Feature {
+public class SubwindowAutoSized extends Feature {
@Override
public String getName() {
- return "Window modality";
+ return "Window, automatic size";
}
@Override
public String getDescription() {
- return "Creates and opens a new modal child window with its own state."
- + "<br>Child window modality means that you cannot access the"
- + " underlying window(s) while the modal window is displayed.";
+ return "The window will be automatically sized to fit the contents,"
+ + " if the size of the window (and it's layout) is undefined.<br/>"
+ + " Note that by default Window contains a VerticalLayout that"
+ + " is 100% wide.";
}
@Override
@@ -26,14 +27,11 @@ public class WindowChildModal extends Feature {
@Override
public Class[] getRelatedFeatures() {
- return new Class[] { WindowNativeShared.class, WindowNativeNew.class,
- WindowChild.class, WindowChildAutosize.class,
- WindowChildPositionSize.class, WindowChildScrollable.class };
+ return new Class[] { SubwindowModal.class };
}
@Override
public NamedExternalResource[] getRelatedResources() {
- // TODO Auto-generated method stub
return null;
}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowAutoSizedExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowAutoSizedExample.java
new file mode 100644
index 0000000000..cf7515d38b
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowAutoSizedExample.java
@@ -0,0 +1,65 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.TextField;
+import com.itmill.toolkit.ui.VerticalLayout;
+import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.Button.ClickEvent;
+
+public class SubwindowAutoSizedExample extends VerticalLayout {
+
+ Window subwindow;
+
+ public SubwindowAutoSizedExample() {
+
+ // Create the window
+ subwindow = new Window("Automatically sized subwindow");
+
+ // Configure the windws layout; by default a VerticalLayout
+ VerticalLayout layout = (VerticalLayout) subwindow.getLayout();
+ layout.setMargin(true);
+ layout.setSpacing(true);
+ // make it undefined for auto-sizing window
+ layout.setSizeUndefined();
+
+ // Add some content;
+ for (int i = 0; i < 7; i++) {
+ TextField tf = new TextField();
+ tf.setWidth("400px");
+ subwindow.addComponent(tf);
+ }
+
+ Button close = new Button("Close", new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ // close the window by removing it from the main window
+ getApplication().getMainWindow().removeWindow(subwindow);
+ }
+ });
+ // The components added to the window are actually added to the window's
+ // layout; you can use either. Alignments are set using the layout
+ layout.addComponent(close);
+ layout.setComponentAlignment(close, "right bottom");
+
+ // Add a button for opening the subwindow
+ Button open = new Button("Open sized window",
+ new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ if (subwindow.getParent() != null) {
+ // window is already showing
+ getWindow().showNotification(
+ "Window is already open");
+ } else {
+ // Open the subwindow by adding it to the main
+ // window
+ getApplication().getMainWindow().addWindow(
+ subwindow);
+ }
+ }
+ });
+ addComponent(open);
+
+ }
+
+} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowClose.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowClose.java
new file mode 100644
index 0000000000..4b86dedb7e
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowClose.java
@@ -0,0 +1,35 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.demo.sampler.APIResource;
+import com.itmill.toolkit.demo.sampler.Feature;
+import com.itmill.toolkit.demo.sampler.NamedExternalResource;
+import com.itmill.toolkit.ui.Window;
+
+public class SubwindowClose extends Feature {
+
+ @Override
+ public String getName() {
+ return "Subwindow";
+ }
+
+ @Override
+ public String getDescription() {
+ return "Using a <i>CloseListener</i> one can detect when a window is closed.";
+ }
+
+ @Override
+ public APIResource[] getRelatedAPI() {
+ return new APIResource[] { new APIResource(Window.class) };
+ }
+
+ @Override
+ public Class[] getRelatedFeatures() {
+ return new Class[] { SubwindowModal.class };
+ }
+
+ @Override
+ public NamedExternalResource[] getRelatedResources() {
+ return null;
+ }
+
+}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowCloseExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowCloseExample.java
new file mode 100644
index 0000000000..7543af2c4a
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowCloseExample.java
@@ -0,0 +1,52 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.VerticalLayout;
+import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.Button.ClickEvent;
+import com.itmill.toolkit.ui.Window.CloseEvent;
+
+public class SubwindowCloseExample extends VerticalLayout {
+
+ Window subwindow;
+
+ public SubwindowCloseExample() {
+
+ // Create the window
+ subwindow = new Window("A subwindow w/ close-listener");
+ subwindow.addListener(new Window.CloseListener() {
+ // inline close-listener
+ public void windowClose(CloseEvent e) {
+ getApplication().getMainWindow().showNotification(
+ "Window closed");
+ }
+ });
+
+ // Configure the windws layout; by default a VerticalLayout
+ VerticalLayout layout = (VerticalLayout) subwindow.getLayout();
+ layout.setMargin(true);
+ layout.setSpacing(true);
+
+ // Add some content; a label and a close-button
+ Label message = new Label("This is a subwindow with a close-listener.");
+ subwindow.addComponent(message);
+
+ // Add a button for opening the subwindow
+ Button open = new Button("Open window", new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ if (subwindow.getParent() != null) {
+ // window is already showing
+ getWindow().showNotification("Window is already open");
+ } else {
+ // Open the subwindow by adding it to the main window
+ getApplication().getMainWindow().addWindow(subwindow);
+ }
+ }
+ });
+ addComponent(open);
+
+ }
+
+} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowExample.java
new file mode 100644
index 0000000000..8702171055
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowExample.java
@@ -0,0 +1,56 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.VerticalLayout;
+import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.Button.ClickEvent;
+
+public class SubwindowExample extends VerticalLayout {
+
+ Window subwindow;
+
+ public SubwindowExample() {
+
+ // Create the window
+ subwindow = new Window("A subwindow");
+
+ // Configure the windws layout; by default a VerticalLayout
+ VerticalLayout layout = (VerticalLayout) subwindow.getLayout();
+ layout.setMargin(true);
+ layout.setSpacing(true);
+
+ // Add some content; a label and a close-button
+ Label message = new Label("This is a subwindow");
+ subwindow.addComponent(message);
+
+ Button close = new Button("Close", new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ // close the window by removing it from the main window
+ getApplication().getMainWindow().removeWindow(subwindow);
+ }
+ });
+ // The components added to the window are actually added to the window's
+ // layout; you can use either. Alignments are set using the layout
+ layout.addComponent(close);
+ layout.setComponentAlignment(close, "right");
+
+ // Add a button for opening the subwindow
+ Button open = new Button("Open subwindow", new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ if (subwindow.getParent() != null) {
+ // window is already showing
+ getWindow().showNotification("Window is already open");
+ } else {
+ // Open the subwindow by adding it to the main window
+ getApplication().getMainWindow().addWindow(subwindow);
+ }
+ }
+ });
+ addComponent(open);
+
+ }
+
+} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowModal.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowModal.java
new file mode 100644
index 0000000000..5625e0b44e
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowModal.java
@@ -0,0 +1,48 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.demo.sampler.APIResource;
+import com.itmill.toolkit.demo.sampler.Feature;
+import com.itmill.toolkit.demo.sampler.NamedExternalResource;
+import com.itmill.toolkit.demo.sampler.features.blueprints.ProminentPrimaryAction;
+import com.itmill.toolkit.ui.Window;
+
+public class SubwindowModal extends Feature {
+
+ @Override
+ public String getName() {
+ return "Modal window";
+ }
+
+ @Override
+ public String getDescription() {
+ return "A <i>modal window</i> blocks access to the rest of the application, "
+ + "until the window is closed (or made non-modal).<br/>"
+ + " Use modal windows when the user must finish the task in the"
+ + " window before continuing.";
+ }
+
+ @Override
+ public APIResource[] getRelatedAPI() {
+ return new APIResource[] { new APIResource(Window.class) };
+ }
+
+ @Override
+ public Class[] getRelatedFeatures() {
+ return new Class[] {
+ //
+ Subwindow.class, //
+ ProminentPrimaryAction.class, //
+ };
+ }
+
+ @Override
+ public NamedExternalResource[] getRelatedResources() {
+ return new NamedExternalResource[] {
+ //
+ new NamedExternalResource("Wikipedia: Modal window",
+ "http://en.wikipedia.org/wiki/Modal_window"), //
+
+ };
+ }
+
+}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowModalExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowModalExample.java
new file mode 100644
index 0000000000..279c7851f8
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowModalExample.java
@@ -0,0 +1,62 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.VerticalLayout;
+import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.Button.ClickEvent;
+
+public class SubwindowModalExample extends VerticalLayout {
+
+ Window subwindow;
+
+ public SubwindowModalExample() {
+
+ // Create the window...
+ subwindow = new Window("A modal subwindow");
+ // ...and make it modal
+ subwindow.setModal(true);
+
+ // Configure the windws layout; by default a VerticalLayout
+ VerticalLayout layout = (VerticalLayout) subwindow.getLayout();
+ layout.setMargin(true);
+ layout.setSpacing(true);
+
+ // Add some content; a label and a close-button
+ Label message = new Label("This is a modal subwindow.");
+ subwindow.addComponent(message);
+
+ Button close = new Button("Close", new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ // close the window by removing it from the main window
+ getApplication().getMainWindow().removeWindow(subwindow);
+ }
+ });
+ // The components added to the window are actually added to the window's
+ // layout; you can use either. Alignments are set using the layout
+ layout.addComponent(close);
+ layout.setComponentAlignment(close, "right");
+
+ // Add a button for opening the subwindow
+ Button open = new Button("Open modal window",
+ new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ if (subwindow.getParent() != null) {
+ // window is already showing
+ getWindow().showNotification(
+ "Window is already open");
+ } else {
+ // Open the subwindow by adding it to the main
+ // window
+ getApplication().getMainWindow().addWindow(
+ subwindow);
+ }
+ }
+ });
+ addComponent(open);
+
+ }
+
+} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositioned.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositioned.java
new file mode 100644
index 0000000000..a14383ee6b
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositioned.java
@@ -0,0 +1,35 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.demo.sampler.APIResource;
+import com.itmill.toolkit.demo.sampler.Feature;
+import com.itmill.toolkit.demo.sampler.NamedExternalResource;
+import com.itmill.toolkit.ui.Window;
+
+public class SubwindowPositioned extends Feature {
+
+ @Override
+ public String getName() {
+ return "Window position";
+ }
+
+ @Override
+ public String getDescription() {
+ return "The position of a window can be specified, or it can be centered.";
+ }
+
+ @Override
+ public APIResource[] getRelatedAPI() {
+ return new APIResource[] { new APIResource(Window.class) };
+ }
+
+ @Override
+ public Class[] getRelatedFeatures() {
+ return new Class[] { SubwindowModal.class };
+ }
+
+ @Override
+ public NamedExternalResource[] getRelatedResources() {
+ return null;
+ }
+
+}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositionedExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositionedExample.java
new file mode 100644
index 0000000000..54550b9b62
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowPositionedExample.java
@@ -0,0 +1,90 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.VerticalLayout;
+import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.Button.ClickEvent;
+
+public class SubwindowPositionedExample extends VerticalLayout {
+
+ Window subwindow;
+
+ public SubwindowPositionedExample() {
+ setSpacing(true);
+
+ // Create the window
+ subwindow = new Window("A positioned subwindow");
+
+ // Configure the windws layout; by default a VerticalLayout
+ VerticalLayout layout = (VerticalLayout) subwindow.getLayout();
+ layout.setMargin(true);
+ layout.setSpacing(true);
+ // make it fill the whole window
+ layout.setSizeFull();
+
+ // Add some content; a label and a close-button
+ Label message = new Label("This is a positioned window");
+ subwindow.addComponent(message);
+
+ Button close = new Button("Close", new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ // close the window by removing it from the main window
+ getApplication().getMainWindow().removeWindow(subwindow);
+ }
+ });
+ // The components added to the window are actually added to the window's
+ // layout; you can use either. Alignments are set using the layout
+ layout.addComponent(close);
+ layout.setComponentAlignment(close, "right bottom");
+
+ // Add buttons for opening the subwindow
+ Button fifty = new Button("Open positioned window at 50x50",
+ new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ subwindow.setPositionX(50);
+ subwindow.setPositionY(50);
+ if (subwindow.getParent() == null) {
+ // Open the subwindow by adding it to the main
+ // window
+ getApplication().getMainWindow().addWindow(
+ subwindow);
+ }
+ }
+ });
+ addComponent(fifty);
+ Button onefifty = new Button("Open positioned window at 150x150",
+ new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ subwindow.setPositionX(150);
+ subwindow.setPositionY(150);
+ if (subwindow.getParent() == null) {
+ // Open the subwindow by adding it to the main
+ // window
+ getApplication().getMainWindow().addWindow(
+ subwindow);
+ }
+ }
+ });
+ addComponent(onefifty);
+ Button center = new Button("Open centered window",
+ new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ subwindow.center();
+ if (subwindow.getParent() == null) {
+ // Open the subwindow by adding it to the main
+ // window
+ getApplication().getMainWindow().addWindow(
+ subwindow);
+ }
+ }
+ });
+ addComponent(center);
+
+ }
+
+} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowSized.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowSized.java
new file mode 100644
index 0000000000..cb77a54803
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowSized.java
@@ -0,0 +1,36 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.demo.sampler.APIResource;
+import com.itmill.toolkit.demo.sampler.Feature;
+import com.itmill.toolkit.demo.sampler.NamedExternalResource;
+import com.itmill.toolkit.ui.Window;
+
+public class SubwindowSized extends Feature {
+
+ @Override
+ public String getName() {
+ return "Window, explicit size";
+ }
+
+ @Override
+ public String getDescription() {
+ return "The size of a window can be specified - here the width is set"
+ + " in pixels, and the height in percent.";
+ }
+
+ @Override
+ public APIResource[] getRelatedAPI() {
+ return new APIResource[] { new APIResource(Window.class) };
+ }
+
+ @Override
+ public Class[] getRelatedFeatures() {
+ return new Class[] { SubwindowModal.class };
+ }
+
+ @Override
+ public NamedExternalResource[] getRelatedResources() {
+ return null;
+ }
+
+}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowSizedExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowSizedExample.java
new file mode 100644
index 0000000000..6c5485bb02
--- /dev/null
+++ b/src/com/itmill/toolkit/demo/sampler/features/windows/SubwindowSizedExample.java
@@ -0,0 +1,64 @@
+package com.itmill.toolkit.demo.sampler.features.windows;
+
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.VerticalLayout;
+import com.itmill.toolkit.ui.Window;
+import com.itmill.toolkit.ui.Button.ClickEvent;
+
+public class SubwindowSizedExample extends VerticalLayout {
+
+ Window subwindow;
+
+ public SubwindowSizedExample() {
+
+ // Create the window
+ subwindow = new Window("A sized subwindow");
+ subwindow.setWidth("500px");
+ subwindow.setHeight("80%");
+
+ // Configure the windws layout; by default a VerticalLayout
+ VerticalLayout layout = (VerticalLayout) subwindow.getLayout();
+ layout.setMargin(true);
+ layout.setSpacing(true);
+ // make it fill the whole window
+ layout.setSizeFull();
+
+ // Add some content; a label and a close-button
+ Label message = new Label("This is a sized window");
+ subwindow.addComponent(message);
+
+ Button close = new Button("Close", new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ // close the window by removing it from the main window
+ getApplication().getMainWindow().removeWindow(subwindow);
+ }
+ });
+ // The components added to the window are actually added to the window's
+ // layout; you can use either. Alignments are set using the layout
+ layout.addComponent(close);
+ layout.setComponentAlignment(close, "right bottom");
+
+ // Add a button for opening the subwindow
+ Button open = new Button("Open sized window",
+ new Button.ClickListener() {
+ // inline click-listener
+ public void buttonClick(ClickEvent event) {
+ if (subwindow.getParent() != null) {
+ // window is already showing
+ getWindow().showNotification(
+ "Window is already open");
+ } else {
+ // Open the subwindow by adding it to the main
+ // window
+ getApplication().getMainWindow().addWindow(
+ subwindow);
+ }
+ }
+ });
+ addComponent(open);
+
+ }
+
+} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildAutosize.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildAutosize.java
deleted file mode 100644
index 9780713241..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildAutosize.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.demo.sampler.APIResource;
-import com.itmill.toolkit.demo.sampler.Feature;
-import com.itmill.toolkit.demo.sampler.NamedExternalResource;
-import com.itmill.toolkit.ui.Component;
-import com.itmill.toolkit.ui.Window;
-
-public class WindowChildAutosize extends Feature {
-
- @Override
- public String getName() {
- return "Window autosizing";
- }
-
- @Override
- public String getDescription() {
- return "Creates and opens a new floating child window with its own state."
- + "<br>The size of this child window will be adjusted automatically"
- + " to fit the content (in this example, the caption). This is default"
- + " behavior for a child window.";
- }
-
- @Override
- public APIResource[] getRelatedAPI() {
- return new APIResource[] { new APIResource(Window.class) };
- }
-
- @Override
- public Class[] getRelatedFeatures() {
- return new Class[] { WindowNativeShared.class, WindowNativeNew.class,
- WindowChild.class, WindowChildModal.class,
- WindowChildPositionSize.class, WindowChildScrollable.class };
- }
-
- @Override
- public NamedExternalResource[] getRelatedResources() {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public Component getExample() {
- return new WindowChildExample();
- }
-
-}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildExample.java
deleted file mode 100644
index 69e2a3d890..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildExample.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.ui.Button;
-import com.itmill.toolkit.ui.Label;
-import com.itmill.toolkit.ui.VerticalLayout;
-import com.itmill.toolkit.ui.Window;
-import com.itmill.toolkit.ui.Button.ClickEvent;
-import com.itmill.toolkit.ui.Window.CloseEvent;
-
-public class WindowChildExample extends VerticalLayout implements
- Window.CloseListener {
-
- private Button b1;
- private Button b2;
- private Label l;
-
- public WindowChildExample() {
- setSpacing(true);
-
- b1 = new Button(
- "Create and open a new child window with its own state", this,
- "openButtonClick");
- addComponent(b1);
-
- l = new Label("Amount of child windows attached to the main window: x");
- addComponent(l);
-
- b2 = new Button("Refresh", this, "refreshButtonClick");
- addComponent(b2);
- }
-
- public void openButtonClick(ClickEvent event) {
- Window w = new Window("New child window");
- Label desc = new Label("This is a new child window with its own state."
- + " The child window is added to the main window"
- + " instead of the application.");
- w.addComponent(desc);
- w.addListener(this);
- w.setResizable(false);
- getApplication().getMainWindow().addWindow(w);
- }
-
- public void refreshButtonClick(ClickEvent event) {
- l.setValue("Amount of child windows attached to the main window: "
- + getApplication().getMainWindow().getChildWindows().size());
- }
-
- public void windowClose(CloseEvent e) {
- // In this example, the window will be removed after closing
- getApplication().getMainWindow().removeWindow(e.getWindow());
- System.err.println("Sampler->WindowChildExample: Window close event");
- }
-
-} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildModalExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildModalExample.java
deleted file mode 100644
index 4e0dc89ba5..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildModalExample.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.ui.Button;
-import com.itmill.toolkit.ui.Label;
-import com.itmill.toolkit.ui.VerticalLayout;
-import com.itmill.toolkit.ui.Window;
-import com.itmill.toolkit.ui.Button.ClickEvent;
-import com.itmill.toolkit.ui.Window.CloseEvent;
-
-public class WindowChildModalExample extends VerticalLayout implements
- Window.CloseListener {
-
- private Button b;
-
- public WindowChildModalExample() {
- setSpacing(true);
-
- b = new Button("Create and open a new modal child window", this,
- "openButtonClick");
- addComponent(b);
- }
-
- public void openButtonClick(ClickEvent event) {
- Window w = new Window("Modal child window");
- Label desc = new Label(
- "This is a modal child window with its own state."
- + " You cannot access the main window while the modal child"
- + " window is shown.");
- w.addComponent(desc);
- w.addListener(this);
- w.setResizable(false);
- w.setModal(true);
- getApplication().getMainWindow().addWindow(w);
- }
-
- public void windowClose(CloseEvent e) {
- // In this example, the window will be removed after closing
- getApplication().getMainWindow().removeWindow(e.getWindow());
- System.err
- .println("Sampler->WindowChildModalExample: Window close event");
- }
-
-} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildPositionSizeExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildPositionSizeExample.java
deleted file mode 100644
index 6b4e196f95..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildPositionSizeExample.java
+++ /dev/null
@@ -1,65 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.ui.Button;
-import com.itmill.toolkit.ui.Label;
-import com.itmill.toolkit.ui.VerticalLayout;
-import com.itmill.toolkit.ui.Window;
-import com.itmill.toolkit.ui.Button.ClickEvent;
-import com.itmill.toolkit.ui.Window.CloseEvent;
-
-public class WindowChildPositionSizeExample extends VerticalLayout implements
- Window.CloseListener {
-
- private Button b1;
- private Button b2;
- private Label l;
-
- public WindowChildPositionSizeExample() {
- setSpacing(true);
-
- b1 = new Button("Create and open a new child window", this,
- "openButtonClick");
- addComponent(b1);
-
- l = new Label("Amount of child windows attached to the main window: x");
- addComponent(l);
-
- b2 = new Button("Refresh", this, "refreshButtonClick");
- addComponent(b2);
- }
-
- public void openButtonClick(ClickEvent event) {
- Window w = new Window("New child window");
- Label desc = new Label("This is a new child window with a preset"
- + " width, height and position. Resizing has also been"
- + " enabled for this window.");
- w.addComponent(desc);
- w.addListener(this);
-
- // Set window position
- w.setPositionX(300);
- w.setPositionY(300);
-
- // Set window size
- w.setWidth(300, UNITS_PIXELS);
- w.setHeight(300, UNITS_PIXELS);
-
- // Enable resizing
- w.setResizable(true);
-
- getApplication().getMainWindow().addWindow(w);
- }
-
- public void refreshButtonClick(ClickEvent event) {
- l.setValue("Amount of child windows attached to the main window: "
- + getApplication().getMainWindow().getChildWindows().size());
- }
-
- public void windowClose(CloseEvent e) {
- // In this example, the window will be removed after closing
- getApplication().getMainWindow().removeWindow(e.getWindow());
- System.err
- .println("Sampler->WindowChildPositionSizeExample: Window close event");
- }
-
-} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildScrollable.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildScrollable.java
deleted file mode 100644
index df16dbb24a..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildScrollable.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.demo.sampler.APIResource;
-import com.itmill.toolkit.demo.sampler.Feature;
-import com.itmill.toolkit.demo.sampler.NamedExternalResource;
-import com.itmill.toolkit.ui.Window;
-
-public class WindowChildScrollable extends Feature {
-
- @Override
- public String getName() {
- return "Window - Scrollable";
- }
-
- @Override
- public String getDescription() {
- return "Creates and opens a new floating child window with specified"
- + " size and position attributes. The content for this window"
- + " is too big to fit in the specified size. Therefore you can"
- + " use the scrollbars to view different part of the content.";
- }
-
- @Override
- public APIResource[] getRelatedAPI() {
- return new APIResource[] { new APIResource(Window.class) };
- }
-
- @Override
- public Class[] getRelatedFeatures() {
- return new Class[] { WindowNativeShared.class, WindowNativeNew.class,
- WindowChild.class, WindowChildAutosize.class,
- WindowChildModal.class, WindowChildPositionSize.class };
- }
-
- @Override
- public NamedExternalResource[] getRelatedResources() {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildScrollableExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildScrollableExample.java
deleted file mode 100644
index 94e9829f8e..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowChildScrollableExample.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.ui.Button;
-import com.itmill.toolkit.ui.Label;
-import com.itmill.toolkit.ui.VerticalLayout;
-import com.itmill.toolkit.ui.Window;
-import com.itmill.toolkit.ui.Button.ClickEvent;
-import com.itmill.toolkit.ui.Window.CloseEvent;
-
-public class WindowChildScrollableExample extends VerticalLayout implements
- Window.CloseListener {
-
- private Button b1;
- private Button b2;
- private Label l;
-
- public WindowChildScrollableExample() {
- setSpacing(true);
-
- b1 = new Button("Create and open a scrollable child window", this,
- "openButtonClick");
- addComponent(b1);
-
- l = new Label("Amount of child windows attached to the main window: x");
- addComponent(l);
-
- b2 = new Button("Refresh", this, "refreshButtonClick");
- addComponent(b2);
- }
-
- public void openButtonClick(ClickEvent event) {
- Window w = new Window("Scroll");
- Label desc = new Label(
- "This is a new child window with a preset"
- + " width, height and position. Resizing has been"
- + " disabled for this window. Additionally, this text label"
- + " is intentionally too large to fit the window. You can"
- + " use the scrollbars to view different parts of the window content.");
- w.addComponent(desc);
- w.addListener(this);
-
- // Set window position
- w.setPositionX(300);
- w.setPositionY(300);
-
- // Set window size
- w.setWidth(170, UNITS_PIXELS);
- w.setHeight(100, UNITS_PIXELS);
-
- // Disable resizing
- w.setResizable(false);
-
- getApplication().getMainWindow().addWindow(w);
- }
-
- public void refreshButtonClick(ClickEvent event) {
- l.setValue("Amount of child windows attached to the main window: "
- + getApplication().getMainWindow().getChildWindows().size());
- }
-
- public void windowClose(CloseEvent e) {
- // In this example, the window will be removed after closing
- getApplication().getMainWindow().removeWindow(e.getWindow());
- System.err
- .println("Sampler->WindowChildScrollableExample: Window close event");
- }
-
-} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeNew.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeNew.java
deleted file mode 100644
index a254e4783a..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeNew.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.demo.sampler.APIResource;
-import com.itmill.toolkit.demo.sampler.Feature;
-import com.itmill.toolkit.demo.sampler.NamedExternalResource;
-import com.itmill.toolkit.ui.Window;
-
-public class WindowNativeNew extends Feature {
-
- @Override
- public String getName() {
- return "Native window - Unique";
- }
-
- @Override
- public String getDescription() {
- return "Creates and opens a new native browser window with its own state."
- + "<br>Native browser"
- + " windows can either share the same state (instance) or have their own"
- + " internal state (instance). In practice the former option means that the"
- + " URL of the window will always be same (pointing to the same Window object"
- + ", whereas using the latter option generates a new URL (and Window instance)"
- + " for each new window."
- + "<br>It is essential to remember to remove the closed windows from the"
- + " application e.g. by implementing the Window.CloseListener interface.";
- }
-
- @Override
- public APIResource[] getRelatedAPI() {
- return new APIResource[] { new APIResource(Window.class) };
- }
-
- @Override
- public Class[] getRelatedFeatures() {
- return new Class[] { WindowNativeShared.class, WindowChild.class,
- WindowChildAutosize.class, WindowChildModal.class,
- WindowChildPositionSize.class, WindowChildScrollable.class };
- }
-
- @Override
- public NamedExternalResource[] getRelatedResources() {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeNewExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeNewExample.java
deleted file mode 100644
index cd91e0e2eb..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeNewExample.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.terminal.ExternalResource;
-import com.itmill.toolkit.ui.Button;
-import com.itmill.toolkit.ui.Label;
-import com.itmill.toolkit.ui.VerticalLayout;
-import com.itmill.toolkit.ui.Window;
-import com.itmill.toolkit.ui.Button.ClickEvent;
-import com.itmill.toolkit.ui.Window.CloseEvent;
-
-public class WindowNativeNewExample extends VerticalLayout implements
- Window.CloseListener {
-
- private Button b1;
- private Button b2;
- private Label l;
-
- public WindowNativeNewExample() {
- setSpacing(true);
-
- b1 = new Button(
- "Create and open a new native window with its own state", this,
- "openButtonClick");
- addComponent(b1);
-
- l = new Label("Amount of windows in memory:");
- addComponent(l);
-
- b2 = new Button("Refresh", this, "refreshButtonClick");
- addComponent(b2);
- }
-
- public void openButtonClick(ClickEvent event) {
- Window w = new Window("Native subwindow");
- Label desc = new Label(
- "This is a new native window with its own state."
- + " You'll notice that if you open a new window several"
- + " times, the URL will be unique for each window, and the"
- + " amount of windows in memory will increase by one."
- + " When you close this window, the amount of windows in"
- + " memory should decrease by one."
- + " The window is added to the application and then"
- + " opened through its unique URL.");
- w.addComponent(desc);
- w.addListener(this);
- getApplication().addWindow(w);
- getApplication().getMainWindow().open(new ExternalResource(w.getURL()),
- "_blank");
- }
-
- public void refreshButtonClick(ClickEvent event) {
- l.setValue("Amount of windows in memory: "
- + getApplication().getWindows().size());
- }
-
- public void windowClose(CloseEvent e) {
- // In this example, the window will be removed after closing,
- getApplication().removeWindow(e.getWindow());
- System.err
- .println("Sampler->WindowNativeNewExample: Window close event");
- }
-
-} \ No newline at end of file
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeShared.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeShared.java
deleted file mode 100644
index 62229d4ee9..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeShared.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import com.itmill.toolkit.demo.sampler.APIResource;
-import com.itmill.toolkit.demo.sampler.Feature;
-import com.itmill.toolkit.demo.sampler.NamedExternalResource;
-import com.itmill.toolkit.ui.Window;
-
-public class WindowNativeShared extends Feature {
-
- @Override
- public String getName() {
- return "Native window - Shared";
- }
-
- @Override
- public String getDescription() {
- return "Creates and opens a new native browser window with shared state. If the"
- + " window object has already been created, it will only be reopened."
- + "<br>Native browser"
- + " windows can either share the same state (instance) or have their own"
- + " internal state (instance). In practice the former option means that the"
- + " URL of the window will always be same (pointing to the same Window object"
- + ", whereas using the latter option generates a new URL (and Window instance)"
- + " for each new window."
- + "<br>When using the latter option it is essential to remember to remove"
- + " the closed windows from the"
- + " application e.g. by implementing the Window.CloseListener interface.";
- }
-
- @Override
- public APIResource[] getRelatedAPI() {
- return new APIResource[] { new APIResource(Window.class) };
- }
-
- @Override
- public Class[] getRelatedFeatures() {
- return new Class[] { WindowNativeNew.class, WindowChild.class,
- WindowChildAutosize.class, WindowChildModal.class,
- WindowChildPositionSize.class, WindowChildScrollable.class };
- }
-
- @Override
- public NamedExternalResource[] getRelatedResources() {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
diff --git a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeSharedExample.java b/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeSharedExample.java
deleted file mode 100644
index 1166d3ecf1..0000000000
--- a/src/com/itmill/toolkit/demo/sampler/features/windows/WindowNativeSharedExample.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package com.itmill.toolkit.demo.sampler.features.windows;
-
-import java.net.URL;
-
-import com.itmill.toolkit.terminal.ExternalResource;
-import com.itmill.toolkit.ui.Button;
-import com.itmill.toolkit.ui.Label;
-import com.itmill.toolkit.ui.VerticalLayout;
-import com.itmill.toolkit.ui.Window;
-import com.itmill.toolkit.ui.Button.ClickEvent;
-import com.itmill.toolkit.ui.Window.CloseEvent;
-
-public class WindowNativeSharedExample extends VerticalLayout implements
- Window.CloseListener {
-
- private URL nativeWindowURL = null;
- private Button b1;
- private Button b2;
- private Label l;
-
- public WindowNativeSharedExample() {
- setSpacing(true);
-
- b1 = new Button("Create/open a new native window with shared state",
- this, "openButtonClick");
- addComponent(b1);
-
- l = new Label("Amount of windows in memory:");
- addComponent(l);
-
- b2 = new Button("Refresh", this, "refreshButtonClick");
- addComponent(b2);
- }
-
- public void openButtonClick(ClickEvent event) {
- if (nativeWindowURL == null) {
- final Window w = new Window("Native subwindow");
- final Label desc = new Label(
- "This is a new native window with a shared state."
- + " You'll notice that even if you open this several"
- + " times, the URL will always be the same, and the"
- + " amount of windows in memory will not increase. "
- + " The window is added to the application and then"
- + " opened through its unique URL.");
- w.addComponent(desc);
- w.addListener(this);
- getApplication().addWindow(w);
- nativeWindowURL = w.getURL();
- }
- getApplication().getMainWindow().open(
- new ExternalResource(nativeWindowURL), "_blank");
- }
-
- public void refreshButtonClick(ClickEvent event) {
- l.setValue("Amount of windows in memory: "
- + getApplication().getWindows().size());
- }
-
- public void windowClose(CloseEvent e) {
- // In this example, the window will not be removed after closing,
- // in order to preserve the window's URL functional. Normally you would
- // remove the window after closing as follows:
- // getApplication().removeWindow(e.getWindow());
-
- System.err
- .println("Sampler->WindowNativeSharedExample: Window close event");
- }
-
-} \ No newline at end of file
s'>fix/rector-use-statements Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/lib/l10n/ru.js
blob: e05f6ac024f1609fadc83dabba8ff1b09babadc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
OC.L10N.register(
    "lib",
    {
    "Cannot write into \"config\" directory!" : "Запись в каталог «config» невозможна!",
    "This can usually be fixed by giving the webserver write access to the config directory" : "Обычно это можно исправить, предоставив веб-серверу права на запись в каталог конфигурации",
    "See %s" : "Смотрите %s",
    "This can usually be fixed by giving the webserver write access to the config directory. See %s" : "Обычно это можно исправить, предоставив веб-серверу права на запись в каталог конфигурации. Смотрите %s",
    "The files of the app %$1s were not replaced correctly. Make sure it is a version compatible with the server." : "Файлы приложения %$1s не заменены корректно. Проверьте что его версия совместима с версией сервера.",
    "Sample configuration detected" : "Обнаружена конфигурация из примера",
    "It has been detected that the sample configuration has been copied. This can break your installation and is unsupported. Please read the documentation before performing changes on config.php" : "Была обнаружена конфигурация из примера. Такая конфигурация не поддерживается и может повредить вашей системе. Прочтите документацию перед внесением изменений в файл config.php",
    "%1$s and %2$s" : "%1$s и %2$s",
    "%1$s, %2$s and %3$s" : "%1$s, %2$s и %3$s",
    "%1$s, %2$s, %3$s and %4$s" : "%1$s, %2$s, %3$s и %4$s",
    "%1$s, %2$s, %3$s, %4$s and %5$s" : "%1$s, %2$s, %3$s, %4$s и %5$s",
    "Enterprise bundle" : "Корпоративный пакет",
    "Groupware bundle" : "Пакет для групп",
    "Social sharing bundle" : "Пакет для соц. сетей",
    "PHP %s or higher is required." : "Требуется PHP %s или выше",
    "PHP with a version lower than %s is required." : "Требуется версия PHP ниже %s.",
    "%sbit or higher PHP required." : "Требуется PHP с разрядностью %s бит или более.",
    "Following databases are supported: %s" : "Поддерживаются следующие СУБД: %s",
    "The command line tool %s could not be found" : "Утилита командной строки %s не найдена",
    "The library %s is not available." : "Библиотека %s недоступна.",
    "Library %s with a version higher than %s is required - available version %s." : "Требуется библиотека %s версии не меньше %s, установлена версия %s.",
    "Library %s with a version lower than %s is required - available version %s." : "Требуется библиотека %s версии не выше %s, установлена версия %s.",
    "Following platforms are supported: %s" : "Поддерживаются следующие платформы: %s",
    "Server version %s or higher is required." : "Требуется сервер версии %s или выше.",
    "Server version %s or lower is required." : "Требуется сервер версии %s или ниже.",
    "Unknown filetype" : "Неизвестный тип файла",
    "Invalid image" : "Изображение повреждено",
    "Avatar image is not square" : "Изображение аватара не квадратное",
    "today" : "сегодня",
    "yesterday" : "вчера",
    "_%n day ago_::_%n days ago_" : ["%n день назад","%n дня назад","%n дней назад","%n дней назад"],
    "last month" : "в прошлом месяце",
    "_%n month ago_::_%n months ago_" : ["%n месяц назад","%n месяца назад","%n месяцев назад","%n месяцев назад"],
    "last year" : "в прошлом году",
    "_%n year ago_::_%n years ago_" : ["%n год назад","%n года назад","%n лет назад","%n лет назад"],
    "_%n hour ago_::_%n hours ago_" : ["%n час назад","%n часа назад","%n часов назад","%n часов назад"],
    "_%n minute ago_::_%n minutes ago_" : ["%n минута назад","%n минуты назад","%n минут назад","%n минут назад"],
    "seconds ago" : "менее минуты",
    "Module with ID: %s does not exist. Please enable it in your apps settings or contact your administrator." : "Модуль с ID «%s» не существует. Включите его в настройках приложений или обратитесь к администратору.",
    "File name is a reserved word" : "Имя файла является зарезервированным словом",
    "File name contains at least one invalid character" : "Имя файла содержит по крайней мере один некорректный символ",
    "File name is too long" : "Имя файла слишком длинное.",
    "Dot files are not allowed" : "Файлы начинающиеся с точки не допускаются",
    "Empty filename is not allowed" : "Пустое имя файла не допускается",
    "App \"%s\" cannot be installed because appinfo file cannot be read." : "Приложение «%s» не может быть установлено, так как файл с информацией о приложении не может быть прочтен.",
    "App \"%s\" cannot be installed because it is not compatible with this version of the server." : "Приложение «%s» не может быть установлено, потому что оно несовместимо с этой версией сервера",
    "This is an automatically sent email, please do not reply." : "Это соощение отправлено автоматически, пожалуйста, не отвечайте на него.",
    "Help" : "Помощь",
    "Apps" : "Приложения",
    "Personal" : "Личное",
    "Log out" : "Выйти",
    "Users" : "Пользователи",
    "Admin" : "Администрирование",
    "APCu" : "APCu",
    "Redis" : "Redis",
    "Basic settings" : "Основные настройки",
    "Sharing" : "Общий доступ",
    "Security" : "Безопасность",
    "Encryption" : "Шифрование",
    "Additional settings" : "Дополнительные настройки",
    "Tips & tricks" : "Советы и трюки",
    "%s enter the database username and name." : "%s укажите имя пользователя и название для базы данных.",
    "%s enter the database username." : "%s введите имя пользователя базы данных.",
    "%s enter the database name." : "%s введите имя базы данных.",
    "%s you may not use dots in the database name" : "%s Вы не можете использовать точки в имени базы данных",
    "Oracle connection could not be established" : "Соединение с Oracle не может быть установлено",
    "Oracle username and/or password not valid" : "Неверное имя пользователя и/или пароль Oracle",
    "DB Error: \"%s\"" : "Ошибка БД: «%s»",
    "Offending command was: \"%s\"" : "Вызываемая команда была: «%s»",
    "You need to enter details of an existing account." : "Необходимо уточнить данные существующего акаунта.",
    "Offending command was: \"%s\", name: %s, password: %s" : "Вызываемая команда была: «%s», имя: %s, пароль: %s",
    "PostgreSQL username and/or password not valid" : "Неверное имя пользователя и/или пароль PostgreSQL",
    "Mac OS X is not supported and %s will not work properly on this platform. Use it at your own risk! " : "Mac OS X не поддерживается и %s может работать некорректно на данной платформе. Используйте на свой страх и риск!",
    "For the best results, please consider using a GNU/Linux server instead." : "Для достижения наилучших результатов, рассмотрите вариант использования сервера на GNU/Linux.",
    "It seems that this %s instance is running on a 32-bit PHP environment and the open_basedir has been configured in php.ini. This will lead to problems with files over 4 GB and is highly discouraged." : "Кажется что экземпляр этого %s работает в 32-битной среде PHP и в php.ini был настроен open_basedir. Это приведёт к проблемам с файлами более 4 ГБ и настоятельно не рекомендуется.",
    "Please remove the open_basedir setting within your php.ini or switch to 64-bit PHP." : "Пожалуйста, удалите директиву open_basedir из файла php.ini или смените PHP на 64-разрядную сборку.",
    "Set an admin username." : "Задать имя пользователя для администратора.",
    "Set an admin password." : "Задать пароль для admin.",
    "Can't create or write into the data directory %s" : "Невозможно создать или записать в каталог данных %s",
    "Invalid Federated Cloud ID" : "Неверный ID в объединении облачных хранилищ.",
    "Sharing %s failed, because the backend does not allow shares from type %i" : "Не удалось поделиться %s, так как механизм хранения не допускает публикации из элементов типа %i",
    "Sharing %s failed, because the file does not exist" : "Не удалось поделиться %s, файл не существует",
    "You are not allowed to share %s" : "Вам не разрешено делиться %s",
    "Sharing %s failed, because you can not share with yourself" : "Не удалось поделиться %s. Вы не можете поделиться с самим собой.",
    "Sharing %s failed, because the user %s does not exist" : "Не удалось поделиться %s, пользователь %s не существует.",
    "Sharing %s failed, because the user %s is not a member of any groups that %s is a member of" : "Не удалось поделиться %s, так как пользователь %s не состоит в какой-либо группе, в которой состоит %s",
    "Sharing %s failed, because this item is already shared with %s" : "Не удалось поделиться %s, пользователь %s уже имеет доступ к этому элементу",
    "Sharing %s failed, because this item is already shared with user %s" : "Не удалось поделиться %s, так как элемент находится в общем доступе у %s",
    "Sharing %s failed, because the group %s does not exist" : "Не удалось поделиться %s, группа %s не существует",
    "Sharing %s failed, because %s is not a member of the group %s" : "Не удалось поделиться %s, пользователь %s не является членом группы %s",
    "You need to provide a password to create a public link, only protected links are allowed" : "Вам нужно задать пароль для создания публичной ссылки. Разрешены только защищённые ссылки",
    "Sharing %s failed, because sharing with links is not allowed" : "Не удалось поделиться %s, открытие доступа по ссылке запрещено",
    "Not allowed to create a federated share with the same user" : "Не допускается создание федеративного общего ресурса с тем же пользователем",
    "Sharing %s failed, could not find %s, maybe the server is currently unreachable." : "Не удалось поделиться %s, не удалось найти %s, возможно, сервер не доступен.",
    "Share type %s is not valid for %s" : "Тип общего доступа %s недопустим для %s",
    "Setting permissions for %s failed, because the permissions exceed permissions granted to %s" : "Не удалось настроить права доступа для %s, указанные права доступа превышают предоставленные для %s",
    "Setting permissions for %s failed, because the item was not found" : "Не удалось настроить права доступа для %s, элемент не найден.",
    "Cannot set expiration date. Shares cannot expire later than %s after they have been shared" : "Невозможно установить дату истечения. Общие ресурсы не могут устареть позже %s с момента их публикации.",
    "Cannot set expiration date. Expiration date is in the past" : "Невозможно установить дату окончания. Дата окончания в прошлом.",
    "Cannot clear expiration date. Shares are required to have an expiration date." : "Невозможно очистить дату истечения срока действия. Общие ресурсы должны иметь срок годности.",
    "Sharing backend %s must implement the interface OCP\\Share_Backend" : "Бэкенд общего доступа %s должен реализовывать интерфейс OCP\\Share_Backend",
    "Sharing backend %s not found" : "Бэкенд общего доступа %s не найден",
    "Sharing backend for %s not found" : "Бэкенд общего доступа для %s не найден",
    "Sharing failed, because the user %s is the original sharer" : "Не удалось поделиться, потому что пользователь %s владелец этого элемента",
    "Sharing %s failed, because the permissions exceed permissions granted to %s" : "Не удалось поделиться %s, права превышают предоставленные права доступа %s",
    "Sharing %s failed, because resharing is not allowed" : "Не удалось поделиться %s, повторное открытие доступа запрещено",
    "Sharing %s failed, because the sharing backend for %s could not find its source" : "Не удалось поделиться %s, бэкенд общего доступа не нашел путь до %s",
    "Sharing %s failed, because the file could not be found in the file cache" : "Не удалось поделиться %s, элемент не найден в файловом кеше.",
    "Cannot increase permissions of %s" : "Невозможно увеличить права доступа для %s",
    "Files can't be shared with delete permissions" : "Файлы не могут иметь общий доступ с правами на удаление",
    "Files can't be shared with create permissions" : "Файлы не могут иметь общий доступ с правами на создание",
    "Expiration date is in the past" : "Дата окончания срока действия уже прошла",
    "Cannot set expiration date more than %s days in the future" : "Невозможно установить дату окончания срока действия более %s дней",
    "Could not find category \"%s\"" : "Категория «%s»  не найдена",
    "Sunday" : "Воскресенье",
    "Monday" : "Понедельник",
    "Tuesday" : "Вторник",
    "Wednesday" : "Среда",
    "Thursday" : "Четверг",
    "Friday" : "Пятница",
    "Saturday" : "Суббота",
    "Sun." : "Вс.",
    "Mon." : "Пн.",
    "Tue." : "Вт.",
    "Wed." : "Ср.",
    "Thu." : "Чт.",
    "Fri." : "Пт.",
    "Sat." : "Сб.",
    "Su" : "Вс",
    "Mo" : "Пн",
    "Tu" : "Вт",
    "We" : "Ср",
    "Th" : "Чт",
    "Fr" : "Пт",
    "Sa" : "Сб",
    "January" : "Январь",
    "February" : "Февраль",
    "March" : "Март",
    "April" : "Апрель",
    "May" : "Май",
    "June" : "Июнь",
    "July" : "Июль",
    "August" : "Август",
    "September" : "Сентябрь",
    "October" : "Октябрь",
    "November" : "Ноябрь",
    "December" : "Декабрь",
    "Jan." : "Янв.",
    "Feb." : "Фев.",
    "Mar." : "Мар.",
    "Apr." : "Апр.",
    "May." : "Май",
    "Jun." : "Июн.",
    "Jul." : "Июл.",
    "Aug." : "Авг.",
    "Sep." : "Сен.",
    "Oct." : "Окт.",
    "Nov." : "Нояб.",
    "Dec." : "Дек.",
    "Only the following characters are allowed in a username: \"a-z\", \"A-Z\", \"0-9\", and \"_.@-'\"" : "В составе имени пользователя допускаются следующие символы: «a–z», «A–Z», «0–9» и «_.@-'»",
    "A valid username must be provided" : "Укажите допустимое имя пользователя",
    "Username contains whitespace at the beginning or at the end" : "Имя пользователя содержит пробел в начале или в конце",
    "Username must not consist of dots only" : "Имя пользователя должно состоять не только из точек",
    "A valid password must be provided" : "Укажите допустимый пароль",
    "The username is already being used" : "Имя пользователя уже используется",
    "User disabled" : "Пользователь отключен",
    "Login canceled by app" : "Вход отменен приложением",
    "No app name specified" : "Не указано имя приложения",
    "App '%s' could not be installed!" : "Приложение '%s' не может быть установлено!",
    "App \"%s\" cannot be installed because the following dependencies are not fulfilled: %s" : "Приложение «%s» не может быть установлено, так как следующие зависимости не выполнены: %s",
    "a safe home for all your data" : "надежный дом для всех ваших данных",
    "File is currently busy, please try again later" : "Файл в данный момент используется, повторите попытку позже.",
    "Can't read file" : "Не удается прочитать файл",
    "Application is not enabled" : "Приложение не разрешено",
    "Authentication error" : "Ошибка аутентификации",
    "Token expired. Please reload page." : "Токен просрочен. Перезагрузите страницу.",
    "Unknown user" : "Неизвестный пользователь",
    "No database drivers (sqlite, mysql, or postgresql) installed." : "Не установлены драйвера баз данных (sqlite, mysql или postgresql)",
    "Cannot write into \"config\" directory" : "Запись в каталог «config» невозможна",
    "Cannot write into \"apps\" directory" : "Запись в каталог «app» невозможна",
    "This can usually be fixed by giving the webserver write access to the apps directory or disabling the appstore in the config file. See %s" : "Обычно это можно исправить, предоставив веб-серверу права на запись в каталог приложений или отключив магазин приложений в файле конфигурации. Смотрите %s",
    "Cannot create \"data\" directory" : "Невозможно создать каталог «data»",
    "This can usually be fixed by giving the webserver write access to the root directory. See %s" : "Обычно это можно исправить, предоставив веб-серверу права на запись в корневой каталог. Смотрите %s",
    "Permissions can usually be fixed by giving the webserver write access to the root directory. See %s." : "Разрешения обычно можно исправить, предоставив веб-серверу право на запись в корневой каталог. Смотрите %s.",
    "Setting locale to %s failed" : "Установка локали %s не удалась",
    "Please install one of these locales on your system and restart your webserver." : "Установите один из этих языковых пакетов на вашу систему и перезапустите веб-сервер.",
    "Please ask your server administrator to install the module." : "Пожалуйста, попростите администратора сервера установить модуль.",
    "PHP module %s not installed." : "Не установлен PHP-модуль %s.",
    "PHP setting \"%s\" is not set to \"%s\"." : "Параметру PHP «%s» не присвоено значение «%s».",
    "Adjusting this setting in php.ini will make Nextcloud run again" : "Настройка этого параметра в php.ini поможет Nextcloud работать снова",
    "mbstring.func_overload is set to \"%s\" instead of the expected value \"0\"" : "mbstring.func_overload установлен в «%s», при этом требуется «0»",
    "To fix this issue set <code>mbstring.func_overload</code> to <code>0</code> in your php.ini" : "Чтобы исправить эту проблему установите параметр <code>mbstring.func_overload</code> в значение <code>0</code> в php.ini",
    "libxml2 2.7.0 is at least required. Currently %s is installed." : "Требуется как минимум libxml2 версии 2.7.0. На данный момент установлена %s.",
    "To fix this issue update your libxml2 version and restart your web server." : "Для исправления этой ошибки обновите версию libxml2 и перезапустите ваш веб-сервер.",
    "PHP is apparently set up to strip inline doc blocks. This will make several core apps inaccessible." : "Очевидно, PHP настроен на вычищение блоков встроенной документации. Это сделает несколько центральных приложений недоступными.",
    "This is probably caused by a cache/accelerator such as Zend OPcache or eAccelerator." : "Возможно это вызвано кешем/ускорителем вроде Zend OPcache или eAccelerator.",
    "PHP modules have been installed, but they are still listed as missing?" : "Модули PHP были установлены, но они все еще перечислены как недостающие?",
    "Please ask your server administrator to restart the web server." : "Пожалуйста, попросите вашего администратора перезапустить веб-сервер.",
    "PostgreSQL >= 9 required" : "Требуется PostgreSQL >= 9",
    "Please upgrade your database version" : "Обновите базу данных",
    "Please change the permissions to 0770 so that the directory cannot be listed by other users." : "Измените права доступа на 0770, чтобы другие пользователи не могли получить список файлов этого каталога.",
    "Your data directory is readable by other users" : "Каталог данных доступен для чтения другим пользователям",
    "Your data directory must be an absolute path" : "Каталог данных должен быть указан в виде абсолютного пути",
    "Check the value of \"datadirectory\" in your configuration" : "Проверьте значение «datadirectory» в настройках.",
    "Your data directory is invalid" : "Каталог данных не верен",
    "Please check that the data directory contains a file \".ocdata\" in its root." : "Убедитесь, что файл «.ocdata» присутствует в корне каталога данных.",
    "Could not obtain lock type %d on \"%s\"." : "Не удалось получить блокировку типа %d для «%s»",
    "Storage unauthorized. %s" : "Хранилище неавторизовано. %s",
    "Storage incomplete configuration. %s" : "Неполная конфигурация хранилища.  %s",
    "Storage connection error. %s" : "Ошибка подключения к хранилищу. %s",
    "Storage is temporarily not available" : "Хранилище временно недоступно",
    "Storage connection timeout. %s" : "Истекло время ожидания подключения к хранилищу. %s",
    "This can usually be fixed by %sgiving the webserver write access to the config directory%s." : "Обычно это можно исправить %sпредоставив веб-серверу права на запись в каталоге конфигурации%s.",
    "Module with id: %s does not exist. Please enable it in your apps settings or contact your administrator." : "Модуль с ID %s не существует. Пожалуйста включите его в настройках приложений или обратитесь к администратору.",
    "Server settings" : "Настройки сервера",
    "You need to enter either an existing account or the administrator." : "Вы должны войти или в существующий аккаунт или под администратором.",
    "%s shared »%s« with you" : "%s поделился »%s« с вами",
    "%s via %s" : "%s через %s",
    "This can usually be fixed by %sgiving the webserver write access to the apps directory%s or disabling the appstore in the config file." : "Обычно это можно исправить, %sпредоставив веб-серверу права на запись в каталог приложений%s или отключив магазин приложений в файле конфигурации.",
    "Cannot create \"data\" directory (%s)" : "Невозможно создать каталог «data» (%s)",
    "This can usually be fixed by <a href=\"%s\" target=\"_blank\" rel=\"noreferrer\">giving the webserver write access to the root directory</a>." : "Обычно это можно исправить <a href=\"%s\" target=\"_blank\" rel=\"noreferrer\">предоставив веб-серверу права на запись в корневом каталоге</a>.",
    "Permissions can usually be fixed by %sgiving the webserver write access to the root directory%s." : "Обычно это можно исправить, %sпредоставив веб-серверу права на запись в корневой каталог%s.",
    "Data directory (%s) is readable by other users" : "Каталог данных (%s) доступен для чтения другим пользователям",
    "Data directory (%s) must be an absolute path" : "Каталог данных (%s) должен быть абсолютным путём",
    "Data directory (%s) is invalid" : "Каталог данных (%s) не верен"
},
"nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);");