|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.themes.FragmentedThemeFactory
public class FragmentedThemeFactory
Experimental - This class collects all ".frag.css" files in the specified "directory", while allowing them to be "overridden" in other parts of the structure. The resulting set of .frag.css files is then run through the template compiler (one by one) to create the final result. This result should be the "actual" css file to use.
A style can 'inherit' another style. This is done in each style's ".jsprops" file where the file must start with an "inherit('xxxx')" statement.
Nested Class Summary | |
---|---|
static class |
FragmentedThemeFactory.Check
The type of fragment expansion/check to do. |
Constructor Summary | |
---|---|
FragmentedThemeFactory()
|
|
FragmentedThemeFactory(java.lang.String colorName,
java.lang.String iconName,
java.lang.String styleName)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
collectFragments(java.util.List<java.lang.String> directoryStack,
java.lang.String suffix)
|
protected IResourceRef |
findRef(IResourceDependencyList rdl,
java.lang.String rurl)
|
CssPropertySet |
getFragmentedProperties(java.lang.String dir,
java.lang.String rootfile,
java.lang.String suffix,
java.util.Map<java.lang.String,java.lang.Object> start)
|
void |
getFragments(java.lang.StringBuilder target,
java.util.List<java.lang.String> directory,
java.lang.String suffix,
FragmentedThemeFactory.Check loadType,
IResourceDependencyList rdl,
java.util.Map<java.lang.String,java.lang.Object> propertyMap)
This code collects "fragments" of files and connects them to form a full file which is the concatenation of all fragments. |
CssPropertySet |
getProperties(java.lang.String dir,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> start)
Load a property file set for colors and style properties, where the properties are not fragmented. |
void |
loadStyleInfo(DomApplication da)
|
void |
loadStyleInfo(java.lang.String colorset,
java.lang.String iconset,
java.lang.String styleset)
|
FragmentedThemeStore |
loadTheme(DomApplication da)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FragmentedThemeFactory()
public FragmentedThemeFactory(java.lang.String colorName, java.lang.String iconName, java.lang.String styleName)
Method Detail |
---|
public FragmentedThemeStore loadTheme(DomApplication da) throws java.lang.Exception
loadTheme
in interface IThemeFactory
java.lang.Exception
public void loadStyleInfo(DomApplication da) throws java.lang.Exception
java.lang.Exception
public void loadStyleInfo(java.lang.String colorset, java.lang.String iconset, java.lang.String styleset) throws java.lang.Exception
java.lang.Exception
public CssPropertySet getProperties(java.lang.String dir, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> start) throws java.lang.Exception
java.lang.Exception
public CssPropertySet getFragmentedProperties(java.lang.String dir, java.lang.String rootfile, java.lang.String suffix, java.util.Map<java.lang.String,java.lang.Object> start) throws java.lang.Exception
java.lang.Exception
public void getFragments(java.lang.StringBuilder target, java.util.List<java.lang.String> directory, java.lang.String suffix, FragmentedThemeFactory.Check loadType, IResourceDependencyList rdl, java.util.Map<java.lang.String,java.lang.Object> propertyMap) throws java.lang.Exception
The loadType decides whether the content of each fragment is expanded or not.
java.lang.Exception
@Nullable protected IResourceRef findRef(@Nonnull IResourceDependencyList rdl, @Nonnull java.lang.String rurl) throws java.lang.Exception
java.lang.Exception
public java.util.List<java.lang.String> collectFragments(java.util.List<java.lang.String> directoryStack, java.lang.String suffix) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |