Information about a Theme"
From Documentation
RebeccaLai (talk | contribs) m |
|||
Line 5: | Line 5: | ||
Apart from having a name, a theme could be associated with many attributes. Encapsulating theme-specific attributes is defined in <javadoc>org.zkoss.web.theme.Theme</javadoc>. Each theme should have at least a name, which helps the web application to identify it. Web developers should extend this abstract class to define other attributes associated with concrete themes, such as file paths included in a theme, or variables that could be used to parameterize a theme. | Apart from having a name, a theme could be associated with many attributes. Encapsulating theme-specific attributes is defined in <javadoc>org.zkoss.web.theme.Theme</javadoc>. Each theme should have at least a name, which helps the web application to identify it. Web developers should extend this abstract class to define other attributes associated with concrete themes, such as file paths included in a theme, or variables that could be used to parameterize a theme. | ||
− | Standard themes have additional attributes like a more descriptive name for displaying purposes, a priority value to help the system choose the theme to use, and | + | Standard themes have additional attributes like a more descriptive name for displaying purposes, a priority value to help the system choose the theme to use, and an origin of the theme's resources (i.e. CSS and image files). Standard theme information is provided by <javadoc>org.zkoss.web.theme.StandardTheme</javadoc>. |
== Example == | == Example == |
Latest revision as of 09:37, 31 January 2024
Since 6.5.2
Apart from having a name, a theme could be associated with many attributes. Encapsulating theme-specific attributes is defined in Theme. Each theme should have at least a name, which helps the web application to identify it. Web developers should extend this abstract class to define other attributes associated with concrete themes, such as file paths included in a theme, or variables that could be used to parameterize a theme.
Standard themes have additional attributes like a more descriptive name for displaying purposes, a priority value to help the system choose the theme to use, and an origin of the theme's resources (i.e. CSS and image files). Standard theme information is provided by StandardTheme.
Example
import org.zkoss.web.theme.Theme;
public class MyTheme extends Theme {
// theme-specific attributes
...
// getters/setters
...
}