Return-Path: Delivered-To: apmail-click-commits-archive@www.apache.org Received: (qmail 69846 invoked from network); 31 Oct 2010 11:55:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Oct 2010 11:55:02 -0000 Received: (qmail 18425 invoked by uid 500); 31 Oct 2010 11:55:02 -0000 Delivered-To: apmail-click-commits-archive@click.apache.org Received: (qmail 18411 invoked by uid 500); 31 Oct 2010 11:55:01 -0000 Mailing-List: contact commits-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@click.apache.org Delivered-To: mailing list commits@click.apache.org Received: (qmail 18389 invoked by uid 99); 31 Oct 2010 11:55:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Oct 2010 11:55:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Oct 2010 11:54:59 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8EBE52388A32; Sun, 31 Oct 2010 11:54:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1029317 - /click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java Date: Sun, 31 Oct 2010 11:54:03 -0000 To: commits@click.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101031115403.8EBE52388A32@eris.apache.org> Author: sabob Date: Sun Oct 31 11:54:03 2010 New Revision: 1029317 URL: http://svn.apache.org/viewvc?rev=1029317&view=rev Log: javadoc Modified: click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java Modified: click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java?rev=1029317&r1=1029316&r2=1029317&view=diff ============================================================================== --- click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java (original) +++ click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java Sun Oct 31 11:54:03 2010 @@ -237,19 +237,25 @@ public abstract class AbstractControl im /** * Returns true if this control has any - * Behaviors registered. - * - * @return true if this control has any * Behaviors registered, false otherwise. + * + * @return true if this control has any Behaviors registered, + * false otherwise */ public boolean hasBehaviors() { return (behaviors != null && !behaviors.isEmpty()); } /** - * Add the given {@link org.apache.click.Behavior Behavior} to the control. + * Add the given Behavior to the control's Set of + * {@link #getBehaviors() Behaviors}. + *

+ * In addition, the Control will be registered with the + * {@link org.apache.click.ControlRegistry#registerAjaxTarget(org.apache.click.Control) ControlRegistry} + * as a potential Ajax target control and to have it's + * Behaviors processed by the Click runtime. * - * @param behavior the behavior to add + * @param behavior the Behavior to add */ public void addBehavior(Behavior behavior) { if (behavior == null) { @@ -265,18 +271,19 @@ public abstract class AbstractControl im } /** - * Removes form this Control a behavior. + * Remove the given Behavior from the Control's Set of + * {@link #getBehaviors() Behaviors}. * - * @param behavior the behavior to remove. + * @param behavior the Behavior to remove */ public void removeBehavior(Behavior behavior) { getBehaviors().remove(behavior); } /** - * Returns the list with all available behaviors for this control. + * Returns the Set of Behaviors for this control. * - * @return the list with this control's behaviors. + * @return the Set of Behaviors for this control */ public Set getBehaviors() { if (behaviors == null) {