feat(jdk8): move files to new folder to avoid resources compiled.

This commit is contained in:
2025-09-07 15:25:52 +08:00
parent 3f0047bf6f
commit 8c35cfb1c0
17415 changed files with 217 additions and 213 deletions

View File

@@ -0,0 +1,140 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* The anchor element. See the A element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLAnchorElement extends HTMLElement {
/**
* A single character access key to give access to the form control. See
* the accesskey attribute definition in HTML 4.0.
*/
public String getAccessKey();
public void setAccessKey(String accessKey);
/**
* The character encoding of the linked resource. See the charset
* attribute definition in HTML 4.0.
*/
public String getCharset();
public void setCharset(String charset);
/**
* Comma-separated list of lengths, defining an active region geometry.
* See also <code>shape</code> for the shape of the region. See the
* coords attribute definition in HTML 4.0.
*/
public String getCoords();
public void setCoords(String coords);
/**
* The URI of the linked resource. See the href attribute definition in
* HTML 4.0.
*/
public String getHref();
public void setHref(String href);
/**
* Language code of the linked resource. See the hreflang attribute
* definition in HTML 4.0.
*/
public String getHreflang();
public void setHreflang(String hreflang);
/**
* Anchor name. See the name attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* Forward link type. See the rel attribute definition in HTML 4.0.
*/
public String getRel();
public void setRel(String rel);
/**
* Reverse link type. See the rev attribute definition in HTML 4.0.
*/
public String getRev();
public void setRev(String rev);
/**
* The shape of the active area. The coordinates are given by
* <code>coords</code> . See the shape attribute definition in HTML 4.0.
*/
public String getShape();
public void setShape(String shape);
/**
* Index that represents the element's position in the tabbing order. See
* the tabindex attribute definition in HTML 4.0.
*/
public int getTabIndex();
public void setTabIndex(int tabIndex);
/**
* Frame to render the resource in. See the target attribute definition
* in HTML 4.0.
*/
public String getTarget();
public void setTarget(String target);
/**
* Advisory content type. See the type attribute definition in HTML 4.0.
*/
public String getType();
public void setType(String type);
/**
* Removes keyboard focus from this element.
*/
public void blur();
/**
* Gives keyboard focus to this element.
*/
public void focus();
}

View File

@@ -0,0 +1,131 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* An embedded Java applet. See the APPLET element definition in HTML 4.0.
* This element is deprecated in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLAppletElement extends HTMLElement {
/**
* Aligns this object (vertically or horizontally) with respect to its
* surrounding text. See the align attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Alternate text for user agents not rendering the normal content of
* this element. See the alt attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getAlt();
public void setAlt(String alt);
/**
* Comma-separated archive list. See the archive attribute definition in
* HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getArchive();
public void setArchive(String archive);
/**
* Applet class file. See the code attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getCode();
public void setCode(String code);
/**
* Optional base URI for applet. See the codebase attribute definition
* in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getCodeBase();
public void setCodeBase(String codeBase);
/**
* Override height. See the height attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getHeight();
public void setHeight(String height);
/**
* Horizontal space to the left and right of this image, applet, or
* object. See the hspace attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getHspace();
public void setHspace(String hspace);
/**
* The name of the applet. See the name attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* Serialized applet file. See the object attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getObject();
public void setObject(String object);
/**
* Vertical space above and below this image, applet, or object. See the
* vspace attribute definition in HTML 4.0. This attribute is deprecated
* in HTML 4.0.
*/
public String getVspace();
public void setVspace(String vspace);
/**
* Override width. See the width attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getWidth();
public void setWidth(String width);
}

View File

@@ -0,0 +1,107 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Client-side image map area definition. See the AREA element definition in
* HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLAreaElement extends HTMLElement {
/**
* A single character access key to give access to the form control. See
* the accesskey attribute definition in HTML 4.0.
*/
public String getAccessKey();
public void setAccessKey(String accessKey);
/**
* Alternate text for user agents not rendering the normal content of
* this element. See the alt attribute definition in HTML 4.0.
*/
public String getAlt();
public void setAlt(String alt);
/**
* Comma-separated list of lengths, defining an active region geometry.
* See also <code>shape</code> for the shape of the region. See the
* coords attribute definition in HTML 4.0.
*/
public String getCoords();
public void setCoords(String coords);
/**
* The URI of the linked resource. See the href attribute definition in
* HTML 4.0.
*/
public String getHref();
public void setHref(String href);
/**
* Specifies that this area is inactive, i.e., has no associated action.
* See the nohref attribute definition in HTML 4.0.
*/
public boolean getNoHref();
public void setNoHref(boolean noHref);
/**
* The shape of the active area. The coordinates are given by
* <code>coords</code> . See the shape attribute definition in HTML 4.0.
*/
public String getShape();
public void setShape(String shape);
/**
* Index that represents the element's position in the tabbing order. See
* the tabindex attribute definition in HTML 4.0.
*/
public int getTabIndex();
public void setTabIndex(int tabIndex);
/**
* Frame to render the resource in. See the target attribute definition
* in HTML 4.0.
*/
public String getTarget();
public void setTarget(String target);
}

View File

@@ -0,0 +1,56 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Force a line break. See the BR element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLBRElement extends HTMLElement {
/**
* Control flow of text around floats. See the clear attribute definition
* in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getClear();
public void setClear(String clear);
}

View File

@@ -0,0 +1,62 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Document base URI. See the BASE element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLBaseElement extends HTMLElement {
/**
* The base URI. See the href attribute definition in HTML 4.0.
*/
public String getHref();
public void setHref(String href);
/**
* The default target frame. See the target attribute definition in HTML
* 4.0.
*/
public String getTarget();
public void setTarget(String target);
}

View File

@@ -0,0 +1,71 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Base font. See the BASEFONT element definition in HTML 4.0. This element
* is deprecated in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLBaseFontElement extends HTMLElement {
/**
* Font color. See the color attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getColor();
public void setColor(String color);
/**
* Font face identifier. See the face attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getFace();
public void setFace(String face);
/**
* Font size. See the size attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getSize();
public void setSize(String size);
}

View File

@@ -0,0 +1,97 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* The HTML document body. This element is always present in the DOM API,
* even if the tags are not present in the source document. See the BODY
* element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLBodyElement extends HTMLElement {
/**
* Color of active links (after mouse-button down, but before
* mouse-button up). See the alink attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getALink();
public void setALink(String aLink);
/**
* URI of the background texture tile image. See the background
* attribute definition in HTML 4.0. This attribute is deprecated in HTML
* 4.0.
*/
public String getBackground();
public void setBackground(String background);
/**
* Document background color. See the bgcolor attribute definition in
* HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getBgColor();
public void setBgColor(String bgColor);
/**
* Color of links that are not active and unvisited. See the link
* attribute definition in HTML 4.0. This attribute is deprecated in HTML
* 4.0.
*/
public String getLink();
public void setLink(String link);
/**
* Document text color. See the text attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getText();
public void setText(String text);
/**
* Color of links that have been visited by the user. See the vlink
* attribute definition in HTML 4.0. This attribute is deprecated in HTML
* 4.0.
*/
public String getVLink();
public void setVLink(String vLink);
}

View File

