R
- the builder type returned from build methodspublic class HtmlElementBuilderBase<R extends ElementBuilderBase<?>> extends AbstractElementBuilderBase<R>
ElementBuilderBase
that delegates to an
HtmlBuilderImpl
.
Subclasses of HtmlElementBuilderBase
act as typed wrappers around a
shared ElementBuilderBase
implementation that handles the actual
building. The wrappers merely delegate to the shared implementation, so
wrapper instances can be reused, avoiding object creation. This approach is
necessary so that the return value of common methods, such as
id(String)
, return a typed builder instead of the generic
ElementBuilderBase
.
Modifier and Type | Method and Description |
---|---|
SafeHtml |
asSafeHtml()
Return the HTML as a
SafeHtml string. |
R |
attribute(String name,
int value)
Add an integer attribute to the object.
|
R |
attribute(String name,
String value)
Add a string attribute to the object.
|
R |
className(String className)
The class attribute of the element.
|
R |
dir(String dir)
Specifies the base direction of directionally neutral text and the
directionality of tables.
|
R |
draggable(String draggable)
Changes the draggable attribute to one of
Element.DRAGGABLE_AUTO ,
Element.DRAGGABLE_FALSE , or Element.DRAGGABLE_TRUE . |
void |
endTitle()
End the current element.
|
R |
id(String id)
Set the id.
|
R |
lang(String lang)
Language code defined in RFC 1766.
|
AnchorBuilder |
startAnchor()
Append a anchor element.
|
AreaBuilder |
startArea()
Append a area element.
|
AudioBuilder |
startAudio()
Append a audio element.
|
BaseBuilder |
startBase()
Append a base element.
|
QuoteBuilder |
startBlockQuote()
Append a block quote element.
|
BodyBuilder |
startBody()
Append a body element.
|
BRBuilder |
startBR()
Append a br element.
|
InputBuilder |
startButtonInput()
Append an <input type='button'> element.
|
CanvasBuilder |
startCanvas()
Append a canvas element.
|
InputBuilder |
startCheckboxInput()
Append an <input type='check'> element.
|
TableColBuilder |
startCol()
Append a tablecol element.
|
TableColBuilder |
startColGroup()
Append a tablecol element.
|
DivBuilder |
startDiv()
Append a div element.
|
DListBuilder |
startDList()
Append a dlist element.
|
FieldSetBuilder |
startFieldSet()
Append a fieldset element.
|
InputBuilder |
startFileInput()
Append an <input type='file'> element.
|
FormBuilder |
startForm()
Append a form element.
|
FrameBuilder |
startFrame()
Append a frame element.
|
FrameSetBuilder |
startFrameSet()
Append a frameset element.
|
HeadingBuilder |
startH1()
Append a heading element.
|
HeadingBuilder |
startH2()
Append a heading element.
|
HeadingBuilder |
startH3()
Append a heading element.
|
HeadingBuilder |
startH4()
Append a heading element.
|
HeadingBuilder |
startH5()
Append a heading element.
|
HeadingBuilder |
startH6()
Append a heading element.
|
HeadBuilder |
startHead()
Append a head element.
|
InputBuilder |
startHiddenInput()
Append an <input type='hidden'> element.
|
HRBuilder |
startHR()
Append a hr element.
|
IFrameBuilder |
startIFrame()
Append a iframe element.
|
ImageBuilder |
startImage()
Append a image element.
|
InputBuilder |
startImageInput()
Append an <input type='image'> element.
|
LabelBuilder |
startLabel()
Append a label element.
|
LegendBuilder |
startLegend()
Append a legend element.
|
LIBuilder |
startLI()
Append a li element.
|
LinkBuilder |
startLink()
Append a link element.
|
MapBuilder |
startMap()
Append a map element.
|
MetaBuilder |
startMeta()
Append a meta element.
|
OListBuilder |
startOList()
Append a olist element.
|
OptGroupBuilder |
startOptGroup()
Append a optgroup element.
|
OptionBuilder |
startOption()
Append an option element.
|
ParagraphBuilder |
startParagraph()
Append a paragraph element.
|
ParamBuilder |
startParam()
Append a param element.
|
InputBuilder |
startPasswordInput()
Append an <input type='password'> element.
|
PreBuilder |
startPre()
Append a pre element.
|
ButtonBuilder |
startPushButton()
Append a button element with type "button".
|
QuoteBuilder |
startQuote()
Append a quote element.
|
InputBuilder |
startRadioInput(String name)
Append an <input type='radio'> element.
|
ButtonBuilder |
startResetButton()
Append a button element with type "reset".
|
InputBuilder |
startResetInput()
Append an <input type='reset'> element.
|
ScriptBuilder |
startScript()
Append a script element.
|
SelectBuilder |
startSelect()
Append a select element.
|
SourceBuilder |
startSource()
Append a source element.
|
SpanBuilder |
startSpan()
Append a span element.
|
StyleBuilder |
startStyle()
Append a style element.
|
ButtonBuilder |
startSubmitButton()
Append a button element with type "submit".
|
InputBuilder |
startSubmitInput()
Append an <input type='submit'> element.
|
TableBuilder |
startTable()
Append a table element.
|
TableCaptionBuilder |
startTableCaption()
Append a table caption element.
|
TableSectionBuilder |
startTBody()
Append a tbody element.
|
TableCellBuilder |
startTD()
Append a td element.
|
TextAreaBuilder |
startTextArea()
Append a textarea element.
|
InputBuilder |
startTextInput()
Append an <input type='text'> element.
|
TableSectionBuilder |
startTFoot()
Append a tfoot element.
|
TableCellBuilder |
startTH()
Append a th element.
|
TableSectionBuilder |
startTHead()
Append a thead element.
|
TitleBuilder |
startTitle()
Append a title element.
|
TableRowBuilder |
startTR()
Append a tablerow element.
|
UListBuilder |
startUList()
Append a ulist element.
|
VideoBuilder |
startVideo()
Append a video element.
|
R |
tabIndex(int tabIndex)
Set the tab index.
|
R |
title(String title)
The element's advisory title.
|
ElementBuilder |
trustedStart(String tagName)
Append a new element with the specified trusted tag name.
|
end, end, endAnchor, endArea, endAudio, endBase, endBlockQuote, endBody, endBR, endButton, endCanvas, endCol, endColGroup, endDiv, endDList, endFieldSet, endForm, endFrame, endFrameSet, endH1, endH2, endH3, endH4, endH5, endH6, endHead, endHR, endIFrame, endImage, endInput, endLabel, endLegend, endLI, endLink, endMap, endMeta, endOList, endOptGroup, endOption, endParagraph, endParam, endPre, endQuote, endScript, endSelect, endSource, endSpan, endStyle, endTable, endTableCaption, endTBody, endTD, endTextArea, endTFoot, endTH, endTHead, endTR, endUList, endVideo, finish, getDepth, getReturnBuilder, html, isChildElementSupported, isEndTagForbidden, style, text
public R attribute(String name, int value)
ElementBuilderBase
public R attribute(String name, String value)
ElementBuilderBase
public R className(String className)
ElementBuilderBase
public R dir(String dir)
ElementBuilderBase
public R draggable(String draggable)
ElementBuilderBase
Element.DRAGGABLE_AUTO
,
Element.DRAGGABLE_FALSE
, or Element.DRAGGABLE_TRUE
.draggable
- a String constantpublic void endTitle()
AbstractElementBuilderBase.end()
public R id(String id)
ElementBuilderBase
id
- the idpublic R lang(String lang)
ElementBuilderBase
public AnchorBuilder startAnchor()
ElementBuilderBase
public AreaBuilder startArea()
ElementBuilderBase
public AudioBuilder startAudio()
ElementBuilderBase
public BaseBuilder startBase()
ElementBuilderBase
public QuoteBuilder startBlockQuote()
ElementBuilderBase
public BodyBuilder startBody()
ElementBuilderBase
public BRBuilder startBR()
ElementBuilderBase
public InputBuilder startButtonInput()
ElementBuilderBase
public CanvasBuilder startCanvas()
ElementBuilderBase
public InputBuilder startCheckboxInput()
ElementBuilderBase
public TableColBuilder startCol()
ElementBuilderBase
public TableColBuilder startColGroup()
ElementBuilderBase
public DivBuilder startDiv()
ElementBuilderBase
public DListBuilder startDList()
ElementBuilderBase
public FieldSetBuilder startFieldSet()
ElementBuilderBase
public InputBuilder startFileInput()
ElementBuilderBase
public FormBuilder startForm()
ElementBuilderBase
public FrameBuilder startFrame()
ElementBuilderBase
public FrameSetBuilder startFrameSet()
ElementBuilderBase
public HeadingBuilder startH1()
ElementBuilderBase
public HeadingBuilder startH2()
ElementBuilderBase
public HeadingBuilder startH3()
ElementBuilderBase
public HeadingBuilder startH4()
ElementBuilderBase
public HeadingBuilder startH5()
ElementBuilderBase
public HeadingBuilder startH6()
ElementBuilderBase
public HeadBuilder startHead()
ElementBuilderBase
public InputBuilder startHiddenInput()
ElementBuilderBase
public HRBuilder startHR()
ElementBuilderBase
public IFrameBuilder startIFrame()
ElementBuilderBase
public ImageBuilder startImage()
ElementBuilderBase
public InputBuilder startImageInput()
ElementBuilderBase
public LabelBuilder startLabel()
ElementBuilderBase
public LegendBuilder startLegend()
ElementBuilderBase
public LIBuilder startLI()
ElementBuilderBase
public LinkBuilder startLink()
ElementBuilderBase
public MapBuilder startMap()
ElementBuilderBase
public MetaBuilder startMeta()
ElementBuilderBase
public OListBuilder startOList()
ElementBuilderBase
public OptGroupBuilder startOptGroup()
ElementBuilderBase
public OptionBuilder startOption()
ElementBuilderBase
public ParagraphBuilder startParagraph()
ElementBuilderBase
public ParamBuilder startParam()
ElementBuilderBase
public InputBuilder startPasswordInput()
ElementBuilderBase
public PreBuilder startPre()
ElementBuilderBase
public ButtonBuilder startPushButton()
ElementBuilderBase
public QuoteBuilder startQuote()
ElementBuilderBase
public InputBuilder startRadioInput(String name)
ElementBuilderBase
name
- name the name of the radio input (used for grouping)public ButtonBuilder startResetButton()
ElementBuilderBase
public InputBuilder startResetInput()
ElementBuilderBase
public ScriptBuilder startScript()
ElementBuilderBase
public SelectBuilder startSelect()
ElementBuilderBase
public SourceBuilder startSource()
ElementBuilderBase
public SpanBuilder startSpan()
ElementBuilderBase
public StyleBuilder startStyle()
ElementBuilderBase
public ButtonBuilder startSubmitButton()
ElementBuilderBase
public InputBuilder startSubmitInput()
ElementBuilderBase
public TableBuilder startTable()
ElementBuilderBase
public TableCaptionBuilder startTableCaption()
ElementBuilderBase
public TableSectionBuilder startTBody()
ElementBuilderBase
public TableCellBuilder startTD()
ElementBuilderBase
public TextAreaBuilder startTextArea()
ElementBuilderBase
public InputBuilder startTextInput()
ElementBuilderBase
public TableSectionBuilder startTFoot()
ElementBuilderBase
public TableCellBuilder startTH()
ElementBuilderBase
public TableSectionBuilder startTHead()
ElementBuilderBase
public TitleBuilder startTitle()
public TableRowBuilder startTR()
ElementBuilderBase
public UListBuilder startUList()
ElementBuilderBase
public VideoBuilder startVideo()
ElementBuilderBase
public R tabIndex(int tabIndex)
ElementBuilderBase
tabIndex
- the tab indexpublic R title(String title)
ElementBuilderBase
public ElementBuilder trustedStart(String tagName)
ElementBuilderBase
tagName
- the tag nameElementBuilder
for the new elementCopyright © 2018. All rights reserved.