| java.lang.Object nextapp.echo2.webcontainer.propertyrender.CellLayoutDataRender
CellLayoutDataRender | public class CellLayoutDataRender (Code) | | Utility class for rendering
nextapp.echo2.app.layout.CellLayoutData
layout data properties to CSS.
|
Method Summary | |
public static ImageReference | getCellLayoutDataBackgroundImage(Component component, String imageId) A delegate method to be invoked by the container Component 's
ComponentSynchronizePeer 's
ImageRenderSupport.getImage() implementation. | public static void | renderBackgroundImageToStyle(CssStyle cssStyle, RenderContext rc, ImageRenderSupport irs, Component parent, Component child) Renders the backgroundImage property of a
CellLayoutDataRender to a CssStyle .
The image will be assigned an identifier by this object
prefaced with the namespace "CellLayoutData".
The ImageRenderSupport.getImage() implementation
may obtain images based on these ids by invoking the
getCellLayoutDataBackgroundImage() method. | public static void | renderToElementAndStyle(Element element, CssStyle cssStyle, Component component, CellLayoutData layoutData, String defaultInsetsAttributeValue) Renders a CellLayoutData property to the given CSS style
and HTML element. | public static void | renderToStyle(CssStyle cssStyle, Component component, CellLayoutData layoutData, String defaultInsetsAttributeValue) Renders a CellLayoutData property to the given CSS style.
Null property values are handled properly (and default insets are still
rendered if provided in such cases).
Parameters: cssStyle - the target CssStyle Parameters: component - the child Component being laid out (used to determine LayoutDirection (LTR/RTL). |
renderBackgroundImageToStyle | public static void renderBackgroundImageToStyle(CssStyle cssStyle, RenderContext rc, ImageRenderSupport irs, Component parent, Component child)(Code) | | Renders the backgroundImage property of a
CellLayoutDataRender to a CssStyle .
The image will be assigned an identifier by this object
prefaced with the namespace "CellLayoutData".
The ImageRenderSupport.getImage() implementation
may obtain images based on these ids by invoking the
getCellLayoutDataBackgroundImage() method. Note
that any image id may be safely passed to
getCellLayoutDataBackgroundImage() as it will return
null if it does not have an image to match the specified id.
Parameters: cssStyle - the target CssStyle Parameters: rc - the relevant RenderContext Parameters: irs - the ImageRenderSupport which will provide identified images Parameters: parent - the parent Component Parameters: child - the child Component See Also: CellLayoutDataRender.getCellLayoutDataBackgroundImage(Component,String) |
renderToElementAndStyle | public static void renderToElementAndStyle(Element element, CssStyle cssStyle, Component component, CellLayoutData layoutData, String defaultInsetsAttributeValue)(Code) | | Renders a CellLayoutData property to the given CSS style
and HTML element. Null property values are handled properly (and default
insets are still rendered if provided in such cases).
Alignment information will be added to the
Element such that block elements contained within it will
be properly aligned. All other properties will be rendered using the
CssSyle . Use of this method requires a "transitional"
DOCTYPE.
Parameters: element - the target Element Parameters: cssStyle - the target CssStyle Parameters: component - the child Component being laid out (used to determine LayoutDirection (LTR/RTL). Parameters: layoutData - the property value Parameters: defaultInsetsAttributeValue - the default insets for the cell(provided as a string in the interest of performance to avoidrepeatedly rendering the same Insets object foreach cell |
renderToStyle | public static void renderToStyle(CssStyle cssStyle, Component component, CellLayoutData layoutData, String defaultInsetsAttributeValue)(Code) | | Renders a CellLayoutData property to the given CSS style.
Null property values are handled properly (and default insets are still
rendered if provided in such cases).
Parameters: cssStyle - the target CssStyle Parameters: component - the child Component being laid out (used to determine LayoutDirection (LTR/RTL). Parameters: layoutData - the property value Parameters: defaultInsetsAttributeValue - the default insets for the cell (provided as a string in the interest of performance to avoidrepeatedly rendering the same Insets object foreach cell |
|
|