click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bck...@apache.org
Subject svn commit: r961715 - in /click/trunk/click: extras/src/org/apache/click/extras/control/ framework/src/org/apache/click/ framework/src/org/apache/click/service/ mock/src/org/apache/click/servlet/
Date Thu, 08 Jul 2010 11:17:43 GMT
Author: bckfnn
Date: Thu Jul  8 11:17:43 2010
New Revision: 961715

URL: http://svn.apache.org/viewvc?rev=961715&view=rev
Log:
fix checkstyle warnings.

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
    click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java
    click/trunk/click/framework/src/org/apache/click/Control.java
    click/trunk/click/framework/src/org/apache/click/Page.java
    click/trunk/click/framework/src/org/apache/click/service/DefaultMessagesMapService.java
    click/trunk/click/framework/src/org/apache/click/service/MessagesMapService.java
    click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java?rev=961715&r1=961714&r2=961715&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
(original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/AutoCompleteTextField.java
Thu Jul  8 11:17:43 2010
@@ -435,7 +435,7 @@ public abstract class AutoCompleteTextFi
      * @return the field internal Ajax behavior instance
      */
     protected Behavior getBehavior() {
-        if(behavior == null) {
+        if (behavior == null) {
             behavior = createBehavior();
         }
         return behavior;

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java?rev=961715&r1=961714&r2=961715&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java Thu Jul  8
11:17:43 2010
@@ -924,12 +924,12 @@ public class DateField extends TextField
 
             buffer.append("Date.dayNames=new Array(");
             generateJavaScriptArray(buffer, dfs.getWeekdays(),
-                    Calendar.SUNDAY, Calendar.SATURDAY+1);
+                    Calendar.SUNDAY, Calendar.SATURDAY + 1);
             buffer.append(");\n");
 
             buffer.append("Date.dayAbbreviations=new Array(");
             generateJavaScriptArray(buffer, dfs.getShortWeekdays(),
-                    Calendar.SUNDAY, Calendar.SATURDAY+1);
+                    Calendar.SUNDAY, Calendar.SATURDAY + 1);
             buffer.append(");\n");
 
             String[] weekdays = null;

Modified: click/trunk/click/framework/src/org/apache/click/Control.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/Control.java?rev=961715&r1=961714&r2=961715&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/Control.java (original)
+++ click/trunk/click/framework/src/org/apache/click/Control.java Thu Jul  8 11:17:43 2010
@@ -464,9 +464,30 @@ public interface Control extends Seriali
      */
     public void render(HtmlStringBuffer buffer);
 
+    /**
+     * Returns <tt>true</tt> if this control has any
+     * <tt>Behavior</tt>s registered.
+     *
+     * @return <tt>true</tt> if this control has any
+     * <tt>Behavior</tt>s registered, <tt>false</tt> otherwise.
+     */
     public boolean hasBehaviors();
 
+    /**
+     * Returns the list with all available behaviors for this control.
+     *
+     * @return the list with this control's behaviors.
+     */
     public List<Behavior> getBehaviors();
 
+    /**
+     * Returns <tt>true</tt> if this control is an AJAX target, <tt>false</tt>
+     * otherwise.
+     * <p/>
+     *
+     * @param context the request context
+     * @return <tt>true</tt> if this control is an AJAX target, <tt>false</tt>
+     * otherwise
+     */
     public boolean isAjaxTarget(Context context);
 }

Modified: click/trunk/click/framework/src/org/apache/click/Page.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/Page.java?rev=961715&r1=961714&r2=961715&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/Page.java (original)
+++ click/trunk/click/framework/src/org/apache/click/Page.java Thu Jul  8 11:17:43 2010
@@ -30,7 +30,6 @@ import org.apache.click.element.Element;
 import org.apache.click.util.ClickUtils;
 import org.apache.click.util.Format;
 import org.apache.click.util.HtmlStringBuffer;
-import org.apache.click.util.MessagesMap;
 import org.apache.click.util.PageImports;
 import org.apache.commons.lang.StringUtils;
 

Modified: click/trunk/click/framework/src/org/apache/click/service/DefaultMessagesMapService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/DefaultMessagesMapService.java?rev=961715&r1=961714&r2=961715&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/service/DefaultMessagesMapService.java
(original)
+++ click/trunk/click/framework/src/org/apache/click/service/DefaultMessagesMapService.java
Thu Jul  8 11:17:43 2010
@@ -52,7 +52,7 @@ public class DefaultMessagesMapService i
      *
      * @param baseClass the target class
      * @param globalResource the global resource bundle name
-     * @param the users Locale
+     * @param locale the users Locale
      *
      * @return a MessagesMap instance.
      *

Modified: click/trunk/click/framework/src/org/apache/click/service/MessagesMapService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/MessagesMapService.java?rev=961715&r1=961714&r2=961715&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/service/MessagesMapService.java (original)
+++ click/trunk/click/framework/src/org/apache/click/service/MessagesMapService.java Thu Jul
 8 11:17:43 2010
@@ -77,7 +77,7 @@ public interface MessagesMapService {
      *
      * @param baseClass the target class
      * @param globalResource the global resource bundle name
-     * @param the users Locale
+     * @param locale the users Locale
      * @return a new messages map with the messages for the target.
      */
     public Map<String, String> createMessagesMap(Class<?> baseClass,

Modified: click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java?rev=961715&r1=961714&r2=961715&view=diff
==============================================================================
--- click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java (original)
+++ click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java Thu Jul  8 11:17:43
2010
@@ -591,7 +591,7 @@ public class MockRequest implements Http
     public String getParameter(final String name) {
         Object value = parameters.get(name);
         if (value instanceof String[]) {
-            return ((String[])value)[0];
+            return ((String[]) value)[0];
         } else {
             return (String) value;
         }



Mime
View raw message