1 /** 2 * @author Gillis Haasnoot <gillis.haasnoot@gmail.com> 3 * @package Banana.Controls 4 * @summary Fieldset 5 */ 6 7 goog.provide('Banana.Controls.Legend'); 8 9 /** @namespace Banana.Controls.Legend */ 10 namespace('Banana.Controls').Legend = Banana.UiControl.extend( 11 /** @lends Banana.Controls.Legend.prototype */ 12 { 13 /** 14 * Creates a legend. Useful as a title representation inside a fieldset 15 * @constructs 16 * @extends Banana.UiControl 17 */ 18 init: function() 19 { 20 this._super(); 21 22 this.addCssClass('BLegend'); 23 }, 24 25 /** 26 * @return {String} 27 */ 28 getTagName : function() 29 { 30 return 'legend'; 31 } 32 }); 33