@@ -0,0 +1,95 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Push button. See the BUTTON element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLButtonElement extends HTMLElement {
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* A single character access key to give access to the form control. See
* the accesskey attribute definition in HTML 4.0.
*/
public String getAccessKey();
public void setAccessKey(String accessKey);
/**
* The control is unavailable in this context. See the disabled
* attribute definition in HTML 4.0.
*/
public boolean getDisabled();
public void setDisabled(boolean disabled);
/**
* Form control or object name when submitted with a form. See the name
* attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* Index that represents the element's position in the tabbing order. See
* the tabindex attribute definition in HTML 4.0.
*/
public int getTabIndex();
public void setTabIndex(int tabIndex);
/**
* The type of button. See the type attribute definition in HTML 4.0.
*/
public String getType();
/**
* The current form control value. See the value attribute definition in
* HTML 4.0.
*/
public String getValue();
public void setValue(String value);
}

View File

@@ -0,0 +1,85 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.Node;
/**
* An <code>HTMLCollection</code> is a list of nodes. An individual node may
* be accessed by either ordinal index or the node's<code>name</code> or
* <code>id</code> attributes. Note: Collections in the HTML DOM are assumed
* to be live meaning that they are automatically updated when the
* underlying document is changed.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLCollection {
/**
* This attribute specifies the length or size of the list.
*/
public int getLength();
/**
* This method retrieves a node specified by ordinal index. Nodes are
* numbered in tree order (depth-first traversal order).
* @param index The index of the node to be fetched. The index origin is
* 0.
* @return The <code>Node</code> at the corresponding position upon
* success. A value of <code>null</code> is returned if the index is
* out of range.
*/
public Node item(int index);
/**
* This method retrieves a <code>Node</code> using a name. It first
* searches for a <code>Node</code> with a matching <code>id</code>
* attribute. If it doesn't find one, it then searches for a
* <code>Node</code> with a matching <code>name</code> attribute, but
* only on those elements that are allowed a name attribute.
* @param name The name of the <code>Node</code> to be fetched.
* @return The <code>Node</code> with a <code>name</code> or
* <code>id</code> attribute whose value corresponds to the specified
* string. Upon failure (e.g., no node with this name exists), returns
* <code>null</code> .
*/
public Node namedItem(String name);
}

View File

@@ -0,0 +1,56 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Definition list. See the DL element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLDListElement extends HTMLElement {
/**
* Reduce spacing between list items. See the compact attribute
* definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public boolean getCompact();
public void setCompact(boolean compact);
}

View File

@@ -0,0 +1,63 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.DOMImplementation;
/**
* The <code>HTMLDOMImplementation</code> interface extends the
* <code>DOMImplementation</code> interface with a method for creating an
* HTML document instance.
* @since DOM Level 2
*/
public interface HTMLDOMImplementation extends DOMImplementation {
/**
* Creates an <code>HTMLDocument</code> object with the minimal tree made
* of the following elements: <code>HTML</code> , <code>HEAD</code> ,
* <code>TITLE</code> , and <code>BODY</code> .
* @param title The title of the document to be set as the content of the
* <code>TITLE</code> element, through a child <code>Text</code> node.
* @return A new <code>HTMLDocument</code> object.
*/
public HTMLDocument createHTMLDocument(String title);
}

View File

@@ -0,0 +1,57 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Directory list. See the DIR element definition in HTML 4.0. This element
* is deprecated in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLDirectoryElement extends HTMLElement {
/**
* Reduce spacing between list items. See the compact attribute
* definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public boolean getCompact();
public void setCompact(boolean compact);
}

View File

@@ -0,0 +1,56 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Generic block container. See the DIV element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLDivElement extends HTMLElement {
/**
* Horizontal text alignment. See the align attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
}

View File

@@ -0,0 +1,183 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
/**
* An <code>HTMLDocument</code> is the root of the HTML hierarchy and holds
* the entire content. Besides providing access to the hierarchy, it also
* provides some convenience methods for accessing certain sets of
* information from the document.
* <p> The following properties have been deprecated in favor of the
* corresponding ones for the <code>BODY</code> element: alinkColor background
* bgColor fgColor linkColor vlinkColor In DOM Level 2, the method
* <code>getElementById</code> is inherited from the <code>Document</code>
* interface where it was moved.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLDocument extends Document {
/**
* The title of a document as specified by the <code>TITLE</code> element
* in the head of the document.
*/
public String getTitle();
public void setTitle(String title);
/**
* Returns the URI of the page that linked to this page. The value is an
* empty string if the user navigated to the page directly (not through a
* link, but, for example, via a bookmark).
*/
public String getReferrer();
/**
* The domain name of the server that served the document, or
* <code>null</code> if the server cannot be identified by a domain name.
*/
public String getDomain();
/**
* The complete URI of the document.
*/
public String getURL();
/**
* The element that contains the content for the document. In documents
* with <code>BODY</code> contents, returns the <code>BODY</code>
* element. In frameset documents, this returns the outermost
* <code>FRAMESET</code> element.
*/
public HTMLElement getBody();
public void setBody(HTMLElement body);
/**
* A collection of all the <code>IMG</code> elements in a document. The
* behavior is limited to <code>IMG</code> elements for backwards
* compatibility.
*/
public HTMLCollection getImages();
/**
* A collection of all the <code>OBJECT</code> elements that include
* applets and <code>APPLET</code> ( deprecated ) elements in a document.
*/
public HTMLCollection getApplets();
/**
* A collection of all <code>AREA</code> elements and anchor (
* <code>A</code> ) elements in a document with a value for the
* <code>href</code> attribute.
*/
public HTMLCollection getLinks();
/**
* A collection of all the forms of a document.
*/
public HTMLCollection getForms();
/**
* A collection of all the anchor (<code>A</code> ) elements in a document
* with a value for the <code>name</code> attribute. Note. For reasons
* of backwards compatibility, the returned set of anchors only contains
* those anchors created with the <code>name</code> attribute, not those
* created with the <code>id</code> attribute.
*/
public HTMLCollection getAnchors();
/**
* The cookies associated with this document. If there are none, the
* value is an empty string. Otherwise, the value is a string: a
* semicolon-delimited list of "name, value" pairs for all the cookies
* associated with the page. For example,
* <code>name=value;expires=date</code> .
*/
public String getCookie();
public void setCookie(String cookie);
/**
* Note. This method and the ones following allow a user to add to or
* replace the structure model of a document using strings of unparsed
* HTML. At the time of writing alternate methods for providing similar
* functionality for both HTML and XML documents were being considered.
* The following methods may be deprecated at some point in the future in
* favor of a more general-purpose mechanism.
* <br> Open a document stream for writing. If a document exists in the
* target, this method clears it.
*/
public void open();
/**
* Closes a document stream opened by <code>open()</code> and forces
* rendering.
*/
public void close();
/**
* Write a string of text to a document stream opened by
* <code>open()</code> . The text is parsed into the document's structure
* model.
* @param text The string to be parsed into some structure in the
* document structure model.
*/
public void write(String text);
/**
* Write a string of text followed by a newline character to a document
* stream opened by <code>open()</code> . The text is parsed into the
* document's structure model.
* @param text The string to be parsed into some structure in the
* document structure model.
*/
public void writeln(String text);
/**
* Returns the (possibly empty) collection of elements whose
* <code>name</code> value is given by <code>elementName</code> .
* @param elementName The <code>name</code> attribute value for an
* element.
* @return The matching elements.
*/
public NodeList getElementsByName(String elementName);
}

View File

@@ -0,0 +1,94 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.Element;
/**
* All HTML element interfaces derive from this class. Elements that only
* expose the HTML core attributes are represented by the base
* <code>HTMLElement</code> interface. These elements are as follows: HEAD
* special: SUB, SUP, SPAN, BDO font: TT, I, B, U, S, STRIKE, BIG, SMALL
* phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBR list:
* DD, DT NOFRAMES, NOSCRIPT ADDRESS, CENTER The <code>style</code> attribute
* of an HTML element is accessible through the
* <code>ElementCSSInlineStyle</code> interface which is defined in the .
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLElement extends Element {
/**
* The element's identifier. See the id attribute definition in HTML 4.0.
*/
public String getId();
public void setId(String id);
/**
* The element's advisory title. See the title attribute definition in
* HTML 4.0.
*/
public String getTitle();
public void setTitle(String title);
/**
* Language code defined in RFC 1766. See the lang attribute definition
* in HTML 4.0.
*/
public String getLang();
public void setLang(String lang);
/**
* Specifies the base direction of directionally neutral text and the
* directionality of tables. See the dir attribute definition in HTML
* 4.0.
*/
public String getDir();
public void setDir(String dir);
/**
* The class attribute of the element. This attribute has been renamed
* due to conflicts with the "class" keyword exposed by many languages.
* See the class attribute definition in HTML 4.0.
*/
public String getClassName();
public void setClassName(String className);
}

