NextApp Echo2
v2.1.1

nextapp.echo2.webcontainer.propertyrender
Class BorderRender

java.lang.Object
  extended by nextapp.echo2.webcontainer.propertyrender.BorderRender

public class BorderRender
extends java.lang.Object

Utility class for rendering nextapp.echo2.app.Border properties to CSS.


Method Summary
static java.lang.String getStyleValue(int style)
          Returns the CSS border style value for a given Border.STYLE_XXX constant.
static java.lang.String renderCssAttributeValue(nextapp.echo2.app.Border border)
          Renders a Border property value to a CSS border attribute value.
static void renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle, nextapp.echo2.app.Border border)
          Renders a Border 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

getStyleValue

public static final java.lang.String getStyleValue(int style)
Returns the CSS border style value for a given Border.STYLE_XXX constant.

Parameters:
style - the style constant
Returns:
the CSS style value

renderCssAttributeValue

public static java.lang.String renderCssAttributeValue(nextapp.echo2.app.Border border)
Renders a Border property value to a CSS border attribute value.

Parameters:
border - the property value
Returns:
the CSS attribute value

renderToStyle

public static void renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle,
                                 nextapp.echo2.app.Border border)
Renders a Border property to the given CSS style. Null property values are ignored.

Parameters:
cssStyle - the target CssStyle
border - the property value

NextApp Echo2
v2.1.1