public abstract class AbstractScriptingStyleFactory extends Object implements IStyleFactory
Constructor and Description |
---|
AbstractScriptingStyleFactory() |
Modifier and Type | Method and Description |
---|---|
IStyle |
createCachedStyle(String stylePath,
List<ITheme> themes)
Creates a cached version of the requested style.
|
protected IStyle |
createCompiledStyle(CompiledScript compiledScript)
Creates a new instance of a style with the given compiled script.
|
IStyle |
createDynamicStyle(String stylePath,
List<ITheme> themes)
Creates a dynamic version of the requested style.
|
IStyle |
createDynamicStyle(String styleString,
String stylePath,
List<ITheme> themes)
Creates a dynamic version of the requested style using the given style text.
|
protected IStyle |
createStyle(String style,
ScriptEngine engine)
Creates a new instance of a style with the given script and engine.
|
protected abstract ScriptEngine |
getScriptEngine()
Returns the script engine to be used.
|
protected abstract IScriptingStyleTemplate |
getTemplate()
Returns the
style template to be used. |
protected abstract ScriptEngine getScriptEngine()
public IStyle createCachedStyle(String stylePath, List<ITheme> themes) throws PortalException
IStyleFactory
createCachedStyle
in interface IStyleFactory
stylePath
- the style path.themes
- the current applied themes.PortalException
public IStyle createDynamicStyle(String stylePath, List<ITheme> themes) throws PortalException
IStyleFactory
createDynamicStyle
in interface IStyleFactory
stylePath
- the style path.themes
- the current applied themes.PortalException
public IStyle createDynamicStyle(String styleString, String stylePath, List<ITheme> themes) throws PortalException
IStyleFactory
createDynamicStyle
in interface IStyleFactory
styleString
- the style text.stylePath
- the style path.themes
- the current applied themes.PortalException
protected IStyle createCompiledStyle(CompiledScript compiledScript)
compiledScript
- the compiled script.protected IStyle createStyle(String style, ScriptEngine engine)
style
- the style script.engine
- the script engine to be used.protected abstract IScriptingStyleTemplate getTemplate()
style template
to be used.style template
to be used.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.