[
https://issues.apache.org/jira/browse/TRINIDAD-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anand V Nath updated TRINIDAD-2159:
-----------------------------------
Status: Open (was: Patch Available)
> Introduce new API to parse skin files at run time.
> --------------------------------------------------
>
> Key: TRINIDAD-2159
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2159
> Project: MyFaces Trinidad
> Issue Type: New Feature
> Components: Skinning
> Reporter: Anand V Nath
> Attachments: jira-2159-nov-09-2011.patch, jira-2159-nov-09.patch
>
>
> Currently there is no public API for obtaining a parsed format of a Skin file
> other than that is used by the application. Applications that need to parse
> any skin file, can make use of this API.
> Proposed API is
> public static org.apache.myfaces.trinidad.style.Styles
> parseSkinCSS(org.apache.myfaces.trinidad.share.io.InputStreamProvider
> skinFileProvider, org.apache.myfaces.trinidad.style.SkinParsingContext
> context)
> The context for parsing is provided by
> org.apache.myfaces.trinidad.style.SkinParsingContext
> public abstract class SkinParsingContext {
> public abstract Agent getAgent();
> public AccessibilityProfile getAccessibilityProfile(); // provide default
> implementation
> public Locale getLocale(); // provide default implementation
> }
> Using this API skin files can be parsed to obtain
> org.apache.myfaces.trinidad.style.Styles object.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira