The theme-uri-handler-class Element"

From Documentation
(Created page with "{{ZKConfigurationReferencePageHeader}} [since 9.6.0] '''Syntax:''' <theme-uri-handler-class>''a_class_name''</theme-uri-handler-class> [Default: ''none''] It specifies the ...")
 
m (correct highlight (via JWB))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{ZKConfigurationReferencePageHeader}}
 
{{ZKConfigurationReferencePageHeader}}
[since 9.6.0]
+
{{versionSince| 9.6.0}}
  
 
'''Syntax:'''
 
'''Syntax:'''
Line 7: Line 7:
 
  [Default: ''none'']
 
  [Default: ''none'']
  
It specifies the class to provide the theme (aka., a style sheet file) URI dynamically if you want to determine the theme based on the current user, cookie or locale. You can implement a class with the <javadoc type="interface">org.zkoss.zk.ui.util.ThemeURIHandler</javadoc> interface, and specify it with the <tt>theme-uri-handler-class</tt> element. Then, an instance of the class will be created. It will be called each time when a desktop is rendered to the client to determine the theme URI before ThemeProvider.
+
It specifies the class to provide the theme (aka., a style sheet file) URI dynamically if you want to determine the theme based on the current user, cookie or locale. You can implement a class with the <javadoc type="interface">org.zkoss.zk.ui.util.ThemeURIHandler</javadoc> interface, and specify it with the <code>theme-uri-handler-class</code> element. Then, an instance of the class will be created. It will be called each time when a desktop is rendered to the client to determine the theme URI before ThemeProvider.
  
 
Different from ThemeProvider, ThemeURIHandler is composable with other ThemeURIHandler.
 
Different from ThemeProvider, ThemeURIHandler is composable with other ThemeURIHandler.

Latest revision as of 10:19, 19 January 2022


The theme-uri-handler-class Element


Since 9.6.0

Syntax:

<theme-uri-handler-class>a_class_name</theme-uri-handler-class>
[Default: none]

It specifies the class to provide the theme (aka., a style sheet file) URI dynamically if you want to determine the theme based on the current user, cookie or locale. You can implement a class with the ThemeURIHandler interface, and specify it with the theme-uri-handler-class element. Then, an instance of the class will be created. It will be called each time when a desktop is rendered to the client to determine the theme URI before ThemeProvider.

Different from ThemeProvider, ThemeURIHandler is composable with other ThemeURIHandler.

Note: ThemeProvider still has the final decision. ThemeURIHandler will always be executed.

Version History

Last Update : 2022/01/19


Version Date Content
     


Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.