Child pages
  • Styling Solutions

Versions Compared

Key

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

...

There are many third party Look And Feels around for Java, both free/open source LAFs and commercial LAFs. The quality of these LAFs differs, so when opting to use a third party LAF, make sure to properly test the LAF in combination with the developed Solution in Servoy. A public listing of the majority of the available third party LAFs can be found on http://www.javootoo.com/(info)  Servoy

Creating custom Look and Feels

Creating custom Look and Feels requires detailed Java knowledge and is in general a lot of work. 

Servoy partners with Centigrade, a company that provides User interface Interface Design services and products, one of the products being a customizable Look and Feel that is fully compatible with Servoy. For more information, see the Centigrade website

...

For an overview of the supported CSS properties, see Supported CSS style properties

...

Switching StyleSheets 

...

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');

When this code gets executed, any Form that was designed to use the StyleSheet 'baseStyle' will instead start using the 'customerXStyle'. Note that this will only take effect on Forms that are loaded after performing the switch.

Designtime properties 

While the StyleSheet support provides generic styling options, with the option to differentiate on individual UI objects through additional StyleClasses, all the UI objects also support several styling related properties, like borderType, background anf fontType for example.

...

Runtime dynamic styling options 

At runtime there are 2 levels  

Servoy StyleSheets > Object Properties > Runtime Scripting > onRender event

Supported CSS

Web Client Templating

onRender event

Admin page properties related to Styling

Java Look And Feel's (LAFS)