View File

@@ -0,0 +1,56 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Organizes form controls into logical groups. See the FIELDSET element
* definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLFieldSetElement extends HTMLElement {
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
}

View File

@@ -0,0 +1,71 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Local change to font. See the FONT element definition in HTML 4.0. This
* element is deprecated in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLFontElement extends HTMLElement {
/**
* Font color. See the color attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getColor();
public void setColor(String color);
/**
* Font face identifier. See the face attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getFace();
public void setFace(String face);
/**
* Font size. See the size attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getSize();
public void setSize(String size);
}

View File

@@ -0,0 +1,115 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* The <code>FORM</code> element encompasses behavior similar to a collection
* and an element. It provides direct access to the contained input elements
* as well as the attributes of the form element. See the FORM element
* definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLFormElement extends HTMLElement {
/**
* Returns a collection of all control elements in the form.
*/
public HTMLCollection getElements();
/**
* The number of form controls in the form.
*/
public int getLength();
/**
* Names the form.
*/
public String getName();
public void setName(String name);
/**
* List of character sets supported by the server. See the
* accept-charset attribute definition in HTML 4.0.
*/
public String getAcceptCharset();
public void setAcceptCharset(String acceptCharset);
/**
* Server-side form handler. See the action attribute definition in HTML
* 4.0.
*/
public String getAction();
public void setAction(String action);
/**
* The content type of the submitted form, generally
* "application/x-www-form-urlencoded". See the enctype attribute
* definition in HTML 4.0.
*/
public String getEnctype();
public void setEnctype(String enctype);
/**
* HTTP method used to submit form. See the method attribute definition
* in HTML 4.0.
*/
public String getMethod();
public void setMethod(String method);
/**
* Frame to render the resource in. See the target attribute definition
* in HTML 4.0.
*/
public String getTarget();
public void setTarget(String target);
/**
* Submits the form. It performs the same action as a submit button.
*/
public void submit();
/**
* Restores a form element's default values. It performs the same action
* as a reset button.
*/
public void reset();
}

View File

@@ -0,0 +1,114 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.Document;
/**
* Create a frame. See the FRAME element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLFrameElement extends HTMLElement {
/**
* Request frame borders. See the frameborder attribute definition in
* HTML 4.0.
*/
public String getFrameBorder();
public void setFrameBorder(String frameBorder);
/**
* URI designating a long description of this image or frame. See the
* longdesc attribute definition in HTML 4.0.
*/
public String getLongDesc();
public void setLongDesc(String longDesc);
/**
* Frame margin height, in pixels. See the marginheight attribute
* definition in HTML 4.0.
*/
public String getMarginHeight();
public void setMarginHeight(String marginHeight);
/**
* Frame margin width, in pixels. See the marginwidth attribute
* definition in HTML 4.0.
*/
public String getMarginWidth();
public void setMarginWidth(String marginWidth);
/**
* The frame name (object of the <code>target</code> attribute). See the
* name attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* When true, forbid user from resizing frame. See the noresize
* attribute definition in HTML 4.0.
*/
public boolean getNoResize();
public void setNoResize(boolean noResize);
/**
* Specify whether or not the frame should have scrollbars. See the
* scrolling attribute definition in HTML 4.0.
*/
public String getScrolling();
public void setScrolling(String scrolling);
/**
* A URI designating the initial frame contents. See the src attribute
* definition in HTML 4.0.
*/
public String getSrc();
public void setSrc(String src);
/**
* The document this frame contains, if there is any and it is available,
* or <code>null</code> otherwise.
* @since DOM Level 2
*/
public Document getContentDocument();
}

View File

@@ -0,0 +1,63 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Create a grid of frames. See the FRAMESET element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLFrameSetElement extends HTMLElement {
/**
* The number of columns of frames in the frameset. See the cols
* attribute definition in HTML 4.0.
*/
public String getCols();
public void setCols(String cols);
/**
* The number of rows of frames in the frameset. See the rows attribute
* definition in HTML 4.0.
*/
public String getRows();
public void setRows(String rows);
}

View File

@@ -0,0 +1,78 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Create a horizontal rule. See the HR element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLHRElement extends HTMLElement {
/**
* Align the rule on the page. See the align attribute definition in
* HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Indicates to the user agent that there should be no shading in the
* rendering of this element. See the noshade attribute definition in
* HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public boolean getNoShade();
public void setNoShade(boolean noShade);
/**
* The height of the rule. See the size attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getSize();
public void setSize(String size);
/**
* The width of the rule. See the width attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getWidth();
public void setWidth(String width);
}

View File

@@ -0,0 +1,56 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Document head information. See the HEAD element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLHeadElement extends HTMLElement {
/**
* URI designating a metadata profile. See the profile attribute
* definition in HTML 4.0.
*/
public String getProfile();
public void setProfile(String profile);
}

View File

@@ -0,0 +1,57 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* For the <code>H1</code> to <code>H6</code> elements. See the H1 element
* definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLHeadingElement extends HTMLElement {
/**
* Horizontal text alignment. See the align attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
}

View File

@@ -0,0 +1,57 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Root of an HTML document. See the HTML element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLHtmlElement extends HTMLElement {
/**
* Version information about the document's DTD. See the version
* attribute definition in HTML 4.0. This attribute is deprecated in HTML
* 4.0.
*/
public String getVersion();
public void setVersion(String version);
}

View File

@@ -0,0 +1,127 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.Document;
/**
* Inline subwindows. See the IFRAME element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLIFrameElement extends HTMLElement {
/**
* Aligns this object (vertically or horizontally) with respect to its
* surrounding text. See the align attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Request frame borders. See the frameborder attribute definition in
* HTML 4.0.
*/
public String getFrameBorder();
public void setFrameBorder(String frameBorder);
/**
* Frame height. See the height attribute definition in HTML 4.0.
*/
public String getHeight();
public void setHeight(String height);
/**
* URI designating a long description of this image or frame. See the
* longdesc attribute definition in HTML 4.0.
*/
public String getLongDesc();
public void setLongDesc(String longDesc);
/**
* Frame margin height, in pixels. See the marginheight attribute
* definition in HTML 4.0.
*/
public String getMarginHeight();
public void setMarginHeight(String marginHeight);
/**
* Frame margin width, in pixels. See the marginwidth attribute
* definition in HTML 4.0.
*/
public String getMarginWidth();
public void setMarginWidth(String marginWidth);
/**
* The frame name (object of the <code>target</code> attribute). See the
* name attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* Specify whether or not the frame should have scrollbars. See the
* scrolling attribute definition in HTML 4.0.
*/
public String getScrolling();
public void setScrolling(String scrolling);
/**
* A URI designating the initial frame contents. See the src attribute
* definition in HTML 4.0.
*/
public String getSrc();
public void setSrc(String src);
/**
* Frame width. See the width attribute definition in HTML 4.0.
*/
public String getWidth();
public void setWidth(String width);
/**
* The document this frame contains, if there is any and it is available,
* or <code>null</code> otherwise.
* @since DOM Level 2
*/
public Document getContentDocument();
}

