setSkin

setSkin(skin: JadeSkin);           (Form)

setSkin(skin: JadeSkinControl);    (Control)

The setSkin method of the Form class sets the skin for the form, overriding any skin set for the application for that form.

Calling form.setSkin(null); causes that form to resume using the default skin of the application.

The setSkin method of the Control class sets the current skin for the control, regardless of the setting of the Window class skinCategoryName property and the applyCondition criteria. However, if the value of the Window class ignoreSkin property is set to true, the skin is still ignored. Setting a specific skin for a control takes precedence over any defined application skin.

Note that the skin object passed during this method call must correspond to the control type. For example, it must be of type JadeSkinFrame when the control is a Frame control class.

Changing a skin object after the setSkin method is called has no impact on the displayed skin. To apply any skin changes dynamically, you must call the Control class setSkin method again.

To clear the control skin (cancel the skin display), call this method again with a null value, as follows.

Control.setSkin(null);

The control then reverts to the use of an appropriate control skin set for the application.

For details about the JadeSkinControl class and its subclasses or the JadeSkin class, see the appropriate JadeSkinEntity subclass or "JadeSkin Class", in Chapter 1. For details about maintaining and using JADE skins, see Chapter 2 of the JADE Runtime Application Guide. See also the Form class setApplicationSkin method, earlier in this document.