Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## nextapp.echo2.webcontainer.propertyrender
Class InsetsRender

    java.lang.Object
      nextapp.echo2.webcontainer.propertyrender.InsetsRender

    public class InsetsRender

extends java.lang.Object

Utility class for rendering `nextapp.echo2.app.Insets` properties to CSS.

Method Summary
`static java.lang.String` | `renderCssAttributeValue(Insets insets)` Renders a CSS attribute value representation of an `Insets`.
`static void` | `renderToStyle(CssStyle cssStyle, java.lang.String cssAttribute, Insets insets)` Renders an `Insets` property to the given CSS style.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### renderToStyle

    public static void renderToStyle(CssStyle cssStyle,
                                     java.lang.String cssAttribute,
                                     Insets insets)

  Renders an `Insets` property to the given CSS style. Null property values are ignored.

  Parameters:
    `cssStyle` - the target `CssStyle`
    `cssAttribute` - the CSS attribute name, e.g., "margin" or "padding".
    `insets` - the property value

### renderCssAttributeValue

    public static java.lang.String renderCssAttributeValue(Insets insets)

  Renders a CSS attribute value representation of an `Insets`.

  Parameters:
    `insets` - the `Insets` to render
  Returns:
    a CSS attribute value representation

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD