Class AbstractElementBuilderBase<R extends ElementBuilderBase<?>>

java.lang.Object
com.google.gwt.dom.builder.shared.AbstractElementBuilderBase<R>
Type Parameters:
R - the builder type returned from build methods
All Implemented Interfaces:
ElementBuilderBase<R>
Direct Known Subclasses:
DomElementBuilderBase, HtmlElementBuilderBase

public abstract class AbstractElementBuilderBase<R extends ElementBuilderBase<?>> extends Object implements ElementBuilderBase<R>
Abstract base class for implementations of ElementBuilderBase.

Subclasses of AbstractElementBuilderBase act as typed wrappers around a shared implementation that handles the actual building. The wrappers merely delegate to the shared implementation, so wrapper instances can be reused, avoiding object creation. This approach is necessary so that the return value of common methods, such as ElementBuilderBase.id(String), return a typed builder instead of the generic ElementBuilderBase.