View File

@@ -0,0 +1,138 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Embedded image. See the IMG element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLImageElement extends HTMLElement {
/**
* URI designating the source of this image, for low-resolution output.
*/
public String getLowSrc();
public void setLowSrc(String lowSrc);
/**
* The name of the element (for backwards compatibility).
*/
public String getName();
public void setName(String name);
/**
* Aligns this object (vertically or horizontally) with respect to its
* surrounding text. See the align attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Alternate text for user agents not rendering the normal content of
* this element. See the alt attribute definition in HTML 4.0.
*/
public String getAlt();
public void setAlt(String alt);
/**
* Width of border around image. See the border attribute definition in
* HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getBorder();
public void setBorder(String border);
/**
* Override height. See the height attribute definition in HTML 4.0.
*/
public String getHeight();
public void setHeight(String height);
/**
* Horizontal space to the left and right of this image. See the hspace
* attribute definition in HTML 4.0. This attribute is deprecated in HTML
* 4.0.
*/
public String getHspace();
public void setHspace(String hspace);
/**
* Use server-side image map. See the ismap attribute definition in HTML
* 4.0.
*/
public boolean getIsMap();
public void setIsMap(boolean isMap);
/**
* URI designating a long description of this image or frame. See the
* longdesc attribute definition in HTML 4.0.
*/
public String getLongDesc();
public void setLongDesc(String longDesc);
/**
* URI designating the source of this image. See the src attribute
* definition in HTML 4.0.
*/
public String getSrc();
public void setSrc(String src);
/**
* Use client-side image map. See the usemap attribute definition in
* HTML 4.0.
*/
public String getUseMap();
public void setUseMap(String useMap);
/**
* Vertical space above and below this image. See the vspace attribute
* definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getVspace();
public void setVspace(String vspace);
/**
* Override width. See the width attribute definition in HTML 4.0.
*/
public String getWidth();
public void setWidth(String width);
}

View File

@@ -0,0 +1,225 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Form control. Note. Depending upon the environment in which the page is
* being viewed, the value property may be read-only for the file upload
* input type. For the "password" input type, the actual value returned may
* be masked to prevent unauthorized use. See the INPUT element definition
* in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLInputElement extends HTMLElement {
/**
* When the <code>type</code> attribute of the element has the value
* "Text", "File" or "Password", this represents the HTML value attribute
* of the element. The value of this attribute does not change if the
* contents of the corresponding form control, in an interactive user
* agent, changes. Changing this attribute, however, resets the contents
* of the form control. See the value attribute definition in HTML 4.0.
*/
public String getDefaultValue();
public void setDefaultValue(String defaultValue);
/**
* When <code>type</code> has the value "Radio" or "Checkbox", this
* represents the HTML checked attribute of the element. The value of
* this attribute does not change if the state of the corresponding form
* control, in an interactive user agent, changes. Changes to this
* attribute, however, resets the state of the form control. See the
* checked attribute definition in HTML 4.0.
*/
public boolean getDefaultChecked();
public void setDefaultChecked(boolean defaultChecked);
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* A comma-separated list of content types that a server processing this
* form will handle correctly. See the accept attribute definition in
* HTML 4.0.
*/
public String getAccept();
public void setAccept(String accept);
/**
* A single character access key to give access to the form control. See
* the accesskey attribute definition in HTML 4.0.
*/
public String getAccessKey();
public void setAccessKey(String accessKey);
/**
* Aligns this object (vertically or horizontally) with respect to its
* surrounding text. See the align attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Alternate text for user agents not rendering the normal content of
* this element. See the alt attribute definition in HTML 4.0.
*/
public String getAlt();
public void setAlt(String alt);
/**
* When the <code>type</code> attribute of the element has the value
* "Radio" or "Checkbox", this represents the current state of the form
* control, in an interactive user agent. Changes to this attribute
* change the state of the form control, but do not change the value of
* the HTML value attribute of the element.
*/
public boolean getChecked();
public void setChecked(boolean checked);
/**
* The control is unavailable in this context. See the disabled
* attribute definition in HTML 4.0.
*/
public boolean getDisabled();
public void setDisabled(boolean disabled);
/**
* Maximum number of characters for text fields, when <code>type</code>
* has the value "Text" or "Password". See the maxlength attribute
* definition in HTML 4.0.
*/
public int getMaxLength();
public void setMaxLength(int maxLength);
/**
* Form control or object name when submitted with a form. See the name
* attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* This control is read-only. Relevant only when <code>type</code> has
* the value "Text" or "Password". See the readonly attribute definition
* in HTML 4.0.
*/
public boolean getReadOnly();
public void setReadOnly(boolean readOnly);
/**
* Size information. The precise meaning is specific to each type of
* field. See the size attribute definition in HTML 4.0.
*/
public String getSize();
public void setSize(String size);
/**
* When the <code>type</code> attribute has the value "Image", this
* attribute specifies the location of the image to be used to decorate
* the graphical submit button. See the src attribute definition in HTML
* 4.0.
*/
public String getSrc();
public void setSrc(String src);
/**
* Index that represents the element's position in the tabbing order. See
* the tabindex attribute definition in HTML 4.0.
*/
public int getTabIndex();
public void setTabIndex(int tabIndex);
/**
* The type of control created. See the type attribute definition in
* HTML 4.0.
*/
public String getType();
/**
* Use client-side image map. See the usemap attribute definition in
* HTML 4.0.
*/
public String getUseMap();
public void setUseMap(String useMap);
/**
* When the <code>type</code> attribute of the element has the value
* "Text", "File" or "Password", this represents the current contents of
* the corresponding form control, in an interactive user agent. Changing
* this attribute changes the contents of the form control, but does not
* change the value of the HTML value attribute of the element. When the
* <code>type</code> attribute of the element has the value "Button",
* "Hidden", "Submit", "Reset", "Image", "Checkbox" or "Radio", this
* represents the HTML value attribute of the element. See the value
* attribute definition in HTML 4.0.
*/
public String getValue();
public void setValue(String value);
/**
* Removes keyboard focus from this element.
*/
public void blur();
/**
* Gives keyboard focus to this element.
*/
public void focus();
/**
* Select the contents of the text area. For <code>INPUT</code> elements
* whose <code>type</code> attribute has one of the following values:
* "Text", "File", or "Password".
*/
public void select();
/**
* Simulate a mouse-click. For <code>INPUT</code> elements whose
* <code>type</code> attribute has one of the following values: "Button",
* "Checkbox", "Radio", "Reset", or "Submit".
*/
public void click();
}

View File

@@ -0,0 +1,63 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* This element is used for single-line text input. See the ISINDEX element
* definition in HTML 4.0. This element is deprecated in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLIsIndexElement extends HTMLElement {
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* The prompt message. See the prompt attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getPrompt();
public void setPrompt(String prompt);
}

View File

@@ -0,0 +1,64 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* List item. See the LI element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLLIElement extends HTMLElement {
/**
* List item bullet style. See the type attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getType();
public void setType(String type);
/**
* Reset sequence number when used in <code>OL</code> . See the value
* attribute definition in HTML 4.0. This attribute is deprecated in HTML
* 4.0.
*/
public int getValue();
public void setValue(int value);
}

