Author: mgrigorov
Date: Sun Nov 14 15:19:29 2010
New Revision: 1035005

URL: http://svn.apache.org/viewvc?rev=1035005&view=rev
Log:
WICKET-3080 Automatic sizing modal window

Javadoc improvements

Modified:
    
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java

Modified: 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java?rev=1035005&r1=1035004&r2=1035005&view=diff
==============================================================================
--- 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java
 (original)
+++ 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java
 Sun Nov 14 15:19:29 2010
@@ -95,6 +95,8 @@ import org.apache.wicket.util.string.Str
  * stored).
  * <li><code>{...@link #setMinimalWidth(int)}</code> and <code>{...@link 
#setMinimalHeight(int)}</code>
  * set the minimal dimensions of resizable window.
+ * <li><code>{...@link #setAutoSize(boolean)}</code> sets whether window size 
will be automatically adjusted 
+ * on opening to fit content's width and height. Default is false.<span 
style="text-decoration: underline"> Doesn't work on IE 6.</span></li>
  * <li>Modal window can chose between two colors of frame.
  * <code>{...@link #setCssClassName(String)}</code> sets the dialog css class, 
possible values are
  * <code>{...@link #CSS_CLASS_BLUE}</code> for blue frame and <code>{...@link 
#CSS_CLASS_GRAY}</code> for
@@ -1158,7 +1160,14 @@ public class ModalWindow extends Panel
                        title.detach();
                }
        }
-
+       
+       /**
+        * Sets whether window size will be automatically adjusted on opening 
to fit
+        * content's width and height. <span style="text-decoration: 
underline">Doesn't work on IE 6.</span>
+        * @param autoSize
+        *            Whether window size will be automatically adjusted
+        * @return this
+        */
        public ModalWindow setAutoSize(boolean autoSize)
        {
                this.autoSize = autoSize;
@@ -1166,9 +1175,9 @@ public class ModalWindow extends Panel
        }
 
        /**
-        * Returns whether the window is resizable.
+        * Returns whether window will be opened in autosize mode.
         * 
-        * @return True if the window is resizable, false otherwise
+        * @return True if the window will be opened open in autosize mode, 
false otherwise
         */
        public boolean isAutoSize()
        {


Reply via email to