Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows |
The Controller SPI allows you to set themes on modifiable instances that implement the ThemeSetter interface, for example ContentPage and ContentLabel.
To set themes, proceed by the following steps:final Modifiable modifiable = cmController.getModifiableNode(page); // obtain theme to set from com.ibm.portal.admin.ThemeList final Theme theme = ... // set theme if (modifiable instanceof ThemeSetter) { ((ThemeSetter) modifiable).setTheme(theme); }Parent topic: Modifying properties Related information