public class HtmlStyleBuilder extends HtmlElementBuilderBase<StyleBuilder> implements StyleBuilder
StyleBuilder
.UNSUPPORTED_HTML
Modifier and Type | Method and Description |
---|---|
StyleBuilder |
cssText(String cssText)
Sets the CSS text.
|
StyleBuilder |
disabled()
Disable the style sheet.
|
StyleBuilder |
html(SafeHtml html)
Append html within the node.
|
boolean |
isChildElementSupported()
Check if child elements are supported.
|
StyleBuilder |
media(String media)
Designed for use with one or more target media.
|
StyleBuilder |
text(String text)
Append text within the node.
|
StyleBuilder |
type(String type)
The content type of the style sheet language.
|
asSafeHtml, attribute, attribute, className, dir, draggable, endTitle, id, lang, startAnchor, startArea, startAudio, startBase, startBlockQuote, startBody, startBR, startButtonInput, startCanvas, startCheckboxInput, startCol, startColGroup, startDiv, startDList, startFieldSet, startFileInput, startForm, startFrame, startFrameSet, startH1, startH2, startH3, startH4, startH5, startH6, startHead, startHiddenInput, startHR, startIFrame, startImage, startImageInput, startLabel, startLegend, startLI, startLink, startMap, startMeta, startOList, startOptGroup, startOption, startParagraph, startParam, startPasswordInput, startPre, startPushButton, startQuote, startRadioInput, startResetButton, startResetInput, startScript, startSelect, startSource, startSpan, startStyle, startSubmitButton, startSubmitInput, startTable, startTableCaption, startTBody, startTD, startTextArea, startTextInput, startTFoot, startTH, startTHead, startTitle, startTR, startUList, startVideo, tabIndex, title, trustedStart
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, isEndTagForbidden, style
attribute, attribute, className, dir, draggable, 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, id, isEndTagForbidden, lang, startAnchor, startArea, startAudio, startBase, startBlockQuote, startBody, startBR, startButtonInput, startCanvas, startCheckboxInput, startCol, startColGroup, startDiv, startDList, startFieldSet, startFileInput, startForm, startFrame, startFrameSet, startH1, startH2, startH3, startH4, startH5, startH6, startHead, startHiddenInput, startHR, startIFrame, startImage, startImageInput, startLabel, startLegend, startLI, startLink, startMap, startMeta, startOList, startOptGroup, startOption, startParagraph, startParam, startPasswordInput, startPre, startPushButton, startQuote, startRadioInput, startResetButton, startResetInput, startScript, startSelect, startSource, startSpan, startStyle, startSubmitButton, startSubmitInput, startTable, startTableCaption, startTBody, startTD, startTextArea, startTextInput, startTFoot, startTH, startTHead, startTR, startUList, startVideo, style, tabIndex, title, trustedStart
public StyleBuilder cssText(String cssText)
StyleBuilder
cssText
in interface StyleBuilder
public StyleBuilder disabled()
StyleBuilder
disabled
in interface StyleBuilder
public StyleBuilder html(SafeHtml html)
ElementBuilderBase
Once you append HTML to the element, you can no longer set attributes.
html
in interface ElementBuilderBase<StyleBuilder>
html
in interface StyleBuilder
html
in class AbstractElementBuilderBase<StyleBuilder>
html
- the HTML to appendpublic boolean isChildElementSupported()
ElementBuilderBase
isChildElementSupported
in interface ElementBuilderBase<StyleBuilder>
isChildElementSupported
in class AbstractElementBuilderBase<StyleBuilder>
public StyleBuilder media(String media)
StyleBuilder
media
in interface StyleBuilder
public StyleBuilder text(String text)
ElementBuilderBase
Once you append text to the element, you can no longer set attributes.
A string-based implementation will escape the text to prevent HTML/javascript code from executing. DOM based implementations are not required to escape the text if they directly set the innerText of an element.
text
in interface ElementBuilderBase<StyleBuilder>
text
in interface StyleBuilder
text
in class AbstractElementBuilderBase<StyleBuilder>
text
- the text to appendpublic StyleBuilder type(String type)
StyleBuilder
type
in interface StyleBuilder
Copyright © 2018. All rights reserved.