Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 6 | 2 | 0.976 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 60 | Closure/closure/goog/ui/checkboxmenuitem.js |
2 | 4 | 74 | Closure/closure/goog/ui/option.js |
3 | 4 | 389 | Closure/closure/goog/ui/select.js |
4 | 3 | 661 | Closure/closure/goog/ui/submenu.js |
5 | 4 | 65 | Closure/closure/goog/ui/togglebutton.js |
6 | 3 | 62 | Closure/closure/goog/ui/toolbartogglebutton.js |
| ||||
// Register a decorator factory function for goog.ui.CheckBoxMenuItems. goog.ui.registry.setDecoratorByClassName( goog.getCssName('goog-checkbox-menuitem'), function ( ) { // CheckBoxMenuItem defaults to using MenuItemRenderer. return new goog.ui.CheckBoxMenuItem(null); } ); |
| ||||
// Register a decorator factory function for goog.ui.Options. goog.ui.registry.setDecoratorByClassName( goog.getCssName('goog-option'), function ( ) { // Option defaults to using MenuItemRenderer. return new goog.ui.Option(null); } ); |
| ||||
// Register a decorator factory function for goog.ui.Selects. goog.ui.registry.setDecoratorByClassName( goog.getCssName('goog-select'), function ( ) { // Select defaults to using MenuButtonRenderer, since it shares its L&F. return new goog.ui.Select(null); } ); |
| ||||
// Register a decorator factory function for goog.ui.SubMenus. goog.ui.registry.setDecoratorByClassName(goog.getCssName('goog-submenu'), function ( ) { return new goog.ui.SubMenu(null); } ); |
| ||||
// Register a decorator factory function for goog.ui.ToggleButtons. goog.ui.registry.setDecoratorByClassName( goog.getCssName('goog-toggle-button'), function ( ) { // ToggleButton defaults to using CustomButtonRenderer. return new goog.ui.ToggleButton(null); } ); |
| ||||
// Registers a decorator factory function for toggle buttons in toolbars. goog.ui.registry.setDecoratorByClassName( goog.getCssName('goog-toolbar-toggle-button'), function ( ) { return new goog.ui.ToolbarToggleButton(null); } ); |
| |||
// Register a decorator factory function for goog.ui.CheckBoxMenuItems. // Register a decorator factory function for goog.ui.Options. // Register a decorator factory function for goog.ui.Selects. // Register a decorator factory function for goog.ui.SubMenus. // Register a decorator factory function for goog.ui.ToggleButtons. // Registers a decorator factory function for toggle buttons in toolbars. goog.ui.registry.setDecoratorByClassName(goog.getCssName( [[#variable606ab6a0]]), function ( ) { // CheckBoxMenuItem defaults to using MenuItemRenderer. // Option defaults to using MenuItemRenderer. // Select defaults to using MenuButtonRenderer, since it shares its L&F. // ToggleButton defaults to using CustomButtonRenderer. return new goog.ui. [[#variable6228d1a0]](null); } ); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#606ab6a0]] | 'goog-checkbox-menuitem' |
1 | 2 | [[#606ab6a0]] | 'goog-option' |
1 | 3 | [[#606ab6a0]] | 'goog-select' |
1 | 4 | [[#606ab6a0]] | 'goog-submenu' |
1 | 5 | [[#606ab6a0]] | 'goog-toggle-button' |
1 | 6 | [[#606ab6a0]] | 'goog-toolbar-toggle-button' |
2 | 1 | [[#6228d1a0]] | CheckBoxMenuItem |
2 | 2 | [[#6228d1a0]] | Option |
2 | 3 | [[#6228d1a0]] | Select |
2 | 4 | [[#6228d1a0]] | SubMenu |
2 | 5 | [[#6228d1a0]] | ToggleButton |
2 | 6 | [[#6228d1a0]] | ToolbarToggleButton |