|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ThemeSource
Interface implemented by theme sources.
| Nested Class Summary | |
|---|---|
static class |
ThemeSource.ThemeException
ThemeException is thrown by classes implementing the
ThemeSource interface if some error occurs during
processing. |
static class |
ThemeSource.XSLStream
Wrapper class for XSL InputStreams. |
| Method Summary | |
|---|---|
long |
getModificationTime()
Gets the last modification time, used to reload theme on changes. |
String |
getName()
Gets the name of the ThemeSource. |
InputStream |
getResource(String resourceId)
Gets the input stream for the resource with the specified resource id. |
Theme |
getThemeByName(String name)
Returns the Theme instance by name. |
Collection |
getThemes()
Gets the list of themes in the theme source. |
Collection |
getXSLStreams(Theme theme,
WebBrowser type)
Gets the XSL stream for the specified theme and web-browser type. |
| Method Detail |
|---|
String getName()
Collection getXSLStreams(Theme theme,
WebBrowser type)
throws ThemeSource.ThemeException
type parameter is used to limit the templates, which are
returned based on the theme fileset requirements.
Note : This implicitly operates in xslt mode.
theme - the Theme, which XSL should be returned.type - the type of the current client.
ThemeSource.ThemeException - If the resource is not found or there was some problem
finding the resource.Themelong getModificationTime()
InputStream getResource(String resourceId)
throws ThemeSource.ThemeException
resourceId - the resource id.
ThemeSource.ThemeException - If the resource is not found or there was some problem
finding the resource.Collection getThemes()
Theme getThemeByName(String name)
name - the Theme name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||