/** * Return the built DOM as an {@link Element}. * * @return the {@link Element} that was built */ public Element finish() { if (!GWT.isClient()) { throw new RuntimeException("asElement() can only be called from GWT client code."); } if (asElementCalled) { throw new IllegalStateException("asElement() can only be called once."); } asElementCalled = true; // End all open tags. endAllTags(); return doFinishImpl(); }
/** * Return the built DOM as an {@link Element}. * * @return the {@link Element} that was built */ public Element finish() { if (!GWT.isClient()) { throw new RuntimeException("asElement() can only be called from GWT client code."); } if (asElementCalled) { throw new IllegalStateException("asElement() can only be called once."); } asElementCalled = true; // End all open tags. endAllTags(); return doFinishImpl(); }
/** * Return the built DOM as an {@link Element}. * * @return the {@link Element} that was built */ public Element finish() { if (!GWT.isClient()) { throw new RuntimeException("asElement() can only be called from GWT client code."); } if (asElementCalled) { throw new IllegalStateException("asElement() can only be called once."); } asElementCalled = true; // End all open tags. endAllTags(); return doFinishImpl(); }