|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.webcontainer.propertyrender.FontRender
public class FontRender
Utility class for rendering nextapp.echo2.app.Font
properties to CSS.
| Method Summary | |
|---|---|
static java.lang.String |
renderFontFamilyCssAttributeValue(Font.Typeface typeface)
Renders a 'font-family' CSS attribute value based on the specified Font.Typeface. |
static java.lang.String |
renderFontStyleCssAttributeValue(Font font)
Renders a 'font-style' CSS attribute value for the specified Font. |
static java.lang.String |
renderFontWeightCssAttributeValue(Font font)
Renders a 'font-weight' CSS attribute value for the specified Font. |
static java.lang.String |
renderTextDecorationCssAttributeValue(Font font)
Renders a 'text-decoration' CSS attribute value based on the specified Font |
static void |
renderToStyle(CssStyle cssStyle,
Component component)
Renders the Font properties of the provided
Component to a CSS style. |
static void |
renderToStyle(CssStyle cssStyle,
Font font)
Renders a Font 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 |
|---|
public static java.lang.String renderFontFamilyCssAttributeValue(Font.Typeface typeface)
Font.Typeface.
typeface - the typeface
public static java.lang.String renderFontStyleCssAttributeValue(Font font)
Font.
font - the font
public static java.lang.String renderFontWeightCssAttributeValue(Font font)
Font.
font - the font
public static java.lang.String renderTextDecorationCssAttributeValue(Font font)
Font
font - the font
public static void renderToStyle(CssStyle cssStyle,
Component component)
Font properties of the provided
Component to a CSS style.
cssStyle - the target CssStylecomponent - the component
public static void renderToStyle(CssStyle cssStyle,
Font font)
Font property to the given CSS style.
Null property values are ignored.
cssStyle - the target CssStylefont - the property value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||