Class JarThemeSource

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.

Synopsis

VERSION@

Since

3.0

Inheritance Path.  java.lang.Object-> com.itmill.toolkit.terminal.web.JarThemeSource

JarThemeSource(File, ApplicationServlet, String)

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 jar file.

getName()

Parameters

return

Name of the theme source.

See Also
getName()
Description copied from interface: getName

Get the name of the ThemeSource.

getResource(String)

Parameters

return

Stream where the resource can be read.

Exceptions

ThemeException

If the resource is not found or there was some problem finding the resource.

Description copied from interface: getResource

Get input stream for the resource with the specified resource id.

getThemeByName(String)

Parameters

name

Theme name.

return

Theme instance matching the name, or null if not found.

Description copied from interface: getThemeByName

Return Theme instance by name.

getThemes()

Parameters

return

List of themes included in the theme source.

See Also
getThemes()
Description copied from interface: getThemes

Get list of themes in the theme source.

getXSLStreams(Theme, WebBrowser)

Parameters

theme

Theme, which XSL should be returned

type

The type of the current client.

return

Collection of ThemeSource.XSLStream objects.

Description copied from interface: getXSLStreams

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.