| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 23 | 3 | 4 | 0.959 | SourceElements[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 23 | 191 | Closure/closure/goog/ui/progressbar.js |
| 2 | 23 | 220 | Closure/closure/goog/ui/progressbar.js |
| 3 | 23 | 249 | Closure/closure/goog/ui/progressbar.js |
| ||||
/**
* @return {number} The value.
*/
goog.ui.ProgressBar.prototype.getValue= function ( )
{
return this.rangeModel_.getValue( );
} ;
/**
* Sets the value
* @param {number} v The value.
*/
goog.ui.ProgressBar.prototype.setValue= function (v){
this.rangeModel_.setValue(v);
if (this.getElement( )){
this.setValueState_( );
}
} ;
/**
* Sets the state for a11y of the current value.
* @private
*/
goog.ui.ProgressBar.prototype.setValueState_= function ( )
{
goog.dom.a11y.setState(this.getElement( ),'valuenow', this.getValue( ));
} ;
|
| ||||
/**
* @return {number} The minimum value.
*/
goog.ui.ProgressBar.prototype.getMinimum= function ( )
{
return this.rangeModel_.getMinimum( );
} ;
/**
* Sets the minimum number
* @param {number} v The minimum value.
*/
goog.ui.ProgressBar.prototype.setMinimum= function (v){
this.rangeModel_.setMinimum(v);
if (this.getElement( )){
this.setMinimumState_( );
}
} ;
/**
* Sets the state for a11y of the minimum value.
* @private
*/
goog.ui.ProgressBar.prototype.setMinimumState_= function ( )
{
goog.dom.a11y.setState(this.getElement( ),'valuemin', this.getMinimum( ));
} ;
|
| ||||
/**
* @return {number} The maximum value.
*/
goog.ui.ProgressBar.prototype.getMaximum= function ( )
{
return this.rangeModel_.getMaximum( );
} ;
/**
* Sets the maximum number
* @param {number} v The maximum value.
*/
goog.ui.ProgressBar.prototype.setMaximum= function (v){
this.rangeModel_.setMaximum(v);
if (this.getElement( )){
this.setMaximumState_( );
}
} ;
/**
* Sets the state for a11y of the maximum valiue.
* @private
*/
goog.ui.ProgressBar.prototype.setMaximumState_= function ( )
{
goog.dom.a11y.setState(this.getElement( ),'valuemax', this.getMaximum( ));
} ;
|
| |||
/**
* @return {number} The value.
*/
/**
* @return {number} The minimum value.
*/
/**
* @return {number} The maximum value.
*/
goog.ui.ProgressBar.prototype. [[#variable619ea9a0]]= function ( )
{ return this.rangeModel_. [[#variable619ea9a0]]( );
} ;
/**
* Sets the value
* @param {number} v The value.
*/
/**
* Sets the minimum number
* @param {number} v The minimum value.
*/
/**
* Sets the maximum number
* @param {number} v The maximum value.
*/
goog.ui.ProgressBar.prototype. [[#variable619eb840]]= function (v)
{ this.rangeModel_. [[#variable619eb840]](v);
if (this.getElement( ))
{ this. [[#variable619ea940]]( );
}
} ;
/**
* Sets the state for a11y of the current value.
* @private
*/
/**
* Sets the state for a11y of the minimum value.
* @private
*/
/**
* Sets the state for a11y of the maximum valiue.
* @private
*/
goog.ui.ProgressBar.prototype. [[#variable619ea940]]= function ( )
{ goog.dom.a11y.setState(this.getElement( ), [[#variable619eb760]],this. [[#variable619ea9a0]]( ));
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#619ea9a0]] | getValue |
| 1 | 2 | [[#619ea9a0]] | getMinimum |
| 1 | 3 | [[#619ea9a0]] | getMaximum |
| 2 | 1 | [[#619eb840]] | setValue |
| 2 | 2 | [[#619eb840]] | setMinimum |
| 2 | 3 | [[#619eb840]] | setMaximum |
| 3 | 1 | [[#619ea940]] | setValueState_ |
| 3 | 2 | [[#619ea940]] | setMinimumState_ |
| 3 | 3 | [[#619ea940]] | setMaximumState_ |
| 4 | 1 | [[#619eb760]] | 'valuenow' |
| 4 | 2 | [[#619eb760]] | 'valuemin' |
| 4 | 3 | [[#619eb760]] | 'valuemax' |