menuheaderrenderer.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright 2008 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 Renderer for {@link goog.ui.MenuHeader}s.
  16. *
  17. */
  18. goog.provide('goog.ui.MenuHeaderRenderer');
  19. goog.require('goog.ui.ControlRenderer');
  20. /**
  21. * Renderer for menu headers.
  22. * @constructor
  23. * @extends {goog.ui.ControlRenderer}
  24. */
  25. goog.ui.MenuHeaderRenderer = function() {
  26. goog.ui.ControlRenderer.call(this);
  27. };
  28. goog.inherits(goog.ui.MenuHeaderRenderer, goog.ui.ControlRenderer);
  29. goog.addSingletonGetter(goog.ui.MenuHeaderRenderer);
  30. /**
  31. * Default CSS class to be applied to the root element of components rendered
  32. * by this renderer.
  33. * @type {string}
  34. */
  35. goog.ui.MenuHeaderRenderer.CSS_CLASS = goog.getCssName('goog-menuheader');
  36. /**
  37. * Returns the CSS class to be applied to the root element of components
  38. * rendered using this renderer.
  39. * @return {string} Renderer-specific CSS class.
  40. * @override
  41. */
  42. goog.ui.MenuHeaderRenderer.prototype.getCssClass = function() {
  43. return goog.ui.MenuHeaderRenderer.CSS_CLASS;
  44. };