View File

@@ -0,0 +1,70 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Form field label text. See the LABEL element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLLabelElement extends HTMLElement {
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* A single character access key to give access to the form control. See
* the accesskey attribute definition in HTML 4.0.
*/
public String getAccessKey();
public void setAccessKey(String accessKey);
/**
* This attribute links this label with another form control by
* <code>id</code> attribute. See the for attribute definition in HTML
* 4.0.
*/
public String getHtmlFor();
public void setHtmlFor(String htmlFor);
}

View File

@@ -0,0 +1,71 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Provides a caption for a <code>FIELDSET</code> grouping. See the LEGEND
* element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLLegendElement extends HTMLElement {
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* A single character access key to give access to the form control. See
* the accesskey attribute definition in HTML 4.0.
*/
public String getAccessKey();
public void setAccessKey(String accessKey);
/**
* Text alignment relative to <code>FIELDSET</code> . See the align
* attribute definition in HTML 4.0. This attribute is deprecated in HTML
* 4.0.
*/
public String getAlign();
public void setAlign(String align);
}

View File

@@ -0,0 +1,112 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* The <code>LINK</code> element specifies a link to an external resource,
* and defines this document's relationship to that resource (or vice versa).
* See the LINK element definition in HTML 4.0 (see also the
* <code>LinkStyle</code> interface in the module).
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLLinkElement extends HTMLElement {
/**
* Enables/disables the link. This is currently only used for style sheet
* links, and may be used to activate or deactivate style sheets.
*/
public boolean getDisabled();
public void setDisabled(boolean disabled);
/**
* The character encoding of the resource being linked to. See the
* charset attribute definition in HTML 4.0.
*/
public String getCharset();
public void setCharset(String charset);
/**
* The URI of the linked resource. See the href attribute definition in
* HTML 4.0.
*/
public String getHref();
public void setHref(String href);
/**
* Language code of the linked resource. See the hreflang attribute
* definition in HTML 4.0.
*/
public String getHreflang();
public void setHreflang(String hreflang);
/**
* Designed for use with one or more target media. See the media
* attribute definition in HTML 4.0.
*/
public String getMedia();
public void setMedia(String media);
/**
* Forward link type. See the rel attribute definition in HTML 4.0.
*/
public String getRel();
public void setRel(String rel);
/**
* Reverse link type. See the rev attribute definition in HTML 4.0.
*/
public String getRev();
public void setRev(String rev);
/**
* Frame to render the resource in. See the target attribute definition
* in HTML 4.0.
*/
public String getTarget();
public void setTarget(String target);
/**
* Advisory content type. See the type attribute definition in HTML 4.0.
*/
public String getType();
public void setType(String type);
}

View File

@@ -0,0 +1,61 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Client-side image map. See the MAP element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLMapElement extends HTMLElement {
/**
* The list of areas defined for the image map.
*/
public HTMLCollection getAreas();
/**
* Names the map (for use with <code>usemap</code> ). See the name
* attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
}

View File

@@ -0,0 +1,57 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Menu list. See the MENU element definition in HTML 4.0. This element is
* deprecated in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLMenuElement extends HTMLElement {
/**
* Reduce spacing between list items. See the compact attribute
* definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public boolean getCompact();
public void setCompact(boolean compact);
}

View File

@@ -0,0 +1,77 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* This contains generic meta-information about the document. See the META
* element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLMetaElement extends HTMLElement {
/**
* Associated information. See the content attribute definition in HTML
* 4.0.
*/
public String getContent();
public void setContent(String content);
/**
* HTTP response header name. See the http-equiv attribute definition in
* HTML 4.0.
*/
public String getHttpEquiv();
public void setHttpEquiv(String httpEquiv);
/**
* Meta information name. See the name attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* Select form of content. See the scheme attribute definition in HTML
* 4.0.
*/
public String getScheme();
public void setScheme(String scheme);
}

View File

@@ -0,0 +1,64 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Notice of modification to part of a document. See the INS and DEL
* element definitions in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLModElement extends HTMLElement {
/**
* A URI designating a document that describes the reason for the change.
* See the cite attribute definition in HTML 4.0.
*/
public String getCite();
public void setCite(String cite);
/**
* The date and time of the change. See the datetime attribute definition
* in HTML 4.0.
*/
public String getDateTime();
public void setDateTime(String dateTime);
}

View File

@@ -0,0 +1,70 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Ordered list. See the OL element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLOListElement extends HTMLElement {
/**
* Reduce spacing between list items. See the compact attribute
* definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public boolean getCompact();
public void setCompact(boolean compact);
/**
* Starting sequence number. See the start attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public int getStart();
public void setStart(int start);
/**
* Numbering style. See the type attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getType();
public void setType(String type);
}

View File

@@ -0,0 +1,188 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.Document;
/**
* Generic embedded object. Note. In principle, all properties on the object
* element are read-write but in some environments some properties may be
* read-only once the underlying object is instantiated. See the OBJECT
* element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLObjectElement extends HTMLElement {
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* Applet class file. See the <code>code</code> attribute for
* HTMLAppletElement.
*/
public String getCode();
public void setCode(String code);
/**
* Aligns this object (vertically or horizontally) with respect to its
* surrounding text. See the align attribute definition in HTML 4.0.
* This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Space-separated list of archives. See the archive attribute definition
* in HTML 4.0.
*/
public String getArchive();
public void setArchive(String archive);
/**
* Width of border around the object. See the border attribute definition
* in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getBorder();
public void setBorder(String border);
/**
* Base URI for <code>classid</code> , <code>data</code> , and
* <code>archive</code> attributes. See the codebase attribute definition
* in HTML 4.0.
*/
public String getCodeBase();
public void setCodeBase(String codeBase);
/**
* Content type for data downloaded via <code>classid</code> attribute.
* See the codetype attribute definition in HTML 4.0.
*/
public String getCodeType();
public void setCodeType(String codeType);
/**
* A URI specifying the location of the object's data. See the data
* attribute definition in HTML 4.0.
*/
public String getData();
public void setData(String data);
/**
* Declare (for future reference), but do not instantiate, this object.
* See the declare attribute definition in HTML 4.0.
*/
public boolean getDeclare();
public void setDeclare(boolean declare);
/**
* Override height. See the height attribute definition in HTML 4.0.
*/
public String getHeight();
public void setHeight(String height);
/**
* Horizontal space to the left and right of this image, applet, or
* object. See the hspace attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getHspace();
public void setHspace(String hspace);
/**
* Form control or object name when submitted with a form. See the name
* attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* Message to render while loading the object. See the standby attribute
* definition in HTML 4.0.
*/
public String getStandby();
public void setStandby(String standby);
/**
* Index that represents the element's position in the tabbing order. See
* the tabindex attribute definition in HTML 4.0.
*/
public int getTabIndex();
public void setTabIndex(int tabIndex);
/**
* Content type for data downloaded via <code>data</code> attribute. See
* the type attribute definition in HTML 4.0.
*/
public String getType();
public void setType(String type);
/**
* Use client-side image map. See the usemap attribute definition in
* HTML 4.0.
*/
public String getUseMap();
public void setUseMap(String useMap);
/**
* Vertical space above and below this image, applet, or object. See the
* vspace attribute definition in HTML 4.0. This attribute is deprecated
* in HTML 4.0.
*/
public String getVspace();
public void setVspace(String vspace);
/**
* Override width. See the width attribute definition in HTML 4.0.
*/
public String getWidth();
public void setWidth(String width);
/**
* The document this object contains, if there is any and it is
* available, or <code>null</code> otherwise.
* @since DOM Level 2
*/
public Document getContentDocument();
}

