01: package org.jreform.internal;
02:
03: import org.jreform.Group;
04:
05: /**
06: * @author armandino (at) gmail.com
07: */
08: public class BaseHtmlForm extends AbstractForm {
09: protected BaseHtmlForm() {
10: }
11:
12: protected final Group requiredGroup(String name) {
13: return addNewGroup(name, true);
14: }
15:
16: protected final Group optionalGroup(String name) {
17: return addNewGroup(name, false);
18: }
19:
20: private Group addNewGroup(String name, boolean isRequired) {
21: Group group = new GroupImpl(this, name, isRequired);
22: addGroup(group);
23: return group;
24: }
25:
26: }
|