GridLayout l = new GridLayout(3, 1);
l.setCaption("Buttons");
l.setMargin(true);
l.setSpacing(true);
AbstractComponent b = new Button("Normal Button");
b.setDescription("This is a tooltip!");
l.addComponent(b);
b = new NativeButton("Native Button");
b.setDescription("<h2><img src=\"/html/VAADIN/themes/runo/icons/16/globe.png\"/>A richtext tooltip</h2>"
+ "<ul>"
+ "<li>HTML formatting</li><li>Images<br/>"
+ "</li><li>etc...</li></ul>");
l.addComponent(b);
b = new CheckBox("Checkbox");
l.addComponent(b);
b = new Button("Disabled");
b.setEnabled(false);
l.addComponent(b);
b = new NativeButton("Disabled");
b.setEnabled(false);
l.addComponent(b);
b = new CheckBox("Disabled");
b.setEnabled(false);
l.addComponent(b);
b = new Button("OK");
b.setIcon(ICON_OK);
l.addComponent(b);
b = new NativeButton("OK");
b.setIcon(ICON_OK);
l.addComponent(b);
b = new CheckBox("OK");
b.setIcon(ICON_OK);
l.addComponent(b);
b = new Button("Link Button");
b.setStyleName(LiferayTheme.BUTTON_LINK);
l.addComponent(b);
b = new NativeButton("Link Button");
b.setStyleName(LiferayTheme.BUTTON_LINK);
l.addComponent(b);
l.newLine();
b = new Button("Link Button");
b.setIcon(ICON_OK);
b.setStyleName(LiferayTheme.BUTTON_LINK);
l.addComponent(b);
b = new NativeButton("Link Button");
b.setIcon(ICON_OK);
b.setStyleName(LiferayTheme.BUTTON_LINK);
l.addComponent(b);
return l;
}