View File

@@ -0,0 +1,64 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Group options together in logical subdivisions. See the OPTGROUP element
* definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLOptGroupElement extends HTMLElement {
/**
* The control is unavailable in this context. See the disabled
* attribute definition in HTML 4.0.
*/
public boolean getDisabled();
public void setDisabled(boolean disabled);
/**
* Assigns a label to this option group. See the label attribute
* definition in HTML 4.0.
*/
public String getLabel();
public void setLabel(String label);
}

View File

@@ -0,0 +1,106 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* A selectable choice. See the OPTION element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLOptionElement extends HTMLElement {
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* Represents the value of the HTML selected attribute. The value of this
* attribute does not change if the state of the corresponding form
* control, in an interactive user agent, changes. Changing
* <code>defaultSelected</code> , however, resets the state of the form
* control. See the selected attribute definition in HTML 4.0.
*/
public boolean getDefaultSelected();
public void setDefaultSelected(boolean defaultSelected);
/**
* The text contained within the option element.
*/
public String getText();
/**
* The index of this <code>OPTION</code> in its parent <code>SELECT</code>
* , starting from 0.
*/
public int getIndex();
/**
* The control is unavailable in this context. See the disabled
* attribute definition in HTML 4.0.
*/
public boolean getDisabled();
public void setDisabled(boolean disabled);
/**
* Option label for use in hierarchical menus. See the label attribute
* definition in HTML 4.0.
*/
public String getLabel();
public void setLabel(String label);
/**
* Represents the current state of the corresponding form control, in an
* interactive user agent. Changing this attribute changes the state of
* the form control, but does not change the value of the HTML selected
* attribute of the element.
*/
public boolean getSelected();
public void setSelected(boolean selected);
/**
* The current form control value. See the value attribute definition in
* HTML 4.0.
*/
public String getValue();
public void setValue(String value);
}

View File

@@ -0,0 +1,56 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Paragraphs. See the P element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLParagraphElement extends HTMLElement {
/**
* Horizontal text alignment. See the align attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
}

View File

@@ -0,0 +1,79 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Parameters fed to the <code>OBJECT</code> element. See the PARAM element
* definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLParamElement extends HTMLElement {
/**
* The name of a run-time parameter. See the name attribute definition
* in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* Content type for the <code>value</code> attribute when
* <code>valuetype</code> has the value "ref". See the type attribute
* definition in HTML 4.0.
*/
public String getType();
public void setType(String type);
/**
* The value of a run-time parameter. See the value attribute definition
* in HTML 4.0.
*/
public String getValue();
public void setValue(String value);
/**
* Information about the meaning of the <code>value</code> attribute
* value. See the valuetype attribute definition in HTML 4.0.
*/
public String getValueType();
public void setValueType(String valueType);
}

View File

@@ -0,0 +1,56 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Preformatted text. See the PRE element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLPreElement extends HTMLElement {
/**
* Fixed width for content. See the width attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public int getWidth();
public void setWidth(int width);
}

View File

@@ -0,0 +1,57 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* For the <code>Q</code> and <code>BLOCKQUOTE</code> elements. See the Q
* element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLQuoteElement extends HTMLElement {
/**
* A URI designating a source document or message. See the cite
* attribute definition in HTML 4.0.
*/
public String getCite();
public void setCite(String cite);
}

View File

@@ -0,0 +1,95 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Script statements. See the SCRIPT element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLScriptElement extends HTMLElement {
/**
* The script content of the element.
*/
public String getText();
public void setText(String text);
/**
* Reserved for future use.
*/
public String getHtmlFor();
public void setHtmlFor(String htmlFor);
/**
* Reserved for future use.
*/
public String getEvent();
public void setEvent(String event);
/**
* The character encoding of the linked resource. See the charset
* attribute definition in HTML 4.0.
*/
public String getCharset();
public void setCharset(String charset);
/**
* Indicates that the user agent can defer processing of the script. See
* the defer attribute definition in HTML 4.0.
*/
public boolean getDefer();
public void setDefer(boolean defer);
/**
* URI designating an external script. See the src attribute definition
* in HTML 4.0.
*/
public String getSrc();
public void setSrc(String src);
/**
* The content type of the script language. See the type attribute
* definition in HTML 4.0.
*/
public String getType();
public void setType(String type);
}

View File

@@ -0,0 +1,162 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.DOMException;
/**
* The select element allows the selection of an option. The contained
* options can be directly accessed through the select element as a
* collection. See the SELECT element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLSelectElement extends HTMLElement {
/**
* The type of this form control. This is the string "select-multiple"
* when the multiple attribute is <code>true</code> and the string
* "select-one" when <code>false</code> .
*/
public String getType();
/**
* The ordinal index of the selected option, starting from 0. The value
* -1 is returned if no element is selected. If multiple options are
* selected, the index of the first selected option is returned.
*/
public int getSelectedIndex();
public void setSelectedIndex(int selectedIndex);
/**
* The current form control value.
*/
public String getValue();
public void setValue(String value);
/**
* The number of options in this <code>SELECT</code> .
*/
public int getLength();
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* The collection of <code>OPTION</code> elements contained by this
* element.
*/
public HTMLCollection getOptions();
/**
* The control is unavailable in this context. See the disabled
* attribute definition in HTML 4.0.
*/
public boolean getDisabled();
public void setDisabled(boolean disabled);
/**
* If true, multiple <code>OPTION</code> elements may be selected in
* this <code>SELECT</code> . See the multiple attribute definition in
* HTML 4.0.
*/
public boolean getMultiple();
public void setMultiple(boolean multiple);
/**
* Form control or object name when submitted with a form. See the name
* attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* Number of visible rows. See the size attribute definition in HTML 4.0.
*/
public int getSize();
public void setSize(int size);
/**
* Index that represents the element's position in the tabbing order. See
* the tabindex attribute definition in HTML 4.0.
*/
public int getTabIndex();
public void setTabIndex(int tabIndex);
/**
* Add a new element to the collection of <code>OPTION</code> elements
* for this <code>SELECT</code> . This method is the equivalent of the
* <code>appendChild</code> method of the <code>Node</code> interface if
* the <code>before</code> parameter is <code>null</code> . It is
* equivalent to the <code>insertBefore</code> method on the parent of
* <code>before</code> in all other cases.
* @param element The element to add.
* @param before The element to insert before, or <code>null</code> for
* the tail of the list.
* @exception DOMException
* NOT_FOUND_ERR: Raised if <code>before</code> is not a descendant of
* the <code>SELECT</code> element.
*/
public void add(HTMLElement element,
HTMLElement before)
throws DOMException;
/**
* Remove an element from the collection of <code>OPTION</code> elements
* for this <code>SELECT</code> . Does nothing if no element has the given
* index.
* @param index The index of the item to remove, starting from 0.
*/
public void remove(int index);
/**
* Removes keyboard focus from this element.
*/
public void blur();
/**
* Gives keyboard focus to this element.
*/
public void focus();
}

View File

@@ -0,0 +1,70 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Style information. See the STYLE element definition in HTML 4.0, the
* module and the <code>LinkStyle</code> interface in the module.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLStyleElement extends HTMLElement {
/**
* Enables/disables the style sheet.
*/
public boolean getDisabled();
public void setDisabled(boolean disabled);
/**
* Designed for use with one or more target media. See the media
* attribute definition in HTML 4.0.
*/
public String getMedia();
public void setMedia(String media);
/**
* The content type pf the style sheet language. See the type attribute
* definition in HTML 4.0.
*/
public String getType();
public void setType(String type);
}

