| java.lang.Object nextapp.echo2.webcontainer.propertyrender.AlignmentRender
AlignmentRender | public class AlignmentRender (Code) | | Utility class for rendering nextapp.echo2.app.Alignment
properties to CSS.
|
getRenderedHorizontal | public static int getRenderedHorizontal(Alignment alignment, Component component)(Code) | | Returns the horizontal property of an Alignment object,
with Alignment.LEADING and Alignment.TRAILING
automatically translated based on the layout direction of the provided
Component . If the provided component is null, a
left-to-right layout direction will be assumed.
Parameters: alignment - the Alignment to analyze Parameters: component - the Component to analyze the horizontal alignment constant |
renderToElement | public static void renderToElement(Element element, Alignment alignment)(Code) | | Renders an Alignment property to the given element.
The 'align' and 'valign' attributes will be set if they
can be derived from the provided Alignment .
Null property values are ignored.
Parameters: element - the target Element Parameters: alignment - the property value |
renderToElement | public static void renderToElement(Element element, Alignment alignment, Component component)(Code) | | Renders an Alignment property to the given element.
The 'align' and 'valign' attributes will be set if they
can be derived from the provided Alignment .
Null property values are ignored.
Parameters: element - the target Element Parameters: alignment - the property value Parameters: component - The Component for which the style is beingrendered (necessary for property translation of leading/trailingalignment settings). |
renderToStyle | public static void renderToStyle(CssStyle cssStyle, Alignment alignment)(Code) | | Renders an Alignment property to the given CSS style.
The 'text-align' and 'vertical-align' properties will be set if they
can be derived from the provided Alignment .
Null property values are ignored.
Parameters: cssStyle - the target CssStyle Parameters: alignment - the property value |
renderToStyle | public static void renderToStyle(CssStyle cssStyle, Alignment alignment, Component component)(Code) | | Renders an Alignment property to the given CSS style.
The 'text-align' and 'vertical-align' properties will be set if they
can be derived from the provided Alignment .
Null property values are ignored.
Parameters: cssStyle - the target CssStyle Parameters: component - The Component for which the style is beingrendered (necessary for property translation of leading/trailingalignment settings). Parameters: alignment - the property value |
|
|