Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.978 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 52 | Closure/closure/goog/ui/checkboxmenuitem.js |
2 | 5 | 53 | Closure/closure/goog/ui/option.js |
| ||||
/** * Class representing a checkbox menu item. This is just a convenience class * that extends {@link goog.ui.MenuItem} by making it checkable. * * @param {goog.ui.ControlContent} content Text caption or DOM structure to * display as the content of the item (use to add icons or styling to * menus). * @param {Object=} opt_model Data/model associated with the menu item. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper used for * document interactions. * @constructor * @extends {goog.ui.MenuItem} */ goog.ui.CheckBoxMenuItem= function (content, opt_model, opt_domHelper){ goog.ui.MenuItem.call(this, content, opt_model, opt_domHelper); this.setCheckable( true); } ; goog.inherits(goog.ui.CheckBoxMenuItem, goog.ui.MenuItem); |
| ||||
/** * Class representing a menu option. This is just a convenience class that * extends {@link goog.ui.MenuItem} by making it selectable. * * @param {goog.ui.ControlContent} content Text caption or DOM structure to * display as the content of the item (use to add icons or styling to * menus). * @param {*=} opt_model Data/model associated with the menu item. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper used for * document interactions. * @constructor * @extends {goog.ui.MenuItem} */ goog.ui.Option= function (content, opt_model, opt_domHelper){ goog.ui.MenuItem.call(this, content, opt_model, opt_domHelper); this.setSelectable( true); } ; goog.inherits(goog.ui.Option, goog.ui.MenuItem); |
| |||
/** * Class representing a menu option. This is just a convenience class that * extends {@link goog.ui.MenuItem} by making it selectable. * * @param {goog.ui.ControlContent} content Text caption or DOM structure to * display as the content of the item (use to add icons or styling to * menus). * @param {*=} opt_model Data/model associated with the menu item. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper used for * document interactions. * @constructor * @extends {goog.ui.MenuItem} */ /** * Class representing a checkbox menu item. This is just a convenience class * that extends {@link goog.ui.MenuItem} by making it checkable. * * @param {goog.ui.ControlContent} content Text caption or DOM structure to * display as the content of the item (use to add icons or styling to * menus). * @param {Object=} opt_model Data/model associated with the menu item. * @param {goog.dom.DomHelper=} opt_domHelper Optional DOM helper used for * document interactions. * @constructor * @extends {goog.ui.MenuItem} */ goog.ui. [[#variable3fddd100]]= function (content,opt_model,opt_domHelper) { goog.ui.MenuItem.call(this,content,opt_model,opt_domHelper); this. [[#variable3fddcfa0]]( true); } ; goog.inherits(goog.ui. [[#variable3fddd100]],goog.ui.MenuItem); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3fddd100]] | Option |
1 | 2 | [[#3fddd100]] | CheckBoxMenuItem |
2 | 1 | [[#3fddcfa0]] | setSelectable |
2 | 2 | [[#3fddcfa0]] | setCheckable |