View File

@@ -0,0 +1,56 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Table caption See the CAPTION element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLTableCaptionElement extends HTMLElement {
/**
* Caption alignment with respect to the table. See the align attribute
* definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
}

View File

@@ -0,0 +1,154 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* The object used to represent the <code>TH</code> and <code>TD</code>
* elements. See the TD element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLTableCellElement extends HTMLElement {
/**
* The index of this cell in the row, starting from 0. This index is in
* document tree order and not display order.
*/
public int getCellIndex();
/**
* Abbreviation for header cells. See the abbr attribute definition in
* HTML 4.0.
*/
public String getAbbr();
public void setAbbr(String abbr);
/**
* Horizontal alignment of data in cell. See the align attribute
* definition in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Names group of related headers. See the axis attribute definition in
* HTML 4.0.
*/
public String getAxis();
public void setAxis(String axis);
/**
* Cell background color. See the bgcolor attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getBgColor();
public void setBgColor(String bgColor);
/**
* Alignment character for cells in a column. See the char attribute
* definition in HTML 4.0.
*/
public String getCh();
public void setCh(String ch);
/**
* Offset of alignment character. See the charoff attribute definition
* in HTML 4.0.
*/
public String getChOff();
public void setChOff(String chOff);
/**
* Number of columns spanned by cell. See the colspan attribute
* definition in HTML 4.0.
*/
public int getColSpan();
public void setColSpan(int colSpan);
/**
* List of <code>id</code> attribute values for header cells. See the
* headers attribute definition in HTML 4.0.
*/
public String getHeaders();
public void setHeaders(String headers);
/**
* Cell height. See the height attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getHeight();
public void setHeight(String height);
/**
* Suppress word wrapping. See the nowrap attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public boolean getNoWrap();
public void setNoWrap(boolean noWrap);
/**
* Number of rows spanned by cell. See the rowspan attribute definition
* in HTML 4.0.
*/
public int getRowSpan();
public void setRowSpan(int rowSpan);
/**
* Scope covered by header cells. See the scope attribute definition in
* HTML 4.0.
*/
public String getScope();
public void setScope(String scope);
/**
* Vertical alignment of data in cell. See the valign attribute
* definition in HTML 4.0.
*/
public String getVAlign();
public void setVAlign(String vAlign);
/**
* Cell width. See the width attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getWidth();
public void setWidth(String width);
}

View File

@@ -0,0 +1,91 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Regroups the <code>COL</code> and <code>COLGROUP</code> elements. See the
* COL element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLTableColElement extends HTMLElement {
/**
* Horizontal alignment of cell data in column. See the align attribute
* definition in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Alignment character for cells in a column. See the char attribute
* definition in HTML 4.0.
*/
public String getCh();
public void setCh(String ch);
/**
* Offset of alignment character. See the charoff attribute definition
* in HTML 4.0.
*/
public String getChOff();
public void setChOff(String chOff);
/**
* Indicates the number of columns in a group or affected by a grouping.
* See the span attribute definition in HTML 4.0.
*/
public int getSpan();
public void setSpan(int span);
/**
* Vertical alignment of cell data in column. See the valign attribute
* definition in HTML 4.0.
*/
public String getVAlign();
public void setVAlign(String vAlign);
/**
* Default column width. See the width attribute definition in HTML 4.0.
*/
public String getWidth();
public void setWidth(String width);
}

View File

@@ -0,0 +1,217 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.DOMException;
/**
* The create* and delete* methods on the table allow authors to construct
* and modify tables. HTML 4.0 specifies that only one of each of the
* <code>CAPTION</code> , <code>THEAD</code> , and <code>TFOOT</code>
* elements may exist in a table. Therefore, if one exists, and the
* createTHead() or createTFoot() method is called, the method returns the
* existing THead or TFoot element. See the TABLE element definition in HTML
* 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLTableElement extends HTMLElement {
/**
* Returns the table's <code>CAPTION</code> , or void if none exists.
*/
public HTMLTableCaptionElement getCaption();
public void setCaption(HTMLTableCaptionElement caption);
/**
* Returns the table's <code>THEAD</code> , or <code>null</code> if none
* exists.
*/
public HTMLTableSectionElement getTHead();
public void setTHead(HTMLTableSectionElement tHead);
/**
* Returns the table's <code>TFOOT</code> , or <code>null</code> if none
* exists.
*/
public HTMLTableSectionElement getTFoot();
public void setTFoot(HTMLTableSectionElement tFoot);
/**
* Returns a collection of all the rows in the table, including all in
* <code>THEAD</code> , <code>TFOOT</code> , all <code>TBODY</code>
* elements.
*/
public HTMLCollection getRows();
/**
* Returns a collection of the defined table bodies.
*/
public HTMLCollection getTBodies();
/**
* Specifies the table's position with respect to the rest of the
* document. See the align attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Cell background color. See the bgcolor attribute definition in HTML
* 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getBgColor();
public void setBgColor(String bgColor);
/**
* The width of the border around the table. See the border attribute
* definition in HTML 4.0.
*/
public String getBorder();
public void setBorder(String border);
/**
* Specifies the horizontal and vertical space between cell content and
* cell borders. See the cellpadding attribute definition in HTML 4.0.
*/
public String getCellPadding();
public void setCellPadding(String cellPadding);
/**
* Specifies the horizontal and vertical separation between cells. See
* the cellspacing attribute definition in HTML 4.0.
*/
public String getCellSpacing();
public void setCellSpacing(String cellSpacing);
/**
* Specifies which external table borders to render. See the frame
* attribute definition in HTML 4.0.
*/
public String getFrame();
public void setFrame(String frame);
/**
* Specifies which internal table borders to render. See the rules
* attribute definition in HTML 4.0.
*/
public String getRules();
public void setRules(String rules);
/**
* Description about the purpose or structure of a table. See the
* summary attribute definition in HTML 4.0.
*/
public String getSummary();
public void setSummary(String summary);
/**
* Specifies the desired table width. See the width attribute definition
* in HTML 4.0.
*/
public String getWidth();
public void setWidth(String width);
/**
* Create a table header row or return an existing one.
* @return A new table header element (<code>THEAD</code> ).
*/
public HTMLElement createTHead();
/**
* Delete the header from the table, if one exists.
*/
public void deleteTHead();
/**
* Create a table footer row or return an existing one.
* @return A footer element (<code>TFOOT</code> ).
*/
public HTMLElement createTFoot();
/**
* Delete the footer from the table, if one exists.
*/
public void deleteTFoot();
/**
* Create a new table caption object or return an existing one.
* @return A <code>CAPTION</code> element.
*/
public HTMLElement createCaption();
/**
* Delete the table caption, if one exists.
*/
public void deleteCaption();
/**
* Insert a new empty row in the table. The new row is inserted
* immediately before and in the same section as the current
* <code>index</code> th row in the table. If <code>index</code> is equal
* to the number of rows, the new row is appended. In addition, when the
* table is empty the row is inserted into a <code>TBODY</code> which is
* created and inserted into the table. Note. A table row cannot be empty
* according to HTML 4.0 Recommendation.
* @param index The row number where to insert a new row. This index
* starts from 0 and is relative to all the rows contained inside the
* table, regardless of section parentage.
* @return The newly created row.
* @exception DOMException
* INDEX_SIZE_ERR: Raised if the specified index is greater than the
* number of rows or if the index is negative.
*/
public HTMLElement insertRow(int index)
throws DOMException;
/**
* Delete a table row.
* @param index The index of the row to be deleted. This index starts
* from 0 and is relative to all the rows contained inside the table,
* regardless of section parentage.
* @exception DOMException
* INDEX_SIZE_ERR: Raised if the specified index is greater than or
* equal to the number of rows or if the index is negative.
*/
public void deleteRow(int index)
throws DOMException;
}

