]> source.dussan.org Git - gwtquery.git/commitdiff
Script to generate code of lazyInterfaces was removing some valid lines in javadocs
authorManolo Carrasco <manolo@apache.org>
Sun, 18 Jul 2010 08:34:04 +0000 (08:34 +0000)
committerManolo Carrasco <manolo@apache.org>
Sun, 18 Jul 2010 08:34:04 +0000 (08:34 +0000)
extractInterface.pl
gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java

index eeb4fed1ba77dbebabb5c122754ef25a3868d520..e4dad07c13244091deb1bbd5d0dd58a1b41c44e3 100644 (file)
@@ -31,7 +31,7 @@ while(<F>) {
    s/^(\*.*)$/ $1/g;
    $inh = 0 if (/^\/\*\*/);
    $head .= $_ if ($inh);
-   $inclass=1 if ($ingq && m/(^|\s+|\()(class|enum|new) /);
+   $inclass=1 if (!$in && $ingq && m/(^|\s+|\()(class|enum|new) /);
    if ($ingq && !$inclass) {
       $in = 1 if (/^\/\**\s*$/);
       $com = "" if (/^\/\**\s*$/);
index ed98443455a7908ad61bd5bcb1769d685c587e4d..d579e64433cbbf73473136ae2c8744dce4882761 100644 (file)
@@ -48,6 +48,7 @@ public interface LazyGQuery<T> extends LazyBase<T>{
 
   /**
    * Add elements to the set of matched elements if they are not included yet.
+   * It also update the selector appending the new one.
    */
   LazyGQuery<T> add(GQuery previousObject);
 
@@ -145,6 +146,7 @@ public interface LazyGQuery<T> extends LazyBase<T>{
   /**
    * Set a key/value object as properties to all matched elements.
    *
+   * Example: $("img").attr(new Properties("src: 'test.jpg', alt: 'Test
    * Image'"))
    */
   LazyGQuery<T> attr(Properties properties);
@@ -321,6 +323,7 @@ public interface LazyGQuery<T> extends LazyBase<T>{
    * Returns value at named data store for the element, as set by data(name,
    * value) with desired return type.
    *
+   * @param clz return type class literal
    */
   <T> T data(String name, Class<T> clz);
 
@@ -351,7 +354,8 @@ public interface LazyGQuery<T> extends LazyBase<T>{
 
   /**
    * Remove all child nodes from the set of matched elements.
-   * In the case of a document element, it removes all the content.
+   * In the case of a document element, it removes all the content
+   * You should call this method whenever you create a new iframe and you
    * want to add dynamic content to it.
    */
   LazyGQuery<T> empty();
@@ -1004,6 +1008,7 @@ public interface LazyGQuery<T> extends LazyBase<T>{
    * Adds or removes the specified classes to each matched element
    * depending on the value of the switch argument.
    *
+   * if addOrRemove is true, the class is added and in the case of
    * false it is removed.
    */
   LazyGQuery<T> toggleClass(String clz, boolean addOrRemove);