diff options
Diffstat (limited to 'src/com/vaadin/ui/Window.java')
-rw-r--r-- | src/com/vaadin/ui/Window.java | 219 |
1 files changed, 0 insertions, 219 deletions
diff --git a/src/com/vaadin/ui/Window.java b/src/com/vaadin/ui/Window.java index 0063c37fb9..f9e22697ce 100644 --- a/src/com/vaadin/ui/Window.java +++ b/src/com/vaadin/ui/Window.java @@ -75,24 +75,6 @@ import com.vaadin.terminal.gwt.client.ui.VWindow; public class Window extends Panel implements FocusNotifier, BlurNotifier { /** - * <b>Application window only</b>. A border style used for opening resources - * in a window without a border. - */ - public static final int BORDER_NONE = 0; - - /** - * <b>Application window only</b>. A border style used for opening resources - * in a window with a minimal border. - */ - public static final int BORDER_MINIMAL = 1; - - /** - * <b>Application window only</b>. A border style that indicates that the - * default border style should be used when opening resources. - */ - public static final int BORDER_DEFAULT = 2; - - /** * <b>Sub window only</b>. Top offset in pixels for the sub window (relative * to the parent application window) or -1 if unspecified. */ @@ -223,17 +205,6 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier { } } - // Open requested resource - // synchronized (openList) { - // if (!openList.isEmpty()) { - // for (final Iterator<OpenResource> i = openList.iterator(); i - // .hasNext();) { - // (i.next()).paintContent(target); - // } - // openList.clear(); - // } - // } - // Contents of the window panel is painted super.paintContent(target); @@ -245,196 +216,6 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier { target.addVariable(this, "close", false); } - /* ********************************************************************* */ - - // /** - // * Opens the given resource in this window. The contents of this Window is - // * replaced by the {@code Resource}. - // * - // * @param resource - // * the resource to show in this window - // */ - // public void open(Resource resource) { - // synchronized (openList) { - // if (!openList.contains(resource)) { - // openList.add(new OpenResource(resource, null, -1, -1, - // BORDER_DEFAULT)); - // } - // } - // requestRepaint(); - // } - - /* ********************************************************************* */ - - // /** - // * Opens the given resource in a window with the given name. - // * <p> - // * The supplied {@code windowName} is used as the target name in a - // * window.open call in the client. This means that special values such as - // * "_blank", "_self", "_top", "_parent" have special meaning. An empty or - // * <code>null</code> window name is also a special case. - // * </p> - // * <p> - // * "", null and "_self" as {@code windowName} all causes the resource to - // be - // * opened in the current window, replacing any old contents. For - // * downloadable content you should avoid "_self" as "_self" causes the - // * client to skip rendering of any other changes as it considers them - // * irrelevant (the page will be replaced by the resource). This can speed - // up - // * the opening of a resource, but it might also put the client side into - // an - // * inconsistent state if the window content is not completely replaced - // e.g., - // * if the resource is downloaded instead of displayed in the browser. - // * </p> - // * <p> - // * "_blank" as {@code windowName} causes the resource to always be opened - // in - // * a new window or tab (depends on the browser and browser settings). - // * </p> - // * <p> - // * "_top" and "_parent" as {@code windowName} works as specified by the - // HTML - // * standard. - // * </p> - // * <p> - // * Any other {@code windowName} will open the resource in a window with - // that - // * name, either by opening a new window/tab in the browser or by replacing - // * the contents of an existing window with that name. - // * </p> - // * - // * @param resource - // * the resource. - // * @param windowName - // * the name of the window. - // */ - // public void open(Resource resource, String windowName) { - // synchronized (openList) { - // if (!openList.contains(resource)) { - // openList.add(new OpenResource(resource, windowName, -1, -1, - // BORDER_DEFAULT)); - // } - // } - // requestRepaint(); - // } - - // /** - // * Opens the given resource in a window with the given size, border and - // * name. For more information on the meaning of {@code windowName}, see - // * {@link #open(Resource, String)}. - // * - // * @param resource - // * the resource. - // * @param windowName - // * the name of the window. - // * @param width - // * the width of the window in pixels - // * @param height - // * the height of the window in pixels - // * @param border - // * the border style of the window. See {@link #BORDER_NONE - // * Window.BORDER_* constants} - // */ - // public void open(Resource resource, String windowName, int width, - // int height, int border) { - // synchronized (openList) { - // if (!openList.contains(resource)) { - // openList.add(new OpenResource(resource, windowName, width, - // height, border)); - // } - // } - // requestRepaint(); - // } - - // /** - // * Private class for storing properties related to opening resources. - // */ - // private class OpenResource implements Serializable { - // - // /** - // * The resource to open - // */ - // private final Resource resource; - // - // /** - // * The name of the target window - // */ - // private final String name; - // - // /** - // * The width of the target window - // */ - // private final int width; - // - // /** - // * The height of the target window - // */ - // private final int height; - // - // /** - // * The border style of the target window - // */ - // private final int border; - // - // /** - // * Creates a new open resource. - // * - // * @param resource - // * The resource to open - // * @param name - // * The name of the target window - // * @param width - // * The width of the target window - // * @param height - // * The height of the target window - // * @param border - // * The border style of the target window - // */ - // private OpenResource(Resource resource, String name, int width, - // int height, int border) { - // this.resource = resource; - // this.name = name; - // this.width = width; - // this.height = height; - // this.border = border; - // } - // - // /** - // * Paints the open request. Should be painted inside the window. - // * - // * @param target - // * the paint target - // * @throws PaintException - // * if the paint operation fails - // */ - // private void paintContent(PaintTarget target) throws PaintException { - // target.startTag("open"); - // target.addAttribute("src", resource); - // if (name != null && name.length() > 0) { - // target.addAttribute("name", name); - // } - // if (width >= 0) { - // target.addAttribute("width", width); - // } - // if (height >= 0) { - // target.addAttribute("height", height); - // } - // switch (border) { - // case Window.BORDER_MINIMAL: - // target.addAttribute("border", "minimal"); - // break; - // case Window.BORDER_NONE: - // target.addAttribute("border", "none"); - // break; - // } - // - // target.endTag("open"); - // } - // } - // - /* * (non-Javadoc) * |