Adds setCaption() and print() to the Window class.
Patch by: ajr
Review by: jgw



git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1557 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/Window.java b/user/src/com/google/gwt/user/client/Window.java
index ece0729..3cb0818 100644
--- a/user/src/com/google/gwt/user/client/Window.java
+++ b/user/src/com/google/gwt/user/client/Window.java
@@ -151,6 +151,14 @@
   }-*/;
 
   /**
+   * Prints the document in the window, as if the user had issued a "Print"
+   * command.
+   */
+  public static native void print() /*-{
+    $wnd.print();
+  }-*/;
+  
+  /**
    * Displays a request for information in a modal dialog box, along with the
    * standard 'OK' and 'Cancel' buttons.
    * 
@@ -198,6 +206,16 @@
   }-*/;
 
   /**
+   * Sets the status text for the window. Calling this method in Firefox
+   * has no effect.
+   * 
+   * @param status the new message to display.
+   */
+  public static native void setStatus(String status) /*-{
+    $wnd.status = status;
+  }-*/;
+  
+  /**
    * Sets the browser window's title.
    * 
    * @param title the new window title.