Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

AriaDateTimeDisabled.java 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright 2000-2016 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.tests.components.datefield;
  17. import com.vaadin.server.VaadinRequest;
  18. import com.vaadin.tests.components.AbstractReindeerTestUI;
  19. import com.vaadin.ui.DateTimeField;
  20. import com.vaadin.ui.VerticalLayout;
  21. public class AriaDateTimeDisabled extends AbstractReindeerTestUI {
  22. @Override
  23. protected void setup(VaadinRequest request) {
  24. VerticalLayout content = new VerticalLayout();
  25. content.setMargin(true);
  26. content.setSpacing(true);
  27. final DateTimeField disabledDateField = new DateTimeField(
  28. "Disabled DateField");
  29. disabledDateField.setEnabled(false);
  30. setContent(content);
  31. content.addComponent(disabledDateField);
  32. content.addComponent(new DateTimeField("Enabled DateField"));
  33. }
  34. @Override
  35. protected String getTestDescription() {
  36. return "Test for aria-disabled attribute on DateField.";
  37. }
  38. @Override
  39. protected Integer getTicketNumber() {
  40. return 13463;
  41. }
  42. }