A simple {@link Element} implementation (not an actual domobject) that can serve as stand in to be used by {@link IsRenderable} widgetsbefore they are fully built. For example, it can accumulate simple set*() values to be used when the widget is actually ready to render. Thus, most {@link IsRenderable} widget code can be written without taking into accountwhether or not the widget has yet been rendered.
{@link DOM#appendChild} is aware of PotentialElement, and calls itsresolve() method. This triggers a call to {@link UIObject#resolvePotentialElement()}, which widgets can customize to get a real {@link Element} in place at the last moment.TODO(rdcastro): Cover all unsupported methods with helpful error messages.
|
|