Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

LocalDateTimeRendererConnector.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2000-2018 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.client.connectors.grid;
  17. import com.vaadin.shared.ui.Connect;
  18. import com.vaadin.shared.ui.grid.renderers.LocalDateTimeRendererState;
  19. /**
  20. * A connector for LocalDateTimeRenderer.
  21. * <p>
  22. * The server-side Renderer operates on {@code LocalDateTime}s, but the data is
  23. * serialized as a string, and displayed as-is on the client side. This is to be
  24. * able to support the server's locale.
  25. *
  26. * @since 8.1
  27. * @author Vaadin Ltd
  28. */
  29. @Connect(com.vaadin.ui.renderers.LocalDateTimeRenderer.class)
  30. public class LocalDateTimeRendererConnector extends TextRendererConnector {
  31. @Override
  32. public LocalDateTimeRendererState getState() {
  33. return (LocalDateTimeRendererState) super.getState();
  34. }
  35. }