View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   import sharin.doc.builder.GenericXmlElem;
    4
    5   public class ScriptElem extends GenericXmlElem<ScriptElem> {
    6
    7       public ScriptElem(Object... nodes) {
    8           super("script", nodes);
    9       }
    10
    11      public ScriptElem charset(Object value) {
    12          return attr("charset", value);
    13      }
    14
    15      public ScriptElem defer(boolean defer) {
    16          return defer ? defer("defer") : this;
    17      }
    18
    19      public ScriptElem defer(Object value) {
    20          return attr("defer", value);
    21      }
    22
    23      public ScriptElem language(Object value) {
    24          return attr("language", value);
    25      }
    26
    27      public ScriptElem src(Object value) {
    28          return attr("src", value);
    29      }
    30
    31      public ScriptElem type(Object value) {
    32          return attr("type", value);
    33      }
    34
    35      public ScriptElem xmlspace(Object value) {
    36          return attr("xmlspace", value);
    37      }
    38
    39      public ScriptElem xmlspacePreserve() {
    40          return xmlspace("preserve");
    41      }
    42  }