|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.dom.builder.shared.AbstractElementBuilderBase<R> com.google.gwt.dom.builder.shared.HtmlElementBuilderBase<R>
R
- the builder type returned from build methodspublic class HtmlElementBuilderBase<R extends ElementBuilderBase<?>>
Implementation of 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
.
Constructor Summary | |
---|---|
HtmlElementBuilderBase(HtmlBuilderImpl delegate)
Construct a new HtmlElementBuilderBase . |
|
HtmlElementBuilderBase(HtmlBuilderImpl delegate,
boolean isEndTagForbidden)
Construct a new HtmlElementBuilderBase . |
Method Summary | |
---|---|
SafeHtml |
asSafeHtml()
Return the HTML as a SafeHtml string. |
R |
attribute(java.lang.String name,
int value)
Add an integer attribute to the object. |
R |
attribute(java.lang.String name,
java.lang.String value)
Add a string attribute to the object. |
R |
className(java.lang.String className)
The class attribute of the element. |
R |
dir(java.lang.String dir)
Specifies the base direction of directionally neutral text and the directionality of tables. |
R |
draggable(java.lang.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(java.lang.String id)
Set the id. |
R |
lang(java.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(java.lang.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(java.lang.String title)
The element's advisory title. |
(package private) R |
trustedAttribute(java.lang.String name,
int value)
Add an attribute with a trusted name. |
(package private) R |
trustedAttribute(java.lang.String name,
java.lang.String value)
Add an attribute with a trusted name. |
ElementBuilder |
trustedStart(java.lang.String tagName)
Append a new element with the specified trusted tag name. |
Methods inherited from class com.google.gwt.dom.builder.shared.AbstractElementBuilderBase |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
HtmlElementBuilderBase(HtmlBuilderImpl delegate)
HtmlElementBuilderBase
.
delegate
- the delegate that builds the elementHtmlElementBuilderBase(HtmlBuilderImpl delegate, boolean isEndTagForbidden)
HtmlElementBuilderBase
.
delegate
- the delegate that builds the elementisEndTagForbidden
- true if the end tag is forbidden for this elementMethod Detail |
---|
public SafeHtml asSafeHtml()
SafeHtml
string.
public R attribute(java.lang.String name, int value)
ElementBuilderBase
public R attribute(java.lang.String name, java.lang.String value)
ElementBuilderBase
public R className(java.lang.String className)
ElementBuilderBase
public R dir(java.lang.String dir)
ElementBuilderBase
public R draggable(java.lang.String draggable)
ElementBuilderBase
Element.DRAGGABLE_AUTO
,
Element.DRAGGABLE_FALSE
, or Element.DRAGGABLE_TRUE
.
draggable
- a String constant
public void endTitle()
AbstractElementBuilderBase.end()
public R id(java.lang.String id)
ElementBuilderBase
id
- the id
public R lang(java.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(java.lang.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 index
public R title(java.lang.String title)
ElementBuilderBase
public ElementBuilder trustedStart(java.lang.String tagName)
ElementBuilderBase
tagName
- the tag name
ElementBuilder
for the new elementR trustedAttribute(java.lang.String name, int value)
R trustedAttribute(java.lang.String name, java.lang.String value)
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |