| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 3 | 2 | 0.958 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 172 | Closure/closure/goog/ui/colorpicker.js |
| 2 | 2 | 432 | Closure/closure/goog/ui/palette.js |
| 3 | 2 | 329 | Closure/closure/goog/ui/select.js |
| ||||
/**
* @return {number} The index of the color selected.
*/
goog.ui.ColorPicker.prototype.getSelectedIndex= function ( )
{
return this.colorPalette_
? this.colorPalette_.getSelectedIndex( )
: -1;
} ;
|
| ||||
/**
* Returns the 0-based index of the currently selected palette item, or -1
* if no item is selected.
* @return {number} Index of the selected item (-1 if none).
*/
goog.ui.Palette.prototype.getSelectedIndex= function ( )
{
return this.selectionModel_
? this.selectionModel_.getSelectedIndex( )
: -1;
} ;
|
| ||||
/**
* Returns the index of the currently selected option.
* @return {number} 0-based index of the currently selected option (-1 if none).
*/
goog.ui.Select.prototype.getSelectedIndex= function ( )
{
return this.selectionModel_
? this.selectionModel_.getSelectedIndex( )
: -1;
} ;
|
| |||
/**
* Returns the 0-based index of the currently selected palette item, or -1
* if no item is selected.
* @return {number} Index of the selected item (-1 if none).
*/
/**
* @return {number} The index of the color selected.
*/
/**
* Returns the index of the currently selected option.
* @return {number} 0-based index of the currently selected option (-1 if none).
*/
goog.ui. [[#variable63042dc0]].prototype.getSelectedIndex= function ( )
{ return this. [[#variable63042ca0]]
?this. [[#variable63042ca0]].getSelectedIndex( )
: -1;
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#63042dc0]] | Palette |
| 1 | 2 | [[#63042dc0]] | ColorPicker |
| 1 | 3 | [[#63042dc0]] | Select |
| 2 | 1 | [[#63042ca0]] | selectionModel_ |
| 2 | 2 | [[#63042ca0]] | colorPalette_ |
| 2 | 3 | [[#63042ca0]] | selectionModel_ |