Package | Description |
---|---|
com.google.gwt.safecss.shared |
Shared classes for creating safe CSS style content.
|
Modifier and Type | Method and Description |
---|---|
static SafeStyles |
SafeStylesUtils.forBackgroundImage(SafeUri uri)
Sets the background-image CSS property.
|
static SafeStyles |
SafeStylesUtils.forBorderStyle(Style.BorderStyle value)
Sets the border-style CSS property.
|
static SafeStyles |
SafeStylesUtils.forBorderWidth(double value,
Style.Unit unit)
Set the border-width css property.
|
static SafeStyles |
SafeStylesUtils.forBottom(double value,
Style.Unit unit)
Set the bottom css property.
|
static SafeStyles |
SafeStylesUtils.forClear(Style.Clear value)
Sets the 'clear' CSS property.
|
static SafeStyles |
SafeStylesUtils.forCursor(Style.Cursor value)
Sets the cursor CSS property.
|
static SafeStyles |
SafeStylesUtils.forDisplay(Style.Display value)
Sets the display CSS property.
|
static SafeStyles |
SafeStylesUtils.forFloat(Style.Float value)
Set the float css property.
|
static SafeStyles |
SafeStylesUtils.forFontSize(double value,
Style.Unit unit)
Set the font-size css property.
|
static SafeStyles |
SafeStylesUtils.forFontStyle(Style.FontStyle value)
Sets the font-style CSS property.
|
static SafeStyles |
SafeStylesUtils.forFontWeight(Style.FontWeight value)
Sets the font-weight CSS property.
|
static SafeStyles |
SafeStylesUtils.forHeight(double value,
Style.Unit unit)
Set the height css property.
|
static SafeStyles |
SafeStylesUtils.forLeft(double value,
Style.Unit unit)
Set the left css property.
|
static SafeStyles |
SafeStylesUtils.forLineHeight(double value,
Style.Unit unit)
Set the line-height css property.
|
static SafeStyles |
SafeStylesUtils.forListStyleType(Style.ListStyleType value)
Sets the list-style-type CSS property.
|
static SafeStyles |
SafeStylesUtils.forMargin(double value,
Style.Unit unit)
Set the margin css property.
|
static SafeStyles |
SafeStylesUtils.forMarginBottom(double value,
Style.Unit unit)
Set the margin-bottom css property.
|
static SafeStyles |
SafeStylesUtils.forMarginLeft(double value,
Style.Unit unit)
Set the margin-left css property.
|
static SafeStyles |
SafeStylesUtils.forMarginRight(double value,
Style.Unit unit)
Set the margin-right css property.
|
static SafeStyles |
SafeStylesUtils.forMarginTop(double value,
Style.Unit unit)
Set the margin-top css property.
|
static SafeStyles |
SafeStylesUtils.forOpacity(double value)
Set the opacity css property.
|
static SafeStyles |
SafeStylesUtils.forOutlineStyle(Style.OutlineStyle value)
Sets the outline-style CSS property.
|
static SafeStyles |
SafeStylesUtils.forOutlineWidth(double value,
Style.Unit unit)
Set the outline-width css property.
|
static SafeStyles |
SafeStylesUtils.forOverflow(Style.Overflow value)
Sets the overflow CSS property.
|
static SafeStyles |
SafeStylesUtils.forOverflowX(Style.Overflow value)
Sets the overflow-x CSS property.
|
static SafeStyles |
SafeStylesUtils.forOverflowY(Style.Overflow value)
Sets the overflow-y CSS property.
|
static SafeStyles |
SafeStylesUtils.forPadding(double value,
Style.Unit unit)
Set the padding css property.
|
static SafeStyles |
SafeStylesUtils.forPaddingBottom(double value,
Style.Unit unit)
Set the padding-bottom css property.
|
static SafeStyles |
SafeStylesUtils.forPaddingLeft(double value,
Style.Unit unit)
Set the padding-left css property.
|
static SafeStyles |
SafeStylesUtils.forPaddingRight(double value,
Style.Unit unit)
Set the padding-right css property.
|
static SafeStyles |
SafeStylesUtils.forPaddingTop(double value,
Style.Unit unit)
Set the padding-top css property.
|
static SafeStyles |
SafeStylesUtils.forPosition(Style.Position value)
Sets the position CSS property.
|
static SafeStyles |
SafeStylesUtils.forRight(double value,
Style.Unit unit)
Set the right css property.
|
static SafeStyles |
SafeStylesUtils.forTableLayout(Style.TableLayout value)
Set the table-layout CSS property.
|
static SafeStyles |
SafeStylesUtils.forTextAlign(Style.TextAlign value)
Sets the 'text-align' CSS property.
|
static SafeStyles |
SafeStylesUtils.forTextDecoration(Style.TextDecoration value)
Sets the 'text-decoration' CSS property.
|
static SafeStyles |
SafeStylesUtils.forTextIndent(double value,
Style.Unit unit)
Set the 'text-indent' CSS property.
|
static SafeStyles |
SafeStylesUtils.forTextJustify(Style.TextJustify value)
Set the 'text-justify' CSS3 property.
|
static SafeStyles |
SafeStylesUtils.forTextOverflow(Style.TextOverflow value)
Set the 'text-overflow' CSS3 property.
|
static SafeStyles |
SafeStylesUtils.forTextTransform(Style.TextTransform value)
Set the 'text-transform' CSS property.
|
static SafeStyles |
SafeStylesUtils.forTop(double value,
Style.Unit unit)
Set the top css property.
|
static SafeStyles |
SafeStylesUtils.forTrustedBackgroundColor(String value)
Returns a
SafeStyles constructed from a trusted background color,
i.e., without escaping the value. |
static SafeStyles |
SafeStylesUtils.forTrustedBackgroundImage(String value)
Returns a
SafeStyles constructed from a trusted background image,
i.e., without escaping the value. |
static SafeStyles |
SafeStylesUtils.forTrustedBorderColor(String value)
Returns a
SafeStyles constructed from a trusted border color, i.e.,
without escaping the value. |
static SafeStyles |
SafeStylesUtils.forTrustedColor(String value)
Returns a
SafeStyles constructed from a trusted font color, i.e.,
without escaping the value. |
static SafeStyles |
SafeStylesUtils.forTrustedOutlineColor(String value)
Returns a
SafeStyles constructed from a trusted outline color,
i.e., without escaping the value. |
static SafeStyles |
SafeStylesUtils.forVerticalAlign(double value,
Style.Unit unit)
Sets the vertical-align CSS property.
|
static SafeStyles |
SafeStylesUtils.forVerticalAlign(Style.VerticalAlign value)
Sets the vertical-align CSS property.
|
static SafeStyles |
SafeStylesUtils.forVisibility(Style.Visibility value)
Sets the visibility CSS property.
|
static SafeStyles |
SafeStylesUtils.forWhiteSpace(Style.WhiteSpace value)
Set the 'white-space' CSS property.
|
static SafeStyles |
SafeStylesUtils.forWidth(double value,
Style.Unit unit)
Set the width css property.
|
static SafeStyles |
SafeStylesUtils.forZIndex(int value)
Set the z-index css property.
|
static SafeStyles |
SafeStylesUtils.fromTrustedNameAndValue(String name,
double value,
Style.Unit unit)
Returns a
SafeStyles constructed from a trusted name and a trusted
value, i.e., without escaping the name and value. |
static SafeStyles |
SafeStylesUtils.fromTrustedNameAndValue(String name,
String value)
Returns a
SafeStyles constructed from a trusted name and a trusted
value, i.e., without escaping the name and value. |
static SafeStyles |
SafeStylesUtils.fromTrustedString(String s)
Returns a
SafeStyles constructed from a trusted string, i.e.,
without escaping the string. |
SafeStyles |
SafeStylesBuilder.toSafeStyles()
Returns the safe CSS properties accumulated in the builder as a
SafeStyles . |
Modifier and Type | Method and Description |
---|---|
SafeStylesBuilder |
SafeStylesBuilder.append(SafeStyles styles)
Appends the contents of another
SafeStyles object, without applying
any escaping or sanitization to it. |
Copyright © 2018. All rights reserved.