Return-Path: Delivered-To: apmail-incubator-click-commits-archive@locus.apache.org Received: (qmail 60558 invoked from network); 1 Dec 2008 17:52:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 17:52:28 -0000 Received: (qmail 72495 invoked by uid 500); 1 Dec 2008 17:52:39 -0000 Delivered-To: apmail-incubator-click-commits-archive@incubator.apache.org Received: (qmail 72480 invoked by uid 500); 1 Dec 2008 17:52:39 -0000 Mailing-List: contact click-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@incubator.apache.org Delivered-To: mailing list click-commits@incubator.apache.org Received: (qmail 72469 invoked by uid 99); 1 Dec 2008 17:52:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 09:52:39 -0800 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; Mon, 01 Dec 2008 17:51:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 50DF823889F1; Mon, 1 Dec 2008 09:52:07 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r722148 - /incubator/click/trunk/click/framework/src/net/sf/click/control/Radio.java Date: Mon, 01 Dec 2008 17:52:06 -0000 To: click-commits@incubator.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081201175207.50DF823889F1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sabob Date: Mon Dec 1 09:52:05 2008 New Revision: 722148 URL: http://svn.apache.org/viewvc?rev=722148&view=rev Log: Radio name is optional. CLK-473 Modified: incubator/click/trunk/click/framework/src/net/sf/click/control/Radio.java Modified: incubator/click/trunk/click/framework/src/net/sf/click/control/Radio.java URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/net/sf/click/control/Radio.java?rev=722148&r1=722147&r2=722148&view=diff ============================================================================== --- incubator/click/trunk/click/framework/src/net/sf/click/control/Radio.java (original) +++ incubator/click/trunk/click/framework/src/net/sf/click/control/Radio.java Mon Dec 1 09:52:05 2008 @@ -87,8 +87,6 @@ /** * Create an Radio field with no name defined. - *

- * Please note the control's name must be defined before it is valid. */ public Radio() { } @@ -164,6 +162,22 @@ } /** + * Set the parent of the Field. + * + * @see net.sf.click.Control#setParent(Object) + * + * @param parent the parent of the Control + * @throws IllegalArgumentException if the given parent instance is + * referencing this object: if (parent == this) + */ + public void setParent(Object parent) { + if (parent == this) { + throw new IllegalArgumentException("Cannot set parent to itself"); + } + this.parent = parent; + } + + /** * Return the field display label. *

* If the label value is null, this method will attempt to find a