Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 5 | 0.953 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 353 | Closure/closure/goog/ui/datepicker.js |
2 | 17 | 378 | Closure/closure/goog/ui/datepicker.js |
| ||||
/** * Sets whether the picker should use a simple navigation menu that only * contains controls for navigating to the next and previous month. The default * navigation menu contains controls for navigating to the next/previous month, * next/previous year, and menus for jumping to specific months and years. * * @param {boolean} b Whether to use a simple navigation menu. */ goog.ui.DatePicker.prototype.setUseSimpleNavigationMenu= function (b){ this.simpleNavigation_= b; this.updateNavigationRow_( ); this.updateCalendarGrid_( ); } ; /** * Sets whether a the extra week(s) added always should be at the end. Only * applicable if a fixed number of weeks are shown. * * @param {boolean} b Whether a the extra week(s) added always should be at the * end. */ goog.ui.DatePicker.prototype.setExtraWeekAtEnd= function (b){ this.extraWeekAtEnd_= b; this.updateCalendarGrid_( ); } ; |
| ||||
/** * Sets whether week numbers should be shown. * * @param {boolean} b Whether week numbers should be shown. */ goog.ui.DatePicker.prototype.setShowWeekNum= function (b){ this.showWeekNum_= b; // The navigation row may rely on the number of visible columns, // so we update it when adding/removing the weeknum column. this.updateNavigationRow_( ); this.updateCalendarGrid_( ); } ; /** * Sets whether weekday names should be shown. * * @param {boolean} b Whether weekday names should be shown. */ goog.ui.DatePicker.prototype.setShowWeekdayNames= function (b){ this.showWeekdays_= b; this.redrawCalendarGrid_( ); } ; |
| |||
/** * Sets whether the picker should use a simple navigation menu that only * contains controls for navigating to the next and previous month. The default * navigation menu contains controls for navigating to the next/previous month, * next/previous year, and menus for jumping to specific months and years. * * @param {boolean} b Whether to use a simple navigation menu. */ /** * Sets whether week numbers should be shown. * * @param {boolean} b Whether week numbers should be shown. */ goog.ui.DatePicker.prototype. [[#variable62fcb0e0]]= function (b) { this. [[#variable62fcafa0]]=b; // The navigation row may rely on the number of visible columns, // so we update it when adding/removing the weeknum column. this.updateNavigationRow_( ); this.updateCalendarGrid_( ); } ; /** * Sets whether a the extra week(s) added always should be at the end. Only * applicable if a fixed number of weeks are shown. * * @param {boolean} b Whether a the extra week(s) added always should be at the * end. */ /** * Sets whether weekday names should be shown. * * @param {boolean} b Whether weekday names should be shown. */ goog.ui.DatePicker.prototype. [[#variable62fcafe0]]= function (b) { this. [[#variable62fcaf60]]=b; this. [[#variable62fcaf00]]( ); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62fcb0e0]] | setUseSimpleNavigationMenu |
1 | 2 | [[#62fcb0e0]] | setShowWeekNum |
2 | 1 | [[#62fcafa0]] | simpleNavigation_ |
2 | 2 | [[#62fcafa0]] | showWeekNum_ |
3 | 1 | [[#62fcafe0]] | setExtraWeekAtEnd |
3 | 2 | [[#62fcafe0]] | setShowWeekdayNames |
4 | 1 | [[#62fcaf60]] | extraWeekAtEnd_ |
4 | 2 | [[#62fcaf60]] | showWeekdays_ |
5 | 1 | [[#62fcaf00]] | updateCalendarGrid_ |
5 | 2 | [[#62fcaf00]] | redrawCalendarGrid_ |