Java 类org.w3c.dom.html2.HTMLElement 实例源码

项目:javify    文件:DomHTMLDocument.java   
public void setBody(HTMLElement body)
{
  Node html = getDocumentElement();
  if (html == null)
    {
      html = createElement("html");
      appendChild(html);
    }
  Node ref = getBody();
  if (ref == null)
    {
      html.appendChild(body);
    }
  else
    {
      html.replaceChild(body, ref);
    }
}
项目:javify    文件:DomHTMLTableElement.java   
public HTMLElement insertRow(int index)
{
  Node ref = getRow(index);
  Node row = getOwnerDocument().createElement("tr");
  if (ref == null)
    {
      Node tbody = getChildElement("tbody");
      if (tbody == null)
        {
          tbody = getOwnerDocument().createElement("tfoot");
          appendChild(tbody);
        }
      tbody.appendChild(row);
    }
  else
    {
      ref.getParentNode().insertBefore(row, ref);
    }
  return (HTMLElement) row;
}
项目:jvm-stm    文件:DomHTMLDocument.java   
public void setBody(HTMLElement body)
{
  Node html = getDocumentElement();
  if (html == null)
    {
      html = createElement("html");
      appendChild(html);
    }
  Node ref = getBody();
  if (ref == null)
    {
      html.appendChild(body);
    }
  else
    {
      html.replaceChild(body, ref);
    }
}
项目:jvm-stm    文件:DomHTMLTableElement.java   
public HTMLElement insertRow(int index)
{
  Node ref = getRow(index);
  Node row = getOwnerDocument().createElement("tr");
  if (ref == null)
    {
      Node tbody = getChildElement("tbody");
      if (tbody == null)
        {
          tbody = getOwnerDocument().createElement("tfoot");
          appendChild(tbody);
        }
      tbody.appendChild(row);
    }
  else
    {
      ref.getParentNode().insertBefore(row, ref);
    }
  return (HTMLElement) row;
}
项目:JamVM-PH    文件:DomHTMLDocument.java   
public void setBody(HTMLElement body)
{
  Node html = getDocumentElement();
  if (html == null)
    {
      html = createElement("html");
      appendChild(html);
    }
  Node ref = getBody();
  if (ref == null)
    {
      html.appendChild(body);
    }
  else
    {
      html.replaceChild(body, ref);
    }
}
项目:JamVM-PH    文件:DomHTMLTableElement.java   
public HTMLElement insertRow(int index)
{
  Node ref = getRow(index);
  Node row = getOwnerDocument().createElement("tr");
  if (ref == null)
    {
      Node tbody = getChildElement("tbody");
      if (tbody == null)
        {
          tbody = getOwnerDocument().createElement("tfoot");
          appendChild(tbody);
        }
      tbody.appendChild(row);
    }
  else
    {
      ref.getParentNode().insertBefore(row, ref);
    }
  return (HTMLElement) row;
}
项目:classpath    文件:DomHTMLDocument.java   
public void setBody(HTMLElement body)
{
  Node html = getDocumentElement();
  if (html == null)
    {
      html = createElement("html");
      appendChild(html);
    }
  Node ref = getBody();
  if (ref == null)
    {
      html.appendChild(body);
    }
  else
    {
      html.replaceChild(body, ref);
    }
}
项目:classpath    文件:DomHTMLTableElement.java   
public HTMLElement insertRow(int index)
{
  Node ref = getRow(index);
  Node row = getOwnerDocument().createElement("tr");
  if (ref == null)
    {
      Node tbody = getChildElement("tbody");
      if (tbody == null)
        {
          tbody = getOwnerDocument().createElement("tfoot");
          appendChild(tbody);
        }
      tbody.appendChild(row);
    }
  else
    {
      ref.getParentNode().insertBefore(row, ref);
    }
  return (HTMLElement) row;
}
项目:javify    文件:DomHTMLTableRowElement.java   
public HTMLElement insertCell(int index)
{
  Node ref = getCell(index);
  Node cell = getOwnerDocument().createElement("td");
  if (ref == null)
    {
      appendChild(cell);
    }
  else
    {
      insertBefore(cell, ref);
    }
  return (HTMLElement) cell;
}
项目:javify    文件:DomHTMLDocument.java   
public HTMLElement getBody()
{
  Node html = getDocumentElement();
  if (html != null)
    {
      Node body = getChildNodeByName(html, "body");
      if (body == null)
        {
          body = getChildNodeByName(html, "frameset");
        }
      return (HTMLElement) body;
    }
  return null;
}
项目:javify    文件:DomHTMLTableElement.java   
public HTMLElement createTHead()
{
  HTMLTableSectionElement ref = getTHead();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("thead");
    }
  else
    {
      return ref;
    }
}
项目:javify    文件:DomHTMLTableElement.java   
public HTMLElement createTFoot()
{
  HTMLTableSectionElement ref = getTFoot();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("tfoot");
    }
  else
    {
      return ref;
    }
}
项目:javify    文件:DomHTMLTableElement.java   
public HTMLElement createCaption()
{
  HTMLTableCaptionElement ref = getCaption();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("caption");
    }
  else
    {
      return ref;
    }
}
项目:javify    文件:DomHTMLTableSectionElement.java   
public HTMLElement insertRow(int index)
{
  Node ref = getRow(index);
  Node row = getOwnerDocument().createElement("tr");
  if (ref == null)
    {
      appendChild(row);
    }
  else
    {
      insertBefore(row, ref);
    }
  return (HTMLElement) row;
}
项目:jvm-stm    文件:DomHTMLTableRowElement.java   
public HTMLElement insertCell(int index)
{
  Node ref = getCell(index);
  Node cell = getOwnerDocument().createElement("td");
  if (ref == null)
    {
      appendChild(cell);
    }
  else
    {
      insertBefore(cell, ref);
    }
  return (HTMLElement) cell;
}
项目:jvm-stm    文件:DomHTMLDocument.java   
public HTMLElement getBody()
{
  Node html = getDocumentElement();
  if (html != null)
    {
      Node body = getChildNodeByName(html, "body");
      if (body == null)
        {
          body = getChildNodeByName(html, "frameset");
        }
      return (HTMLElement) body;
    }
  return null;
}
项目:jvm-stm    文件:DomHTMLTableElement.java   
public HTMLElement createTHead()
{
  HTMLTableSectionElement ref = getTHead();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("thead");
    }
  else
    {
      return ref;
    }
}
项目:jvm-stm    文件:DomHTMLTableElement.java   
public HTMLElement createTFoot()
{
  HTMLTableSectionElement ref = getTFoot();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("tfoot");
    }
  else
    {
      return ref;
    }
}
项目:jvm-stm    文件:DomHTMLTableElement.java   
public HTMLElement createCaption()
{
  HTMLTableCaptionElement ref = getCaption();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("caption");
    }
  else
    {
      return ref;
    }
}
项目:jvm-stm    文件:DomHTMLTableSectionElement.java   
public HTMLElement insertRow(int index)
{
  Node ref = getRow(index);
  Node row = getOwnerDocument().createElement("tr");
  if (ref == null)
    {
      appendChild(row);
    }
  else
    {
      insertBefore(row, ref);
    }
  return (HTMLElement) row;
}
项目:JamVM-PH    文件:DomHTMLTableRowElement.java   
public HTMLElement insertCell(int index)
{
  Node ref = getCell(index);
  Node cell = getOwnerDocument().createElement("td");
  if (ref == null)
    {
      appendChild(cell);
    }
  else
    {
      insertBefore(cell, ref);
    }
  return (HTMLElement) cell;
}
项目:JamVM-PH    文件:DomHTMLDocument.java   
public HTMLElement getBody()
{
  Node html = getDocumentElement();
  if (html != null)
    {
      Node body = getChildNodeByName(html, "body");
      if (body == null)
        {
          body = getChildNodeByName(html, "frameset");
        }
      return (HTMLElement) body;
    }
  return null;
}
项目:JamVM-PH    文件:DomHTMLTableElement.java   
public HTMLElement createTHead()
{
  HTMLTableSectionElement ref = getTHead();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("thead");
    }
  else
    {
      return ref;
    }
}
项目:JamVM-PH    文件:DomHTMLTableElement.java   
public HTMLElement createTFoot()
{
  HTMLTableSectionElement ref = getTFoot();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("tfoot");
    }
  else
    {
      return ref;
    }
}
项目:JamVM-PH    文件:DomHTMLTableElement.java   
public HTMLElement createCaption()
{
  HTMLTableCaptionElement ref = getCaption();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("caption");
    }
  else
    {
      return ref;
    }
}
项目:JamVM-PH    文件:DomHTMLTableSectionElement.java   
public HTMLElement insertRow(int index)
{
  Node ref = getRow(index);
  Node row = getOwnerDocument().createElement("tr");
  if (ref == null)
    {
      appendChild(row);
    }
  else
    {
      insertBefore(row, ref);
    }
  return (HTMLElement) row;
}
项目:classpath    文件:DomHTMLTableRowElement.java   
public HTMLElement insertCell(int index)
{
  Node ref = getCell(index);
  Node cell = getOwnerDocument().createElement("td");
  if (ref == null)
    {
      appendChild(cell);
    }
  else
    {
      insertBefore(cell, ref);
    }
  return (HTMLElement) cell;
}
项目:classpath    文件:DomHTMLDocument.java   
public HTMLElement getBody()
{
  Node html = getDocumentElement();
  if (html != null)
    {
      Node body = getChildNodeByName(html, "body");
      if (body == null)
        {
          body = getChildNodeByName(html, "frameset");
        }
      return (HTMLElement) body;
    }
  return null;
}
项目:classpath    文件:DomHTMLTableElement.java   
public HTMLElement createTHead()
{
  HTMLTableSectionElement ref = getTHead();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("thead");
    }
  else
    {
      return ref;
    }
}
项目:classpath    文件:DomHTMLTableElement.java   
public HTMLElement createTFoot()
{
  HTMLTableSectionElement ref = getTFoot();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("tfoot");
    }
  else
    {
      return ref;
    }
}
项目:classpath    文件:DomHTMLTableElement.java   
public HTMLElement createCaption()
{
  HTMLTableCaptionElement ref = getCaption();
  if (ref == null)
    {
      return (HTMLElement) getOwnerDocument().createElement("caption");
    }
  else
    {
      return ref;
    }
}
项目:classpath    文件:DomHTMLTableSectionElement.java   
public HTMLElement insertRow(int index)
{
  Node ref = getRow(index);
  Node row = getOwnerDocument().createElement("tr");
  if (ref == null)
    {
      appendChild(row);
    }
  else
    {
      insertBefore(row, ref);
    }
  return (HTMLElement) row;
}
项目:javify    文件:DomHTMLSelectElement.java   
public void add(HTMLElement element, HTMLElement before)
{
  insertBefore(before, element);
}
项目:jvm-stm    文件:DomHTMLSelectElement.java   
public void add(HTMLElement element, HTMLElement before)
{
  insertBefore(before, element);
}
项目:JamVM-PH    文件:DomHTMLSelectElement.java   
public void add(HTMLElement element, HTMLElement before)
{
  insertBefore(before, element);
}
项目:classpath    文件:DomHTMLSelectElement.java   
public void add(HTMLElement element, HTMLElement before)
{
  insertBefore(before, element);
}