Version 8.2 (2013-03-18)
 —  Special Development Topics  —

Dynamic Selection of the Style Sheet File

The style sheet file is determined by your adapter:

This document covers the following topics:


What You Can Do

There are two options that you can use in parallel:

Top of page

Example

Inside the Application Designer demo workplace, there is a function to select a style sheet for your current session:

graphics/image230.png

The program lists all available style sheets in the directory <webapp>/styles/. If you select one style sheet file, then the selected style sheet is internally passed to the session context as described in the previous section.

Consequently, all pages in the content area of the workplace will be rendered with this style sheet.

The style of the workplace itself will not change: the workplace adapter overwrites the getStyle() method: with the workplace, you can pass its style sheet file when dynamically defining the workplace.

Top of page