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.

RadioButtonGroupRequiredIndicator.java 551B

123456789101112131415161718192021
  1. package com.vaadin.tests.components.radiobuttongroup;
  2. import com.vaadin.tests.components.HasValueRequiredIndicator;
  3. import com.vaadin.ui.RadioButtonGroup;
  4. /**
  5. * The whole logic is inside HasValueRequiredIndicator. The code here just set
  6. * value for the component.
  7. *
  8. * @author Vaadin Ltd
  9. *
  10. */
  11. public class RadioButtonGroupRequiredIndicator
  12. extends HasValueRequiredIndicator<RadioButtonGroup<String>> {
  13. @Override
  14. protected void initValue(RadioButtonGroup<String> component) {
  15. component.setItems("a", "b", "c");
  16. }
  17. }