Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 60150 invoked from network); 10 Apr 2010 16:59:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Apr 2010 16:59:51 -0000 Received: (qmail 93236 invoked by uid 500); 10 Apr 2010 16:59:51 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 93181 invoked by uid 500); 10 Apr 2010 16:59:51 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 93174 invoked by uid 99); 10 Apr 2010 16:59:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 16:59:51 +0000 X-ASF-Spam-Status: No, hits=-1259.0 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Apr 2010 16:59:50 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3AGrgj4020655 for ; Sat, 10 Apr 2010 12:53:42 -0400 (EDT) Message-ID: <3273835.2341270918422545.JavaMail.jira@thor> Date: Sat, 10 Apr 2010 12:53:42 -0400 (EDT) From: "Bob Schellink (JIRA)" To: dev@click.apache.org Subject: [jira] Commented: (CLK-544) FieldSeparator control. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLK-544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855598#action_12855598 ] Bob Schellink commented on CLK-544: ----------------------------------- This ticket suggests that FieldSeparator "is a" FieldSet. That doesn't seem right? > FieldSeparator control. > ----------------------- > > Key: CLK-544 > URL: https://issues.apache.org/jira/browse/CLK-544 > Project: Click > Issue Type: New Feature > Components: examples > Reporter: Adrian A. > Assignee: Adrian A. > Priority: Minor > Fix For: 2.3.0 > > > In many forms it is required to use a "separator" between fields, to group them visually, but not to add them to a FieldSet (since this should be a pure visual effect). > Adding the controls to a FieldSet also breaks the alignment between groups, since each FieldSet seems to be aligned differently (due to the use of tables for auto-rendering). > A simple implementation for a FieldSeparator would look like the following snippet: > > /** > * A separator made by re-using the FieldSet control.

> * A special CSS style: .fieldSeparator is added to the HTML fieldset, > * that draws only the bottom line: > *

>  * .fieldSeparator {
>  *   border-bottom:0;
>  *   border-left:0;
>  *   border-right:0;
>  *   border-top-width:4px;
>  *  }
>  * 
> * > * @see net.sf.click.control.FieldSet > */ > public class FieldSeparator extends FieldSet { > public FieldSeparator() { > } > public FieldSeparator(String name) { > super(name); > addStyleClass("fieldSeparator"); > } > public FieldSeparator(String name, String legend) { > super(name, legend); > addStyleClass("fieldSeparator"); > } > // override container methods since this should be a pure visual control. > // .... > } >
> Thank you, > A. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira