Interface HamletSpec._Block
- All Superinterfaces:
HamletSpec.Heading,HamletSpec.Listing,HamletSpec.Preformatted
- All Known Subinterfaces:
HamletSpec._Body,HamletSpec._Cell,HamletSpec._Html,HamletSpec.Block,HamletSpec.BLOCKQUOTE,HamletSpec.BODY,HamletSpec.BUTTON,HamletSpec.DD,HamletSpec.DEL,HamletSpec.DIV,HamletSpec.FIELDSET,HamletSpec.Flow,HamletSpec.FORM,HamletSpec.HTML,HamletSpec.INS,HamletSpec.LI,HamletSpec.MAP,HamletSpec.OBJECT,HamletSpec.TD,HamletSpec.TH
- All Known Implementing Classes:
Hamlet,Hamlet.BLOCKQUOTE,Hamlet.BODY,Hamlet.BUTTON,Hamlet.DD,Hamlet.DEL,Hamlet.DIV,Hamlet.FIELDSET,Hamlet.FORM,Hamlet.HTML,Hamlet.INS,Hamlet.LI,Hamlet.MAP,Hamlet.OBJECT,Hamlet.TD,Hamlet.TH,HtmlBlock.Block,HtmlPage.Page
- Enclosing class:
- HamletSpec
public static interface HamletSpec._Block
extends HamletSpec.Heading, HamletSpec.Listing, HamletSpec.Preformatted
%block -(FORM|FIELDSET)
-
Method Summary
Modifier and TypeMethodDescriptionEmbed a sub-view.address()Add a ADDRESS element.Add a complete ADDRESS element.Add a BLOCKQUOTE element.bq()Alias of blockquotediv()Add a DIV element.Add a DIV element.dl()Add a DL (description list) element.Add a DL element.hr()Add a HR (horizontal rule) element.Add a HR element.p()Add a P (paragraph) element.Add a P (paragraph) element.table()Add a TABLE element.Add a TABLE element.Methods inherited from interface org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec.Heading
h1, h1, h1, h2, h2, h2, h3, h3, h3, h4, h4, h4, h5, h5, h5, h6, h6, h6Methods inherited from interface org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec.Listing
ol, ol, ul, ulMethods inherited from interface org.apache.hadoop.yarn.webapp.hamlet2.HamletSpec.Preformatted
pre, pre
-
Method Details
-
p
HamletSpec.P p()Add a P (paragraph) element.- Returns:
- a new P element builder
-
p
Add a P (paragraph) element.- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new P element builder
-
dl
HamletSpec.DL dl()Add a DL (description list) element.- Returns:
- a new DL element builder
-
dl
Add a DL element.- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new DL element builder
-
div
HamletSpec.DIV div()Add a DIV element.- Returns:
- a new DIV element builder
-
div
Add a DIV element.- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new DIV element builder
-
blockquote
HamletSpec.BLOCKQUOTE blockquote()Add a BLOCKQUOTE element.- Returns:
- a new BLOCKQUOTE element builder
-
bq
Alias of blockquote- Returns:
- a new BLOCKQUOTE element builder
-
hr
HamletSpec.HR hr()Add a HR (horizontal rule) element.- Returns:
- a new HR element builder
-
hr
Add a HR element.- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new HR element builder
-
table
HamletSpec.TABLE table()Add a TABLE element.- Returns:
- a new TABLE element builder
-
table
Add a TABLE element.- Parameters:
selector- the css selector in the form of (#id)*(.class)*- Returns:
- a new TABLE element builder
-
address
HamletSpec.ADDRESS address()Add a ADDRESS element.- Returns:
- a new ADDRESS element builder
-
address
Add a complete ADDRESS element.- Parameters:
cdata- the content- Returns:
- the current element builder
-
__
Embed a sub-view.- Parameters:
cls- the sub-view class- Returns:
- the current element builder
-