View File

@@ -0,0 +1,131 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.DOMException;
/**
* A row in a table. See the TR element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLTableRowElement extends HTMLElement {
/**
* The index of this row, relative to the entire table, starting from 0.
* This is in document tree order and not display order. The
* <code>rowIndex</code> does not take into account sections (
* <code>THEAD</code> , <code>TFOOT</code> , or <code>TBODY</code> )
* within the table.
*/
public int getRowIndex();
/**
* The index of this row, relative to the current section (
* <code>THEAD</code> , <code>TFOOT</code> , or <code>TBODY</code> ),
* starting from 0.
*/
public int getSectionRowIndex();
/**
* The collection of cells in this row.
*/
public HTMLCollection getCells();
/**
* Horizontal alignment of data within cells of this row. See the align
* attribute definition in HTML 4.0.
*/
public String getAlign();
public void setAlign(String align);
/**
* Background color for rows. See the bgcolor attribute definition in
* HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public String getBgColor();
public void setBgColor(String bgColor);
/**
* Alignment character for cells in a column. See the char attribute
* definition in HTML 4.0.
*/
public String getCh();
public void setCh(String ch);
/**
* Offset of alignment character. See the charoff attribute definition
* in HTML 4.0.
*/
public String getChOff();
public void setChOff(String chOff);
/**
* Vertical alignment of data within cells of this row. See the valign
* attribute definition in HTML 4.0.
*/
public String getVAlign();
public void setVAlign(String vAlign);
/**
* Insert an empty <code>TD</code> cell into this row. If
* <code>index</code> is equal to the number of cells, the new cell is
* appended
* @param index The place to insert the cell, starting from 0.
* @return The newly created cell.
* @exception DOMException
* INDEX_SIZE_ERR: Raised if the specified <code>index</code> is
* greater than the number of cells or if the index is negative.
*/
public HTMLElement insertCell(int index)
throws DOMException;
/**
* Delete a cell from the current row.
* @param index The index of the cell to delete, starting from 0.
* @exception DOMException
* INDEX_SIZE_ERR: Raised if the specified <code>index</code> is
* greater than or equal to the number of cells or if the index is
* negative.
*/
public void deleteCell(int index)
throws DOMException;
}

View File

@@ -0,0 +1,113 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
import org.w3c.dom.DOMException;
/**
* The <code>THEAD</code> , <code>TFOOT</code> , and <code>TBODY</code>
* elements.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLTableSectionElement extends HTMLElement {
/**
* Horizontal alignment of data in cells. See the <code>align</code>
* attribute for HTMLTheadElement for details.
*/
public String getAlign();
public void setAlign(String align);
/**
* Alignment character for cells in a column. See the char attribute
* definition in HTML 4.0.
*/
public String getCh();
public void setCh(String ch);
/**
* Offset of alignment character. See the charoff attribute definition
* in HTML 4.0.
*/
public String getChOff();
public void setChOff(String chOff);
/**
* Vertical alignment of data in cells. See the <code>valign</code>
* attribute for HTMLTheadElement for details.
*/
public String getVAlign();
public void setVAlign(String vAlign);
/**
* The collection of rows in this table section.
*/
public HTMLCollection getRows();
/**
* Insert a row into this section. The new row is inserted immediately
* before the current <code>index</code> th row in this section. If
* <code>index</code> is equal to the number of rows in this section, the
* new row is appended.
* @param index The row number where to insert a new row. This index
* starts from 0 and is relative only to the rows contained inside this
* section, not all the rows in the table.
* @return The newly created row.
* @exception DOMException
* INDEX_SIZE_ERR: Raised if the specified index is greater than the
* number of rows of if the index is neagative.
*/
public HTMLElement insertRow(int index)
throws DOMException;
/**
* Delete a row from this section.
* @param index The index of the row to be deleted. This index starts
* from 0 and is relative only to the rows contained inside this
* section, not all the rows in the table.
* @exception DOMException
* INDEX_SIZE_ERR: Raised if the specified index is greater than or
* equal to the number of rows or if the index is negative.
*/
public void deleteRow(int index)
throws DOMException;
}

View File

@@ -0,0 +1,142 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Multi-line text field. See the TEXTAREA element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLTextAreaElement extends HTMLElement {
/**
* Represents the contents of the element. The value of this attribute
* does not change if the contents of the corresponding form control, in
* an interactive user agent, changes. Changing this attribute, however,
* resets the contents of the form control.
*/
public String getDefaultValue();
public void setDefaultValue(String defaultValue);
/**
* Returns the <code>FORM</code> element containing this control. Returns
* <code>null</code> if this control is not within the context of a form.
*/
public HTMLFormElement getForm();
/**
* A single character access key to give access to the form control. See
* the accesskey attribute definition in HTML 4.0.
*/
public String getAccessKey();
public void setAccessKey(String accessKey);
/**
* Width of control (in characters). See the cols attribute definition
* in HTML 4.0.
*/
public int getCols();
public void setCols(int cols);
/**
* The control is unavailable in this context. See the disabled
* attribute definition in HTML 4.0.
*/
public boolean getDisabled();
public void setDisabled(boolean disabled);
/**
* Form control or object name when submitted with a form. See the name
* attribute definition in HTML 4.0.
*/
public String getName();
public void setName(String name);
/**
* This control is read-only. See the readonly attribute definition in
* HTML 4.0.
*/
public boolean getReadOnly();
public void setReadOnly(boolean readOnly);
/**
* Number of text rows. See the rows attribute definition in HTML 4.0.
*/
public int getRows();
public void setRows(int rows);
/**
* Index that represents the element's position in the tabbing order. See
* the tabindex attribute definition in HTML 4.0.
*/
public int getTabIndex();
public void setTabIndex(int tabIndex);
/**
* The type of this form control. This the string "textarea".
*/
public String getType();
/**
* Represents the current contents of the corresponding form control, in
* an interactive user agent. Changing this attribute changes the
* contents of the form control, but does not change the contents of the
* element. If the entirety of the data can not fit into a single
* <code>DOMString</code> , the implementation may truncate the data.
*/
public String getValue();
public void setValue(String value);
/**
* Removes keyboard focus from this element.
*/
public void blur();
/**
* Gives keyboard focus to this element.
*/
public void focus();
/**
* Select the contents of the <code>TEXTAREA</code> .
*/
public void select();
}

View File

@@ -0,0 +1,55 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* The document title. See the TITLE element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLTitleElement extends HTMLElement {
/**
* The specified title as a string.
*/
public String getText();
public void setText(String text);
}

View File

@@ -0,0 +1,63 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* This file is available under and governed by the GNU General Public
* License version 2 only, as published by the Free Software Foundation.
* However, the following notice accompanied the original version of this
* file and, per its terms, should not be removed:
*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
* details.
*/
package org.w3c.dom.html;
/**
* Unordered list. See the UL element definition in HTML 4.0.
* <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
*/
public interface HTMLUListElement extends HTMLElement {
/**
* Reduce spacing between list items. See the compact attribute
* definition in HTML 4.0. This attribute is deprecated in HTML 4.0.
*/
public boolean getCompact();
public void setCompact(boolean compact);
/**
* Bullet style. See the type attribute definition in HTML 4.0. This
* attribute is deprecated in HTML 4.0.
*/
public String getType();
public void setType(String type);
}