NextApp Echo2
v2.1.1

nextapp.echo2.webcontainer.propertyrender
Class ColorRender

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

public class ColorRender
extends java.lang.Object

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


Method Summary
static java.lang.String renderCssAttributeValue(nextapp.echo2.app.Color color)
          Renders a Color property value to a CSS color attribute value.
static void renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle, nextapp.echo2.app.Color foreground, nextapp.echo2.app.Color background)
          Renders foreground and background Color properties to the given CSS style.
static void renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle, nextapp.echo2.app.Component component)
          Renders the foreground and background Color properties of the provided Component to a 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,
                                 nextapp.echo2.app.Color foreground,
                                 nextapp.echo2.app.Color background)
Renders foreground and background Color properties to the given CSS style. Null property values are ignored.

Parameters:
cssStyle - the target CssStyle
foreground - the foreground color
background - the background color

renderToStyle

public static void renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle,
                                 nextapp.echo2.app.Component component)
Renders the foreground and background Color properties of the provided Component to a CSS style.

Parameters:
cssStyle - the target CssStyle
component - the component

renderCssAttributeValue

public static final java.lang.String renderCssAttributeValue(nextapp.echo2.app.Color color)
Renders a Color property value to a CSS color attribute value.

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

NextApp Echo2
v2.1.1