public void setCaption(HTMLTableCaptionElement caption) { HTMLTableCaptionElement ref = getCaption(); if (ref == null) { appendChild(caption); } else { replaceChild(caption, ref); } }
public HTMLElement createCaption() { HTMLTableCaptionElement ref = getCaption(); if (ref == null) { return (HTMLElement) getOwnerDocument().createElement("caption"); } else { return ref; } }
public void deleteCaption() { HTMLTableCaptionElement ref = getCaption(); if (ref != null) { removeChild(ref); } }
public HTMLTableCaptionElement getCaption() { return (HTMLTableCaptionElement) getChildElement("caption"); }