Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 4 | 4 | 0.955 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 62 | Closure/closure/goog/ui/colormenubutton.js |
2 | 6 | 55 | Closure/closure/goog/ui/toolbarcolormenubutton.js |
3 | 6 | 54 | Closure/closure/goog/ui/toolbarmenubutton.js |
4 | 6 | 54 | Closure/closure/goog/ui/toolbarselect.js |
| ||||
/** * A color menu button control. Extends {@link goog.ui.MenuButton} by adding * an API for getting and setting the currently selected color from a menu of * color palettes. * * @param {goog.ui.ControlContent} content Text caption or existing DOM * structure to display as the button's caption. * @param {goog.ui.Menu=} opt_menu Menu to render under the button when clicked; * should contain at least one {@link goog.ui.ColorPalette} if present. * @param {goog.ui.MenuButtonRenderer=} opt_renderer Button renderer; * defaults to {@link goog.ui.ColorMenuButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.MenuButton} */ goog.ui.ColorMenuButton= function (content, opt_menu, opt_renderer, opt_domHelper){ goog.ui.MenuButton.call(this, content, opt_menu, opt_renderer ||goog.ui.ColorMenuButtonRenderer.getInstance( ),opt_domHelper); } ; goog.inherits(goog.ui.ColorMenuButton, goog.ui.MenuButton); |
| ||||
/** * A color menu button control for a toolbar. * * @param {goog.ui.ControlContent} content Text caption or existing DOM * structure to display as the button's caption. * @param {goog.ui.Menu=} opt_menu Menu to render under the button when clicked; * should contain at least one {@link goog.ui.ColorPalette} if present. * @param {goog.ui.ColorMenuButtonRenderer=} opt_renderer Optional * renderer used to render or decorate the button; defaults to * {@link goog.ui.ToolbarColorMenuButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.ColorMenuButton} */ goog.ui.ToolbarColorMenuButton= function ( content, opt_menu, opt_renderer, opt_domHelper) { goog.ui.ColorMenuButton.call(this, content, opt_menu, opt_renderer ||goog.ui.ToolbarColorMenuButtonRenderer.getInstance( ),opt_domHelper); } ; goog.inherits(goog.ui.ToolbarColorMenuButton, goog.ui.ColorMenuButton); |
| ||||
/** * A menu button control for a toolbar. * * @param {goog.ui.ControlContent} content Text caption or existing DOM * structure to display as the button's caption. * @param {goog.ui.Menu=} opt_menu Menu to render under the button when clicked. * @param {goog.ui.ButtonRenderer=} opt_renderer Optional renderer used to * render or decorate the button; defaults to * {@link goog.ui.ToolbarMenuButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.MenuButton} */ goog.ui.ToolbarMenuButton= function ( content, opt_menu, opt_renderer, opt_domHelper) { goog.ui.MenuButton.call(this, content, opt_menu, opt_renderer ||goog.ui.ToolbarMenuButtonRenderer.getInstance( ),opt_domHelper); } ; goog.inherits(goog.ui.ToolbarMenuButton, goog.ui.MenuButton); |
| ||||
/** * A select control for a toolbar. * * @param {goog.ui.ControlContent} caption Default caption or existing DOM * structure to display as the button's caption when nothing is selected. * @param {goog.ui.Menu=} opt_menu Menu containing selection options. * @param {goog.ui.MenuButtonRenderer=} opt_renderer Renderer used to * render or decorate the control; defaults to * {@link goog.ui.ToolbarMenuButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.Select} */ goog.ui.ToolbarSelect= function ( caption, opt_menu, opt_renderer, opt_domHelper) { goog.ui.Select.call(this, caption, opt_menu, opt_renderer ||goog.ui.ToolbarMenuButtonRenderer.getInstance( ),opt_domHelper); } ; goog.inherits(goog.ui.ToolbarSelect, goog.ui.Select); |
| |||
/** * A color menu button control. Extends {@link goog.ui.MenuButton} by adding * an API for getting and setting the currently selected color from a menu of * color palettes. * * @param {goog.ui.ControlContent} content Text caption or existing DOM * structure to display as the button's caption. * @param {goog.ui.Menu=} opt_menu Menu to render under the button when clicked; * should contain at least one {@link goog.ui.ColorPalette} if present. * @param {goog.ui.MenuButtonRenderer=} opt_renderer Button renderer; * defaults to {@link goog.ui.ColorMenuButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.MenuButton} */ /** * A color menu button control for a toolbar. * * @param {goog.ui.ControlContent} content Text caption or existing DOM * structure to display as the button's caption. * @param {goog.ui.Menu=} opt_menu Menu to render under the button when clicked; * should contain at least one {@link goog.ui.ColorPalette} if present. * @param {goog.ui.ColorMenuButtonRenderer=} opt_renderer Optional * renderer used to render or decorate the button; defaults to * {@link goog.ui.ToolbarColorMenuButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.ColorMenuButton} */ /** * A menu button control for a toolbar. * * @param {goog.ui.ControlContent} content Text caption or existing DOM * structure to display as the button's caption. * @param {goog.ui.Menu=} opt_menu Menu to render under the button when clicked. * @param {goog.ui.ButtonRenderer=} opt_renderer Optional renderer used to * render or decorate the button; defaults to * {@link goog.ui.ToolbarMenuButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.MenuButton} */ /** * A select control for a toolbar. * * @param {goog.ui.ControlContent} caption Default caption or existing DOM * structure to display as the button's caption when nothing is selected. * @param {goog.ui.Menu=} opt_menu Menu containing selection options. * @param {goog.ui.MenuButtonRenderer=} opt_renderer Renderer used to * render or decorate the control; defaults to * {@link goog.ui.ToolbarMenuButtonRenderer}. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM hepler, used for * document interaction. * @constructor * @extends {goog.ui.Select} */ goog.ui. [[#variable5ec98540]]= function ( [[#variable5ec984a0]],opt_menu,opt_renderer,opt_domHelper) { goog.ui. [[#variable5ec983e0]].call(this, [[#variable5ec984a0]],opt_menu,opt_renderer || goog.ui. [[#variable5ec983c0]].getInstance( ),opt_domHelper); } ; goog.inherits(goog.ui. [[#variable5ec98540]],goog.ui. [[#variable5ec983e0]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5ec98540]] | ColorMenuButton |
1 | 2 | [[#5ec98540]] | ToolbarColorMenuButton |
1 | 3 | [[#5ec98540]] | ToolbarMenuButton |
1 | 4 | [[#5ec98540]] | ToolbarSelect |
2 | 1 | [[#5ec984a0]] | content |
2 | 2 | [[#5ec984a0]] | content |
2 | 3 | [[#5ec984a0]] | content |
2 | 4 | [[#5ec984a0]] | caption |
3 | 1 | [[#5ec983e0]] | MenuButton |
3 | 2 | [[#5ec983e0]] | ColorMenuButton |
3 | 3 | [[#5ec983e0]] | MenuButton |
3 | 4 | [[#5ec983e0]] | Select |
4 | 1 | [[#5ec983c0]] | ColorMenuButtonRenderer |
4 | 2 | [[#5ec983c0]] | ToolbarColorMenuButtonRenderer |
4 | 3 | [[#5ec983c0]] | ToolbarMenuButtonRenderer |
4 | 4 | [[#5ec983c0]] | ToolbarMenuButtonRenderer |