diff options
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/LabelsExample.java')
-rw-r--r-- | src/com/itmill/toolkit/demo/featurebrowser/LabelsExample.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/LabelsExample.java b/src/com/itmill/toolkit/demo/featurebrowser/LabelsExample.java index 04e3352767..adb4b53bbc 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/LabelsExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/LabelsExample.java @@ -39,10 +39,11 @@ public class LabelsExample extends CustomComponent { p.addComponent(l);
g.addComponent(p);
// plain w/ caption
- p = new Panel("Plain w/ caption");
+ p = new Panel("Plain w/ caption + tooltip");
p.setStyleName(Panel.STYLE_LIGHT);
l = new Label("A plain label with caption.");
l.setCaption("Label caption");
+ l.setDescription("This is a description (tooltip) for the label.");
p.addComponent(l);
g.addComponent(p);
// plain w/ xhtml
|