View Javadoc

1   package sharin.doc.builder.xhtml1;
2   
3   import sharin.doc.builder.Elem;
4   import sharin.doc.builder.GenericXmlElem;
5   
6   public class GenericCoreElem<E extends Elem> extends GenericXmlElem<E> {
7   
8       public GenericCoreElem(String name, Object... nodes) {
9           super(name, nodes);
10      }
11  
12      public E id(Object value) {
13          return attr("id", value);
14      }
15  
16      /**
17       * class
18       */
19      public E clas(Object value) {
20          return attr("class", value);
21      }
22  
23      public E style(Object value) {
24          return attr("style", value);
25      }
26  
27      public E title(Object value) {
28          return attr("title", value);
29      }
30  }