Class ThymeleafStyleFactory

  • All Implemented Interfaces:
    IStyleFactory

    public class ThymeleafStyleFactory
    extends java.lang.Object
    implements IStyleFactory
    Thymeleaf style factory.
    Since:
    10.3.0
    Version:
    $Revision: 20807 $ $Date: 2017-11-30 17:08:51 -0200 (Thu, 30 Nov 2017) $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IStyle createCachedStyle​(java.lang.String stylePath, java.util.List<ITheme> themes)
      Creates a cached version of the requested style.
      IStyle createDynamicStyle​(java.lang.String styleString, java.lang.String stylePath, java.util.List<ITheme> themes)
      Creates a dynamic version of the requested style using the given style text.
      IStyle createDynamicStyle​(java.lang.String stylePath, java.util.List<ITheme> themes)
      Creates a dynamic version of the requested style.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThymeleafStyleFactory

        public ThymeleafStyleFactory()
    • Method Detail

      • createCachedStyle

        public IStyle createCachedStyle​(java.lang.String stylePath,
                                        java.util.List<ITheme> themes)
                                 throws PortalException
        Description copied from interface: IStyleFactory
        Creates a cached version of the requested style.
        Specified by:
        createCachedStyle in interface IStyleFactory
        Parameters:
        stylePath - the style path.
        themes - the current applied themes.
        Returns:
        a cached version of the requested style.
        Throws:
        PortalException
      • createDynamicStyle

        public IStyle createDynamicStyle​(java.lang.String stylePath,
                                         java.util.List<ITheme> themes)
                                  throws PortalException
        Description copied from interface: IStyleFactory
        Creates a dynamic version of the requested style.
        Specified by:
        createDynamicStyle in interface IStyleFactory
        Parameters:
        stylePath - the style path.
        themes - the current applied themes.
        Returns:
        a dynamic version of the requested style.
        Throws:
        PortalException
      • createDynamicStyle

        public IStyle createDynamicStyle​(java.lang.String styleString,
                                         java.lang.String stylePath,
                                         java.util.List<ITheme> themes)
                                  throws PortalException
        Description copied from interface: IStyleFactory
        Creates a dynamic version of the requested style using the given style text.
        Specified by:
        createDynamicStyle in interface IStyleFactory
        Parameters:
        styleString - the style text.
        stylePath - the style path.
        themes - the current applied themes.
        Returns:
        a dynamic version of the requested style using the given style text.
        Throws:
        PortalException