Theme source for reading themes from a JAR archive. At this time only jar files are supported and an archive may not contain any recursive archives.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.terminal.web.ServletThemeSource
Parameters
file
Path to the JAR archive .
path
Path inside the archive to be processed.
Exceptions
FileNotFoundException
if no theme files are found
Creates a new instance of ThemeRepository by reading the themes from a local directory.
getModificationTime()
Return modication time of the description file.
Parameters
Name of the theme source.
getName()
Get the name of the ThemeSource.
Parameters
Stream where the resource can be read.
Exceptions
ThemeException
If the resource is not found or there was some problem finding the resource.
getResource(java.lang.String)
Get input stream for the resource with the specified resource id.
Parameters
name
Theme name.
Theme instance matching the name, or null if not found.
getThemeByName(java.lang.String)
Return Theme instance by name.
Parameters
List of themes included in the theme source.
getThemes()
Get list of themes in the theme source.
Parameters
theme
Theme, which XSL should be returned
type
The type of the current client.
Collection of ThemeSource.XSLStream objects.
Get XSL stream for the specified theme and web-browser type.
Returns the XSL templates, which are used to process the
UIDL data. The
type
parameter is used to limit
the templates, which are returned based on the theme fileset
requirements.
This implicitly operates in xslt mode.