org.apache.hadoop.yarn.webapp.hamlet.Hamlet Maven / Gradle / Ivy
The newest version!
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by HamletGen. Do NOT edit!
package org.apache.hadoop.yarn.webapp.hamlet;
import static java.util.EnumSet.of;
import static org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EOpt.ENDTAG;
import static org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EOpt.INLINE;
import static org.apache.hadoop.yarn.webapp.hamlet.HamletImpl.EOpt.PRE;
import java.io.PrintWriter;
import java.util.EnumSet;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.yarn.webapp.SubView;
/**
* @deprecated Use org.apache.hadoop.yarn.webapp.hamlet2 package instead.
*/
@Deprecated
@InterfaceAudience.LimitedPrivate({"YARN", "MapReduce"})
public class Hamlet extends HamletImpl implements HamletSpec._Html {
public Hamlet(PrintWriter out, int nestLevel, boolean wasInline) {
super(out, nestLevel, wasInline);
}
static EnumSet opt(boolean endTag, boolean inline, boolean pre) {
EnumSet opts = of(ENDTAG);
if (!endTag) opts.remove(ENDTAG);
if (inline) opts.add(INLINE);
if (pre) opts.add(PRE);
return opts;
}
public class HTML extends EImp implements HamletSpec.HTML {
public HTML(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public HTML $lang(String value) {
addAttr("lang", value);
return this;
}
@Override
public HTML $dir(Dir value) {
addAttr("dir", value);
return this;
}
@Override
public HEAD> head() {
closeAttrs();
return head_(this, false);
}
@Override
public BODY> body() {
closeAttrs();
return body_(this, false);
}
@Override
public BODY> body(String selector) {
return setSelector(body(), selector);
}
@Override
public BASE> base() {
closeAttrs();
return base_(this, false);
}
@Override
public HTML base(String href) {
return base().$href(href)._();
}
@Override
public TITLE> title() {
closeAttrs();
return title_(this, false);
}
@Override
public HTML title(String cdata) {
return title()._(cdata)._();
}
@Override
public STYLE> style() {
closeAttrs();
return style_(this, false);
}
@Override
public HTML style(Object... lines) {
return style().$type("text/css")._(lines)._();
}
@Override
public LINK> link() {
closeAttrs();
return link_(this, false);
}
@Override
public HTML link(String href) {
return setLinkHref(link(), href)._();
}
@Override
public META> meta() {
closeAttrs();
return meta_(this, false);
}
@Override
public HTML meta(String name, String content) {
return meta().$name(name).$content(content)._();
}
@Override
public HTML meta_http(String header, String content) {
return meta().$http_equiv(header).$content(content)._();
}
@Override
public SCRIPT> script() {
closeAttrs();
return script_(this, false);
}
@Override
public HTML script(String src) {
return setScriptSrc(script(), src)._();
}
@Override
public OBJECT> object() {
closeAttrs();
return object_(this, true);
}
@Override
public OBJECT> object(String selector) {
return setSelector(object(), selector);
}
@Override
public TABLE> table() {
closeAttrs();
return table_(this, false);
}
@Override
public TABLE> table(String selector) {
return setSelector(table(), selector);
}
@Override
public HTML address(String cdata) {
return address()._(cdata)._();
}
@Override
public ADDRESS> address() {
closeAttrs();
return address_(this, false);
}
@Override
public P> p(String selector) {
return setSelector(p(), selector);
}
@Override
public P> p() {
closeAttrs();
return p_(this, false);
}
@Override
public HTML _(Class extends SubView> cls) {
_v(cls);
return this;
}
@Override
public HR> hr() {
closeAttrs();
return hr_(this, false);
}
@Override
public HTML hr(String selector) {
return setSelector(hr(), selector)._();
}
@Override
public DL> dl(String selector) {
return setSelector(dl(), selector);
}
@Override
public DL> dl() {
closeAttrs();
return dl_(this, false);
}
@Override
public DIV> div(String selector) {
return setSelector(div(), selector);
}
@Override
public DIV> div() {
closeAttrs();
return div_(this, false);
}
@Override
public BLOCKQUOTE> blockquote() {
closeAttrs();
return blockquote_(this, false);
}
@Override
public BLOCKQUOTE> bq() {
closeAttrs();
return blockquote_(this, false);
}
@Override
public HTML h1(String cdata) {
return h1()._(cdata)._();
}
@Override
public H1> h1() {
closeAttrs();
return h1_(this, false);
}
@Override
public HTML h1(String selector, String cdata) {
return setSelector(h1(), selector)._(cdata)._();
}
@Override
public HTML h2(String cdata) {
return h2()._(cdata)._();
}
@Override
public H2> h2() {
closeAttrs();
return h2_(this, false);
}
@Override
public HTML h2(String selector, String cdata) {
return setSelector(h2(), selector)._(cdata)._();
}
@Override
public H3> h3() {
closeAttrs();
return h3_(this, false);
}
@Override
public HTML h3(String cdata) {
return h3()._(cdata)._();
}
@Override
public HTML h3(String selector, String cdata) {
return setSelector(h3(), selector)._(cdata)._();
}
@Override
public H4> h4() {
closeAttrs();
return h4_(this, false);
}
@Override
public HTML h4(String cdata) {
return h4()._(cdata)._();
}
@Override
public HTML h4(String selector, String cdata) {
return setSelector(h4(), selector)._(cdata)._();
}
@Override
public H5> h5() {
closeAttrs();
return h5_(this, false);
}
@Override
public HTML h5(String cdata) {
return h5()._(cdata)._();
}
@Override
public HTML h5(String selector, String cdata) {
return setSelector(h5(), selector)._(cdata)._();
}
@Override
public H6> h6() {
closeAttrs();
return h6_(this, false);
}
@Override
public HTML h6(String cdata) {
return h6()._(cdata)._();
}
@Override
public HTML h6(String selector, String cdata) {
return setSelector(h6(), selector)._(cdata)._();
}
@Override
public UL> ul() {
closeAttrs();
return ul_(this, false);
}
@Override
public UL> ul(String selector) {
return setSelector(ul(), selector);
}
@Override
public OL> ol() {
closeAttrs();
return ol_(this, false);
}
@Override
public OL> ol(String selector) {
return setSelector(ol(), selector);
}
@Override
public PRE> pre() {
closeAttrs();
return pre_(this, false);
}
@Override
public PRE> pre(String selector) {
return setSelector(pre(), selector);
}
@Override
public FORM> form() {
closeAttrs();
return form_(this, false);
}
@Override
public FORM> form(String selector) {
return setSelector(form(), selector);
}
@Override
public FIELDSET> fieldset() {
closeAttrs();
return fieldset_(this, false);
}
@Override
public FIELDSET> fieldset(String selector) {
return setSelector(fieldset(), selector);
}
@Override
public INS> ins() {
closeAttrs();
return ins_(this, true);
}
@Override
public HTML ins(String cdata) {
return ins()._(cdata)._();
}
@Override
public DEL> del() {
closeAttrs();
return del_(this, true);
}
@Override
public HTML del(String cdata) {
return del()._(cdata)._();
}
}
private HEAD head_(T e, boolean inline) {
return new HEAD("head", e, opt(true, inline, false)); }
private BODY body_(T e, boolean inline) {
return new BODY("body", e, opt(true, inline, false)); }
public class SCRIPT extends EImp implements HamletSpec.SCRIPT {
public SCRIPT(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public SCRIPT $type(String value) {
addAttr("type", value);
return this;
}
@Override
public SCRIPT $src(String value) {
addAttr("src", value);
return this;
}
@Override
public SCRIPT $charset(String value) {
addAttr("charset", value);
return this;
}
@Override
public SCRIPT $defer(String value) {
addAttr("defer", value);
return this;
}
@Override
public SCRIPT _(Object... lines) {
_p(false, lines);
return this;
}
}
public class STYLE extends EImp implements HamletSpec.STYLE {
public STYLE(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public STYLE $type(String value) {
addAttr("type", value);
return this;
}
@Override
public STYLE $media(EnumSet value) {
addMediaAttr("media", value);
return this;
}
@Override
public STYLE $title(String value) {
addAttr("title", value);
return this;
}
@Override
public STYLE $lang(String value) {
addAttr("lang", value);
return this;
}
@Override
public STYLE $dir(Dir value) {
addAttr("dir", value);
return this;
}
@Override
public STYLE _(Object... lines) {
_p(false, lines);
return this;
}
}
public class META extends EImp implements HamletSpec.META {
public META(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public META $http_equiv(String value) {
addAttr("http-equiv", value);
return this;
}
@Override
public META $name(String value) {
addAttr("name", value);
return this;
}
@Override
public META $content(String value) {
addAttr("content", value);
return this;
}
@Override
public META $lang(String value) {
addAttr("lang", value);
return this;
}
@Override
public META $dir(Dir value) {
addAttr("dir", value);
return this;
}
}
public class BASE extends EImp implements HamletSpec.BASE {
public BASE(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public BASE $href(String value) {
addAttr("href", value);
return this;
}
}
public class TITLE extends EImp implements HamletSpec.TITLE {
public TITLE(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public TITLE $lang(String value) {
addAttr("lang", value);
return this;
}
@Override
public TITLE $dir(Dir value) {
addAttr("dir", value);
return this;
}
@Override
public TITLE _(Object... lines) {
_p(true, lines);
return this;
}
@Override
public TITLE _r(Object... lines) {
_p(false, lines);
return this;
}
}
public class HEAD extends EImp implements HamletSpec.HEAD {
public HEAD(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public HEAD $lang(String value) {
addAttr("lang", value);
return this;
}
@Override
public HEAD $dir(Dir value) {
addAttr("dir", value);
return this;
}
@Override
public BASE> base() {
closeAttrs();
return base_(this, false);
}
@Override
public HEAD base(String href) {
return base().$href(href)._();
}
@Override
public TITLE> title() {
closeAttrs();
return title_(this, false);
}
@Override
public HEAD title(String cdata) {
return title()._(cdata)._();
}
@Override
public STYLE> style() {
closeAttrs();
return style_(this, false);
}
@Override
public HEAD style(Object... lines) {
return style().$type("text/css")._(lines)._();
}
@Override
public LINK> link() {
closeAttrs();
return link_(this, false);
}
@Override
public HEAD link(String href) {
return setLinkHref(link(), href)._();
}
@Override
public META> meta() {
closeAttrs();
return meta_(this, false);
}
@Override
public HEAD meta(String name, String content) {
return meta().$name(name).$content(content)._();
}
@Override
public HEAD meta_http(String header, String content) {
return meta().$http_equiv(header).$content(content)._();
}
@Override
public SCRIPT> script() {
closeAttrs();
return script_(this, false);
}
@Override
public HEAD script(String src) {
return setScriptSrc(script(), src)._();
}
@Override
public OBJECT> object() {
closeAttrs();
return object_(this, true);
}
@Override
public OBJECT> object(String selector) {
return setSelector(object(), selector);
}
}
private BASE base_(T e, boolean inline) {
return new BASE("base", e, opt(false, inline, false)); }
private TITLE title_(T e, boolean inline) {
return new TITLE("title", e, opt(true, inline, false)); }
public class TD extends EImp implements HamletSpec.TD {
public TD(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public TD $headers(String value) {
addAttr("headers", value);
return this;
}
@Override
public TD $scope(Scope value) {
addAttr("scope", value);
return this;
}
@Override
public TD $rowspan(int value) {
addAttr("rowspan", value);
return this;
}
@Override
public TD $colspan(int value) {
addAttr("colspan", value);
return this;
}
@Override
public TD $id(String value) {
addAttr("id", value);
return this;
}
@Override
public TD $class(String value) {
addAttr("class", value);
return this;
}
@Override
public TD $title(String value) {
addAttr("title", value);
return this;
}
@Override
public TD $style(String value) {
addAttr("style", value);
return this;
}
@Override
public TD $lang(String value) {
addAttr("lang", value);
return this;
}
@Override
public TD $dir(Dir value) {
addAttr("dir", value);
return this;
}
@Override
public TD $onclick(String value) {
addAttr("onclick", value);
return this;
}
@Override
public TD $ondblclick(String value) {
addAttr("ondblclick", value);
return this;
}
@Override
public TD $onmousedown(String value) {
addAttr("onmousedown", value);
return this;
}
@Override
public TD $onmouseup(String value) {
addAttr("onmouseup", value);
return this;
}
@Override
public TD $onmouseover(String value) {
addAttr("onmouseover", value);
return this;
}
@Override
public TD $onmousemove(String value) {
addAttr("onmousemove", value);
return this;
}
@Override
public TD $onmouseout(String value) {
addAttr("onmouseout", value);
return this;
}
@Override
public TD $onkeypress(String value) {
addAttr("onkeypress", value);
return this;
}
@Override
public TD $onkeydown(String value) {
addAttr("onkeydown", value);
return this;
}
@Override
public TD $onkeyup(String value) {
addAttr("onkeyup", value);
return this;
}
@Override
public TABLE> table() {
closeAttrs();
return table_(this, false);
}
@Override
public TABLE > table(String selector) {
return setSelector(table(), selector);
}
@Override
public TD address(String cdata) {
return address()._(cdata)._();
}
@Override
public ADDRESS> address() {
closeAttrs();
return address_(this, false);
}
@Override
public P > p(String selector) {
return setSelector(p(), selector);
}
@Override
public P > p() {
closeAttrs();
return p_(this, false);
}
@Override
public TD _(Class extends SubView> cls) {
_v(cls);
return this;
}
@Override
public HR> hr() {
closeAttrs();
return hr_(this, false);
}
@Override
public TD hr(String selector) {
return setSelector(hr(), selector)._();
}
@Override
public DL> dl(String selector) {
return setSelector(dl(), selector);
}
@Override
public DL > dl() {
closeAttrs();
return dl_(this, false);
}
@Override
public DIV > div(String selector) {
return setSelector(div(), selector);
}
@Override
public DIV > div() {
closeAttrs();
return div_(this, false);
}
@Override
public BLOCKQUOTE > blockquote() {
closeAttrs();
return blockquote_(this, false);
}
@Override
public BLOCKQUOTE > bq() {
closeAttrs();
return blockquote_(this, false);
}
@Override
public TD h1(String cdata) {
return h1()._(cdata)._();
}
@Override
public H1> h1() {
closeAttrs();
return h1_(this, false);
}
@Override
public TD h1(String selector, String cdata) {
return setSelector(h1(), selector)._(cdata)._();
}
@Override
public TD h2(String cdata) {
return h2()._(cdata)._();
}
@Override
public H2> h2() {
closeAttrs();
return h2_(this, false);
}
@Override
public TD h2(String selector, String cdata) {
return setSelector(h2(), selector)._(cdata)._();
}
@Override
public H3> h3() {
closeAttrs();
return h3_(this, false);
}
@Override
public TD h3(String cdata) {
return h3()._(cdata)._();
}
@Override
public TD h3(String selector, String cdata) {
return setSelector(h3(), selector)._(cdata)._();
}
@Override
public H4> h4() {
closeAttrs();
return h4_(this, false);
}
@Override
public TD h4(String cdata) {
return h4()._(cdata)._();
}
@Override
public TD h4(String selector, String cdata) {
return setSelector(h4(), selector)._(cdata)._();
}
@Override
public H5> h5() {
closeAttrs();
return h5_(this, false);
}
@Override
public TD h5(String cdata) {
return h5()._(cdata)._();
}
@Override
public TD h5(String selector, String cdata) {
return setSelector(h5(), selector)._(cdata)._();
}
@Override
public H6> h6() {
closeAttrs();
return h6_(this, false);
}
@Override
public TD h6(String cdata) {
return h6()._(cdata)._();
}
@Override
public TD h6(String selector, String cdata) {
return setSelector(h6(), selector)._(cdata)._();
}
@Override
public UL> ul() {
closeAttrs();
return ul_(this, false);
}
@Override
public UL > ul(String selector) {
return setSelector(ul(), selector);
}
@Override
public OL > ol() {
closeAttrs();
return ol_(this, false);
}
@Override
public OL > ol(String selector) {
return setSelector(ol(), selector);
}
@Override
public PRE > pre() {
closeAttrs();
return pre_(this, false);
}
@Override
public PRE > pre(String selector) {
return setSelector(pre(), selector);
}
@Override
public FORM > form() {
closeAttrs();
return form_(this, false);
}
@Override
public FORM > form(String selector) {
return setSelector(form(), selector);
}
@Override
public FIELDSET > fieldset() {
closeAttrs();
return fieldset_(this, false);
}
@Override
public FIELDSET > fieldset(String selector) {
return setSelector(fieldset(), selector);
}
@Override
public TD _(Object... lines) {
_p(true, lines);
return this;
}
@Override
public TD _r(Object... lines) {
_p(false, lines);
return this;
}
@Override
public B> b() {
closeAttrs();
return b_(this, true);
}
@Override
public TD b(String cdata) {
return b()._(cdata)._();
}
@Override
public TD b(String selector, String cdata) {
return setSelector(b(), selector)._(cdata)._();
}
@Override
public I> i() {
closeAttrs();
return i_(this, true);
}
@Override
public TD i(String cdata) {
return i()._(cdata)._();
}
@Override
public TD i(String selector, String cdata) {
return setSelector(i(), selector)._(cdata)._();
}
@Override
public SMALL> small() {
closeAttrs();
return small_(this, true);
}
@Override
public TD small(String cdata) {
return small()._(cdata)._();
}
@Override
public TD small(String selector, String cdata) {
return setSelector(small(), selector)._(cdata)._();
}
@Override
public TD em(String cdata) {
return em()._(cdata)._();
}
@Override
public EM> em() {
closeAttrs();
return em_(this, true);
}
@Override
public TD em(String selector, String cdata) {
return setSelector(em(), selector)._(cdata)._();
}
@Override
public STRONG> strong() {
closeAttrs();
return strong_(this, true);
}
@Override
public TD strong(String cdata) {
return strong()._(cdata)._();
}
@Override
public TD strong(String selector, String cdata) {
return setSelector(strong(), selector)._(cdata)._();
}
@Override
public DFN> dfn() {
closeAttrs();
return dfn_(this, true);
}
@Override
public TD dfn(String cdata) {
return dfn()._(cdata)._();
}
@Override
public TD dfn(String selector, String cdata) {
return setSelector(dfn(), selector)._(cdata)._();
}
@Override
public CODE> code() {
closeAttrs();
return code_(this, true);
}
@Override
public TD code(String cdata) {
return code()._(cdata)._();
}
@Override
public TD code(String selector, String cdata) {
return setSelector(code(), selector)._(cdata)._();
}
@Override
public TD samp(String cdata) {
return samp()._(cdata)._();
}
@Override
public SAMP> samp() {
closeAttrs();
return samp_(this, true);
}
@Override
public TD samp(String selector, String cdata) {
return setSelector(samp(), selector)._(cdata)._();
}
@Override
public KBD> kbd() {
closeAttrs();
return kbd_(this, true);
}
@Override
public TD kbd(String cdata) {
return kbd()._(cdata)._();
}
@Override
public TD kbd(String selector, String cdata) {
return setSelector(kbd(), selector)._(cdata)._();
}
@Override
public VAR> var() {
closeAttrs();
return var_(this, true);
}
@Override
public TD var(String cdata) {
return var()._(cdata)._();
}
@Override
public TD var(String selector, String cdata) {
return setSelector(var(), selector)._(cdata)._();
}
@Override
public CITE> cite() {
closeAttrs();
return cite_(this, true);
}
@Override
public TD cite(String cdata) {
return cite()._(cdata)._();
}
@Override
public TD cite(String selector, String cdata) {
return setSelector(cite(), selector)._(cdata)._();
}
@Override
public ABBR> abbr() {
closeAttrs();
return abbr_(this, true);
}
@Override
public TD abbr(String cdata) {
return abbr()._(cdata)._();
}
@Override
public TD abbr(String selector, String cdata) {
return setSelector(abbr(), selector)._(cdata)._();
}
@Override
public A> a() {
closeAttrs();
return a_(this, true);
}
@Override
public A > a(String selector) {
return setSelector(a(), selector);
}
@Override
public TD a(String href, String anchorText) {
return a().$href(href)._(anchorText)._();
}
@Override
public TD a(String selector, String href, String anchorText) {
return setSelector(a(), selector).$href(href)._(anchorText)._();
}
@Override
public IMG> img() {
closeAttrs();
return img_(this, true);
}
@Override
public TD img(String src) {
return img().$src(src)._();
}
@Override
public OBJECT> object() {
closeAttrs();
return object_(this, true);
}
@Override
public OBJECT > object(String selector) {
return setSelector(object(), selector);
}
@Override
public SUB > sub() {
closeAttrs();
return sub_(this, true);
}
@Override
public TD sub(String cdata) {
return sub()._(cdata)._();
}
@Override
public TD sub(String selector, String cdata) {
return setSelector(sub(), selector)._(cdata)._();
}
@Override
public SUP> sup() {
closeAttrs();
return sup_(this, true);
}
@Override
public TD sup(String cdata) {
return sup()._(cdata)._();
}
@Override
public TD sup(String selector, String cdata) {
return setSelector(sup(), selector)._(cdata)._();
}
@Override
public MAP> map() {
closeAttrs();
return map_(this, true);
}
@Override
public MAP > map(String selector) {
return setSelector(map(), selector);
}
@Override
public TD q(String cdata) {
return q()._(cdata)._();
}
@Override
public TD q(String selector, String cdata) {
return setSelector(q(), selector)._(cdata)._();
}
@Override
public Q> q() {
closeAttrs();
return q_(this, true);
}
@Override
public BR > br() {
closeAttrs();
return br_(this, true);
}
@Override
public TD br(String selector) {
return setSelector(br(), selector)._();
}
@Override
public BDO> bdo() {
closeAttrs();
return bdo_(this, true);
}
@Override
public TD bdo(Dir dir, String cdata) {
return bdo().$dir(dir)._(cdata)._();
}
@Override
public SPAN> span() {
closeAttrs();
return span_(this, true);
}
@Override
public TD span(String cdata) {
return span()._(cdata)._();
}
@Override
public TD span(String selector, String cdata) {
return setSelector(span(), selector)._(cdata)._();
}
@Override
public SCRIPT> script() {
closeAttrs();
return script_(this, true);
}
@Override
public TD script(String src) {
return setScriptSrc(script(), src)._();
}
@Override
public INS> ins() {
closeAttrs();
return ins_(this, true);
}
@Override
public TD ins(String cdata) {
return ins()._(cdata)._();
}
@Override
public DEL> del() {
closeAttrs();
return del_(this, true);
}
@Override
public TD del(String cdata) {
return del()._(cdata)._();
}
@Override
public LABEL> label() {
closeAttrs();
return label_(this, true);
}
@Override
public TD label(String forId, String cdata) {
return label().$for(forId)._(cdata)._();
}
@Override
public INPUT> input(String selector) {
return setSelector(input(), selector);
}
@Override
public INPUT > input() {
closeAttrs();
return input_(this, true);
}
@Override
public SELECT > select() {
closeAttrs();
return select_(this, true);
}
@Override
public SELECT > select(String selector) {
return setSelector(select(), selector);
}
@Override
public TEXTAREA > textarea(String selector) {
return setSelector(textarea(), selector);
}
@Override
public TEXTAREA > textarea() {
closeAttrs();
return textarea_(this, true);
}
@Override
public TD textarea(String selector, String cdata) {
return setSelector(textarea(), selector)._(cdata)._();
}
@Override
public BUTTON> button() {
closeAttrs();
return button_(this, true);
}
@Override
public BUTTON > button(String selector) {
return setSelector(button(), selector);
}
@Override
public TD button(String selector, String cdata) {
return setSelector(button(), selector)._(cdata)._();
}
}
public class TH extends EImp implements HamletSpec.TH {
public TH(String name, T parent, EnumSet opts) {
super(name, parent, opts);
}
@Override
public TH $headers(String value) {
addAttr("headers", value);
return this;
}
@Override
public TH $scope(Scope value) {
addAttr("scope", value);
return this;
}
@Override
public TH $rowspan(int value) {
addAttr("rowspan", value);
return this;
}
@Override
public TH $colspan(int value) {
addAttr("colspan", value);
return this;
}
@Override
public TH $id(String value) {
addAttr("id", value);
return this;
}
@Override
public TH $class(String value) {
addAttr("class", value);
return this;
}
@Override
public TH $title(String value) {
addAttr("title", value);
return this;
}
@Override
public TH $style(String value) {
addAttr("style", value);
return this;
}
@Override
public TH $lang(String value) {
addAttr("lang", value);
return this;
}
@Override
public TH $dir(Dir value) {
addAttr("dir", value);
return this;
}
@Override
public TH $onclick(String value) {
addAttr("onclick", value);
return this;
}
@Override
public TH $ondblclick(String value) {
addAttr("ondblclick", value);
return this;
}
@Override
public TH $onmousedown(String value) {
addAttr("onmousedown", value);
return this;
}
@Override
public TH $onmouseup(String value) {
addAttr("onmouseup", value);
return this;
}
@Override
public TH $onmouseover(String value) {
addAttr("onmouseover", value);
return this;
}
@Override
public TH $onmousemove(String value) {
addAttr("onmousemove", value);
return this;
}
@Override
public TH $onmouseout(String value) {
addAttr("onmouseout", value);
return this;
}
@Override
public TH $onkeypress(String value) {
addAttr("onkeypress", value);
return this;
}
@Override
public TH $onkeydown(String value) {
addAttr("onkeydown", value);
return this;
}
@Override
public TH $onkeyup(String value) {
addAttr("onkeyup", value);
return this;
}
@Override
public TABLE> table() {
closeAttrs();
return table_(this, false);
}
@Override
public TABLE > table(String selector) {
return setSelector(table(), selector);
}
@Override
public TH address(String cdata) {
return address()._(cdata)._();
}
@Override
public ADDRESS> address() {
closeAttrs();
return address_(this, false);
}
@Override
public P > p(String selector) {
return setSelector(p(), selector);
}
@Override
public P > p() {
closeAttrs();
return p_(this, false);
}
@Override
public TH _(Class extends SubView> cls) {
_v(cls);
return this;
}
@Override
public HR> hr() {
closeAttrs();
return hr_(this, false);
}
@Override
public TH hr(String selector) {
return setSelector(hr(), selector)._();
}
@Override
public DL> dl(String selector) {
return setSelector(dl(), selector);
}
@Override
public DL > dl() {
closeAttrs();
return dl_(this, false);
}
@Override
public DIV > div(String selector) {
return setSelector(div(), selector);
}
@Override
public DIV > div() {
closeAttrs();
return div_(this, false);
}
@Override
public BLOCKQUOTE > blockquote() {
closeAttrs();
return blockquote_(this, false);
}
@Override
public BLOCKQUOTE > bq() {
closeAttrs();
return blockquote_(this, false);
}
@Override
public TH h1(String cdata) {
return h1()._(cdata)._();
}
@Override
public H1> h1() {
closeAttrs();
return h1_(this, false);
}
@Override
public TH h1(String selector, String cdata) {
return setSelector(h1(), selector)._(cdata)._();
}
@Override
public TH h2(String cdata) {
return h2()._(cdata)._();
}
@Override
public H2> h2() {
closeAttrs();
return h2_(this, false);
}
@Override
public TH h2(String selector, String cdata) {
return setSelector(h2(), selector)._(cdata)._();
}
@Override
public H3> h3() {
closeAttrs();
return h3_(this, false);
}
@Override
public TH h3(String cdata) {
return h3()._(cdata)._();
}
@Override
public TH