View Javadoc

1   package sharin.doc.builder.xhtml1;
2   
3   public class OptgroupElem extends GenericCommonElem<OptgroupElem> {
4   
5       public OptgroupElem(Object... nodes) {
6           super("optgroup", nodes);
7       }
8   
9       public OptgroupElem disabled(boolean disabled) {
10          return disabled ? disabled("disabled") : this;
11      }
12  
13      public OptgroupElem disabled(Object value) {
14          return attr("disabled", value);
15      }
16  
17      public OptgroupElem label(Object value) {
18          return attr("label", value);
19      }
20  }