|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.webcontainer.propertyrender.ColorRender
public class ColorRender
Utility class for rendering nextapp.echo2.app.Color
properties to CSS.
| Method Summary | |
|---|---|
static java.lang.String |
renderCssAttributeValue(Color color)
Renders a Color property value to a CSS color attribute
value. |
static void |
renderToStyle(CssStyle cssStyle,
Color foreground,
Color background)
Renders foreground and background Color properties
to the given CSS style. |
static void |
renderToStyle(CssStyle cssStyle,
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 |
|---|
public static void renderToStyle(CssStyle cssStyle,
Color foreground,
Color background)
Color properties
to the given CSS style. Null property values are ignored.
cssStyle - the target CssStyleforeground - the foreground colorbackground - the background color
public static void renderToStyle(CssStyle cssStyle,
Component component)
Color properties
of the provided Component to a CSS style.
cssStyle - the target CssStylecomponent - the componentpublic static final java.lang.String renderCssAttributeValue(Color color)
Color property value to a CSS color attribute
value.
color - the property value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||