click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian A. (JIRA)" <>
Subject [jira] Created: (CLK-544) FieldSeparator control.
Date Thu, 30 Apr 2009 11:58:30 GMT
FieldSeparator control.

                 Key: CLK-544
             Project: Click
          Issue Type: New Feature
          Components: extras
            Reporter: Adrian A.

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 <b>re-using</b> the FieldSet control.<p/>
 * A special CSS style: <code>.fieldSeparator</code> is added to the HTML fieldset,
 * that draws only the bottom line:
 * <pre>
 * .fieldSeparator {
 *   border-bottom:0;
 *   border-left:0;
 *   border-right:0;
 *   border-top-width:4px;
 *  }
 * </pre>
 * @see
public class FieldSeparator extends FieldSet {
    public FieldSeparator() {

    public FieldSeparator(String name) {

    public FieldSeparator(String name, String legend) {
        super(name, legend);
    // override container methods since this should be a pure visual control.
    // ....

Thank you,


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message