/** * Set the border-width css property. */ public static SafeStyles forBorderWidth(double value, Unit unit) { return fromTrustedNameAndValue("border-width", value, unit); }
/** * Set the height css property. */ public static SafeStyles forHeight(double value, Unit unit) { return fromTrustedNameAndValue("height", value, unit); }
/** * Set the padding-left css property. */ public static SafeStyles forPaddingLeft(double value, Unit unit) { return fromTrustedNameAndValue("padding-left", value, unit); }
/** * Set the width css property. */ public static SafeStyles forWidth(double value, Unit unit) { return fromTrustedNameAndValue("width", value, unit); }
/** * Set the font-size css property. */ public static SafeStyles forFontSize(double value, Unit unit) { return fromTrustedNameAndValue("font-size", value, unit); }
/** * Set the line-height css property. */ public static SafeStyles forLineHeight(double value, Unit unit) { return fromTrustedNameAndValue("line-height", value, unit); }
/** * Set the margin-left css property. */ public static SafeStyles forMarginLeft(double value, Unit unit) { return fromTrustedNameAndValue("margin-left", value, unit); }
/** * Set the padding-bottom css property. */ public static SafeStyles forPaddingBottom(double value, Unit unit) { return fromTrustedNameAndValue("padding-bottom", value, unit); }
/** * Set the padding-right css property. */ public static SafeStyles forPaddingRight(double value, Unit unit) { return fromTrustedNameAndValue("padding-right", value, unit); }
/** * Set the margin css property. */ public static SafeStyles forMargin(double value, Unit unit) { return fromTrustedNameAndValue("margin", value, unit); }
/** * Set the table-layout CSS property. */ public static SafeStyles forTableLayout(TableLayout value) { return fromTrustedNameAndValue("table-layout", value.getCssName()); }
/** * Set the 'text-indent' CSS property. */ public static SafeStyles forTextIndent(double value, Unit unit) { return fromTrustedNameAndValue("text-indent", value + unit.getType()); }
/** * Set the 'text-overflow' CSS3 property. */ public static SafeStyles forTextOverflow(TextOverflow value) { return fromTrustedNameAndValue("text-overflow", value.getCssName()); }
/** * Sets the visibility CSS property. */ public static SafeStyles forVisibility(Visibility value) { return fromTrustedNameAndValue("visibility", value.getCssName()); }
/** * Sets the background-image CSS property. * * @param uri the URI of the background image * @return a {@link SafeStyles} instance * @see #forTrustedBackgroundImage(String) */ public static SafeStyles forBackgroundImage(SafeUri uri) { return fromTrustedNameAndValue("background-image", "url(\"" + uri.asString() + "\")"); }
/** * Sets the 'clear' CSS property. */ public static SafeStyles forClear(Clear value) { return fromTrustedNameAndValue("clear", value.getCssName()); }
/** * Set the float css property. */ public static SafeStyles forFloat(Float value) { return fromTrustedNameAndValue("float", value.getCssName()); }
/** * Sets the font-weight CSS property. */ public static SafeStyles forFontWeight(FontWeight value) { return fromTrustedNameAndValue("font-weight", value.getCssName()); }
/** * Sets the overflow-x CSS property. */ public static SafeStyles forOverflowX(Overflow value) { return fromTrustedNameAndValue("overflow-x", value.getCssName()); }
/** * Set the 'text-transform' CSS property. */ public static SafeStyles forTextTransform(TextTransform value) { return fromTrustedNameAndValue("text-transform", value.getCssName()); }