| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 15 | 2 | 1 | 0.983 | SourceElements[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 15 | 317 | Closure/closure/goog/ui/container.js |
| 2 | 15 | 443 | Closure/closure/goog/ui/control.js |
| ||||
/**
* Returns the DOM element into which child components are to be rendered,
* or null if the container itself hasn't been rendered yet. Overrides
* {@link goog.ui.Component#getContentElement} by delegating to the renderer.
* @return {Element} Element to contain child elements (null if none).
*/
goog.ui.Container.prototype.getContentElement= function ( )
{
// Delegate to renderer.
return this.renderer_.getContentElement(this.getElement( ));
} ;
/**
* Returns true if the given element can be decorated by this container.
* Overrides {@link goog.ui.Component#canDecorate}.
* @param {Element} element Element to decorate.
* @return {boolean} True iff the element can be decorated.
*/
goog.ui.Container.prototype.canDecorate= function (element){
// Delegate to renderer.
return this.renderer_.canDecorate(element);
} ;
|
| ||||
/**
* Returns the DOM element into which child components are to be rendered,
* or null if the control itself hasn't been rendered yet. Overrides
* {@link goog.ui.Component#getContentElement} by delegating to the renderer.
* @return {Element} Element to contain child elements (null if none).
*/
goog.ui.Control.prototype.getContentElement= function ( )
{
// Delegate to renderer.
return this.renderer_.getContentElement(this.getElement( ));
} ;
/**
* Returns true if the given element can be decorated by this component.
* Overrides {@link goog.ui.Component#canDecorate}.
* @param {Element} element Element to decorate.
* @return {boolean} Whether the element can be decorated by this component.
*/
goog.ui.Control.prototype.canDecorate= function (element){
// Controls support pluggable renderers; delegate to the renderer.
return this.renderer_.canDecorate(element);
} ;
|
| |||
/**
* Returns the DOM element into which child components are to be rendered,
* or null if the control itself hasn't been rendered yet. Overrides
* {@link goog.ui.Component#getContentElement} by delegating to the renderer.
* @return {Element} Element to contain child elements (null if none).
*/
/**
* Returns the DOM element into which child components are to be rendered,
* or null if the container itself hasn't been rendered yet. Overrides
* {@link goog.ui.Component#getContentElement} by delegating to the renderer.
* @return {Element} Element to contain child elements (null if none).
*/
goog.ui. [[#variable1f9a7f40]].prototype.getContentElement= function ( )
{
// Delegate to renderer.
return this.renderer_.getContentElement(this.getElement( ));
} ;
/**
* Returns true if the given element can be decorated by this component.
* Overrides {@link goog.ui.Component#canDecorate}.
* @param {Element} element Element to decorate.
* @return {boolean} Whether the element can be decorated by this component.
*/
/**
* Returns true if the given element can be decorated by this container.
* Overrides {@link goog.ui.Component#canDecorate}.
* @param {Element} element Element to decorate.
* @return {boolean} True iff the element can be decorated.
*/
goog.ui. [[#variable1f9a7f40]].prototype.canDecorate= function (element)
{
// Controls support pluggable renderers; delegate to the renderer.
// Delegate to renderer.
return this.renderer_.canDecorate(element);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#1f9a7f40]] | Control |
| 1 | 2 | [[#1f9a7f40]] | Container |