Class DirectoryThemeSource

Theme source for reading themes from a directory on the Filesystem.

Synopsis

Since

3.0

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

DirectoryThemeSource(File, ApplicationServlet)

Parameters

path

Path to the source directory .

url

External URL of the repository

Exceptions

FileNotFoundException

if no theme files are found

Creates a new instance of ThemeRepository by reading the themes from a local directory.

getModificationTime()

Parameters

return

Last modification time of the theme source.

Description copied from interface: getModificationTime

Get the last modification time, used to reload theme on changes.

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.