You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CheckboxIcon.java 869B

1234567891011121314151617181920212223242526272829
  1. package com.vaadin.tests.components.checkbox;
  2. import com.vaadin.server.ThemeResource;
  3. import com.vaadin.tests.components.TestBase;
  4. import com.vaadin.ui.CheckBox;
  5. public class CheckboxIcon extends TestBase {
  6. @Override
  7. protected String getDescription() {
  8. return "The icon of a Checkbox component should have the same cursor as the text and should be clickable. The tooltip should appear when hovering the checkbox, the icon or the caption.";
  9. }
  10. @Override
  11. protected Integer getTicketNumber() {
  12. // TODO Auto-generated method stub
  13. return null;
  14. }
  15. @Override
  16. protected void setup() {
  17. CheckBox checkbox = new CheckBox("A checkbox");
  18. checkbox.setIcon(new ThemeResource("../runo/icons/32/calendar.png"));
  19. checkbox.setDescription("Tooltip for checkbox");
  20. addComponent(checkbox);
  21. }
  22. }