NextApp Echo2
v2.1.1

nextapp.echo2.webcontainer.propertyrender
Class InsetsRender

java.lang.Object
  extended by 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(nextapp.echo2.app.Insets insets)
          Renders a CSS attribute value representation of an Insets.
static void renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle, java.lang.String cssAttribute, nextapp.echo2.app.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(nextapp.echo2.webrender.output.CssStyle cssStyle,
                                 java.lang.String cssAttribute,
                                 nextapp.echo2.app.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(nextapp.echo2.app.Insets insets)
Renders a CSS attribute value representation of an Insets.

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

NextApp Echo2
v2.1.1