From: Manolo Carrasco Date: Sun, 18 Jul 2010 08:34:04 +0000 (+0000) Subject: Script to generate code of lazyInterfaces was removing some valid lines in javadocs X-Git-Tag: release-1.3.2~664 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4554ca17fb13a32d855abce34aa350ba5f429949;p=gwtquery.git Script to generate code of lazyInterfaces was removing some valid lines in javadocs --- diff --git a/extractInterface.pl b/extractInterface.pl index eeb4fed1..e4dad07c 100644 --- a/extractInterface.pl +++ b/extractInterface.pl @@ -31,7 +31,7 @@ while() { 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*$/); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java index ed984434..d579e644 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java @@ -48,6 +48,7 @@ public interface LazyGQuery extends LazyBase{ /** * Add elements to the set of matched elements if they are not included yet. + * It also update the selector appending the new one. */ LazyGQuery add(GQuery previousObject); @@ -145,6 +146,7 @@ public interface LazyGQuery extends LazyBase{ /** * Set a key/value object as properties to all matched elements. * + * Example: $("img").attr(new Properties("src: 'test.jpg', alt: 'Test * Image'")) */ LazyGQuery attr(Properties properties); @@ -321,6 +323,7 @@ public interface LazyGQuery extends LazyBase{ * 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 data(String name, Class clz); @@ -351,7 +354,8 @@ public interface LazyGQuery extends LazyBase{ /** * 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 empty(); @@ -1004,6 +1008,7 @@ public interface LazyGQuery extends LazyBase{ * 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 toggleClass(String clz, boolean addOrRemove);