Child pages
  • Styling Solutions

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This chapter descibes the various level of Styling options for a solution in Servoy. First the smart and Web client specific Styling options will be discussed, after which Styling options within the Solution are discussed, that are applicable to both Clients. 

...

Table of Contents
styleupper-roman

Smart Client specific styling options

...

The Smart Client Settings  on the Servoy Application Server allow the configuration of the default LAF for all Smart Clients, through the 'selectedlnf' property. This property needs to be set to the className of the Look And Feel class. When the classNAme is unknown, it can be retrieved by calling the following function in a Smart Client, after manually selecting the LAF in the Smart Client Preferences:

Code Block

var laf = Packages.javax.swing.UIManager.getLookAndFeel() 
application.output(laf.getClass().getName())  

...

At designtime, Forms can be designed to use a specific StyleSheet. In order to facilitate skinning the Solution, for example for different customers, Servoy provides the option to dynamically switch the StyleSheet use at runtime using the following code:

Code Block

application.overrideStyle('baseStyle', 'customerXStyle');

...