datepickerrenderer.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2013 The Closure Library Authors. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS-IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /**
  15. * @fileoverview The renderer interface for {@link goog.ui.DatePicker}.
  16. *
  17. * @see ../demos/datepicker.html
  18. */
  19. goog.provide('goog.ui.DatePickerRenderer');
  20. /**
  21. * The renderer for {@link goog.ui.DatePicker}. Renders the date picker's
  22. * navigation header and footer.
  23. * @interface
  24. */
  25. goog.ui.DatePickerRenderer = function() {};
  26. /**
  27. * Render the navigation row.
  28. *
  29. * @param {!Element} row The parent element to render the component into.
  30. * @param {boolean} simpleNavigation Whether the picker should render a simple
  31. * navigation menu that only contains controls for navigating to the next
  32. * and previous month. The default navigation menu contains controls for
  33. * navigating to the next/previous month, next/previous year, and menus for
  34. * jumping to specific months and years.
  35. * @param {boolean} showWeekNum Whether week numbers should be shown.
  36. * @param {string} fullDateFormat The full date format.
  37. * {@see goog.i18n.DateTimeSymbols}.
  38. */
  39. goog.ui.DatePickerRenderer.prototype.renderNavigationRow = goog.abstractMethod;
  40. /**
  41. * Render the footer row.
  42. *
  43. * @param {!Element} row The parent element to render the component into.
  44. * @param {boolean} showWeekNum Whether week numbers should be shown.
  45. */
  46. goog.ui.DatePickerRenderer.prototype.renderFooterRow = goog.abstractMethod;