|
NextApp Echo2 v2.1.1 |
||||||||
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(nextapp.echo2.app.Font.Typeface typeface)
Renders a 'font-family' CSS attribute value based on the specified Font.Typeface . |
static java.lang.String |
renderFontStyleCssAttributeValue(nextapp.echo2.app.Font font)
Renders a 'font-style' CSS attribute value for the specified Font . |
static java.lang.String |
renderFontWeightCssAttributeValue(nextapp.echo2.app.Font font)
Renders a 'font-weight' CSS attribute value for the specified Font . |
static java.lang.String |
renderTextDecorationCssAttributeValue(nextapp.echo2.app.Font font)
Renders a 'text-decoration' CSS attribute value based on the specified Font |
static void |
renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle,
nextapp.echo2.app.Component component)
Renders the Font properties of the provided
Component to a CSS style. |
static void |
renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle,
nextapp.echo2.app.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(nextapp.echo2.app.Font.Typeface typeface)
Font.Typeface
.
typeface
- the typeface
public static java.lang.String renderFontStyleCssAttributeValue(nextapp.echo2.app.Font font)
Font
.
font
- the font
public static java.lang.String renderFontWeightCssAttributeValue(nextapp.echo2.app.Font font)
Font
.
font
- the font
public static java.lang.String renderTextDecorationCssAttributeValue(nextapp.echo2.app.Font font)
Font
font
- the font
public static void renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle, nextapp.echo2.app.Component component)
Font
properties of the provided
Component
to a CSS style.
cssStyle
- the target CssStyle
component
- the componentpublic static void renderToStyle(nextapp.echo2.webrender.output.CssStyle cssStyle, nextapp.echo2.app.Font font)
Font
property to the given CSS style.
Null property values are ignored.
cssStyle
- the target CssStyle
font
- the property value
|
NextApp Echo2 v2.1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |