--Using styles
1 post
• Page 1 of 1
--Using styles
This article is outdated - please use our new system at
https://doc.sibvisions.com
It's possible to set style information on components. A style information is an additional attribute for the Look and Feel. Each UI implementation has a different mechanism to use style information. A web UI implementation could set the class attribute (CSS).
Using styles
Setting a new style
UILabel label = new UILabel("Welcome JVx");
label.setStyle(new Style("l_header", "l_welcome"));
label.setStyle(new Style("l_header", "l_welcome"));
All existing style information will be replaced.
Adding style to existing style information:
UIButton butReload = new UIButton("Reload");
Style.addStyleNames(butReload, "optionbutton", "reload");
Style.addStyleNames(butReload, "optionbutton", "reload");
The style information will be added to the existing style information, if available.
The javax.ra.ui.Style class is immutable and updating style information only is possible via static method calls.
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
1 post
• Page 1 of 1