| com.sun.rave.designtime.markup.MarkupDesignContext
MarkupDesignContext | public interface MarkupDesignContext extends DesignContext(Code) | | The MarkupDesignContext is an extension to the DesignContext interface that adds markup-specific
functionality. This adds methods for previewing CSS style changes at design-time. A
MarkupDesignContext can be accessed by calling the DesignBean.getDesignContext() method and
testing the returned DesignContext for 'instanceof' MarkupDesignContext. If the file being
designed is a markup backing file (eg: *.jsp), the DesignContext will be an instanceof
MarkupDesignContext.
IMPLEMENTED BY CREATOR - This interface is implemented by Creator for use by the
component (bean) author.
author: Joe Nuxoll version: 1.0 See Also: DesignContext See Also: com.sun.rave.designtime.DesignBean.getDesignContext |
convertCssStyleToMap | public Map convertCssStyleToMap(String cssStyle)(Code) | | Converts a CSS inline style string into a Map of style elements
Parameters: cssStyle - The CSS inline style string to convert A Map containing the parsed CSS styles |
convertMapToCssStyle | public String convertMapToCssStyle(Map cssStyleMap)(Code) | | Converts a Map of CSS styles into an inline CSS style string
Parameters: cssStyleMap - The Map of CSS styles to convert An inline CSS style string |
getCssPreviewImage | public Image getCssPreviewImage(String cssStyle, String[] cssStyleClasses, MarkupDesignBean designBean, int width, int height)(Code) | | Generates and returns a preview image (sized width x height) of the specified MarkupDesignBean
after applying the specified CSS styles and style classes to the rendered markup.
Parameters: cssStyle - The CSS style string to apply to the rendered markup from theMarkupDesignBean Parameters: cssStyleClasses - The CSS style classes to apply to the rendered markup from theMarkupDesignBean Parameters: designBean - The MarkupDesignBean to render the image of Parameters: width - The desired width of the resulting image (in pixels) Parameters: height - The desired height of the resulting image (in pixels) The generated Image representing the MarkupDesignBean render output with the appliedstyles |
|
|