search

goog.ui.ControlRenderer

Provided By
All Known Direct Subclasses

Default renderer for goog.ui.Controls. Can be used as-is, but subclasses of Control will probably want to use renderers specifically tailored for them by extending this class. Controls that use renderers delegate one or more of the following API methods to the renderer:

  • `createDom` - renders the DOM for the component
  • `canDecorate` - determines whether an element can be decorated by the component
  • `decorate` - decorates an existing element with the component
  • `setState` - updates the appearance of the component based on its state
  • `getContent` - returns the component's content
  • `setContent` - sets the component's content
Controls are stateful; renderers, on the other hand, should be stateless and reusable.

new ControlRenderer()

Parameters

None.

Instance Methods

Static Functions

Static Properties