| 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 |
/** |
| 16 |
* @fileoverview The renderer interface for {@link goog.ui.DatePicker}. |
| 17 |
* |
| 18 |
* @see ../demos/datepicker.html |
| 19 |
*/ |
| 20 |
|
| 21 |
goog.provide('goog.ui.DatePickerRenderer'); |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
/** |
| 26 |
* The renderer for {@link goog.ui.DatePicker}. Renders the date picker's |
| 27 |
* navigation header and footer. |
| 28 |
* @interface |
| 29 |
*/ |
| 30 |
goog.ui.DatePickerRenderer = function() {}; |
| 31 |
|
| 32 |
|
| 33 |
/** |
| 34 |
* Render the navigation row. |
| 35 |
* |
| 36 |
* @param {!Element} row The parent element to render the component into. |
| 37 |
* @param {boolean} simpleNavigation Whether the picker should render a simple |
| 38 |
* navigation menu that only contains controls for navigating to the next |
| 39 |
* and previous month. The default navigation menu contains controls for |
| 40 |
* navigating to the next/previous month, next/previous year, and menus for |
| 41 |
* jumping to specific months and years. |
| 42 |
* @param {boolean} showWeekNum Whether week numbers should be shown. |
| 43 |
* @param {string} fullDateFormat The full date format. |
| 44 |
* {@see goog.i18n.DateTimeSymbols}. |
| 45 |
*/ |
| 46 |
goog.ui.DatePickerRenderer.prototype.renderNavigationRow = goog.abstractMethod; |
| 47 |
|
| 48 |
|
| 49 |
/** |
| 50 |
* Render the footer row. |
| 51 |
* |
| 52 |
* @param {!Element} row The parent element to render the component into. |
| 53 |
* @param {boolean} showWeekNum Whether week numbers should be shown. |
| 54 |
*/ |
| 55 |
goog.ui.DatePickerRenderer.prototype.renderFooterRow = goog.abstractMethod; |