myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anand V Nath (Created) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (TRINIDAD-2159) Introduce new API to parse skin files at run time.
Date Wed, 09 Nov 2011 12:08:51 GMT
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


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

        

Mime
View raw message