JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host.html

Class HTMLTableElement

    • Constructor Detail

      • HTMLTableElement

        public HTMLTableElement()
    • Method Detail

      • getCaption

        public HtmlUnitScriptable getCaption()
        Returns the table's caption element, or null if none exists. If more than one caption is declared in the table, this method returns the first one.
        Returns:
        the table's caption element
      • setCaption

        public void setCaption(Object o)
        Sets the caption.
        Parameters:
        o - the caption
      • getTFoot

        public HtmlUnitScriptable getTFoot()
        Returns the table's tfoot element, or null if none exists. If more than one tfoot is declared in the table, this method returns the first one.
        Returns:
        the table's tfoot element
      • setTFoot

        public void setTFoot(Object o)
        Sets the tFoot.
        Parameters:
        o - the tFoot
      • getTHead

        public HtmlUnitScriptable getTHead()
        Returns the table's thead element, or null if none exists. If more than one thead is declared in the table, this method returns the first one.
        Returns:
        the table's thead element
      • setTHead

        public void setTHead(Object o)
        Sets the tHead.
        Parameters:
        o - the tHead
      • getTBodies

        public HtmlUnitScriptable getTBodies()
        Returns the tbody's in the table.
        Returns:
        the tbody's in the table
      • createCaption

        public HtmlUnitScriptable createCaption()
        If this table does not have a caption, this method creates an empty table caption, adds it to the table and then returns it. If one or more captions already exist, this method returns the first existing caption.
        Returns:
        a newly added caption if no caption exists, or the first existing caption
        See Also:
        MSDN Documentation
      • createTFoot

        public HtmlUnitScriptable createTFoot()
        If this table does not have a tfoot element, this method creates an empty tfoot element, adds it to the table and then returns it. If this table already has a tfoot element, this method returns the existing tfoot element.
        Returns:
        a newly added caption if no caption exists, or the first existing caption
        See Also:
        MSDN Documentation
      • createTBody

        public HtmlUnitScriptable createTBody()
        If this table does not have a tbody element, this method creates an empty tbody element, adds it to the table and then returns it. If this table already has a tbody element, this method returns the existing tbody element.
        Returns:
        a newly added caption if no caption exists, or the first existing caption
        See Also:
        MSDN Documentation
      • createTHead

        public HtmlUnitScriptable createTHead()
        If this table does not have a thead element, this method creates an empty thead element, adds it to the table and then returns it. If this table already has a thead element, this method returns the existing thead element.
        Returns:
        a newly added caption if no caption exists, or the first existing caption
        See Also:
        MSDN Documentation
      • deleteCaption

        public void deleteCaption()
        Deletes this table's caption. If the table has multiple captions, this method deletes only the first caption. If this table does not have any captions, this method does nothing.
        See Also:
        MSDN Documentation
      • deleteTFoot

        public void deleteTFoot()
        Deletes this table's tfoot element. If the table has multiple tfoot elements, this method deletes only the first tfoot element. If this table does not have any tfoot elements, this method does nothing.
        See Also:
        MSDN Documentation
      • deleteTHead

        public void deleteTHead()
        Deletes this table's thead element. If the table has multiple thead elements, this method deletes only the first thead element. If this table does not have any thead elements, this method does nothing.
        See Also:
        MSDN Documentation
      • insertRow

        public HtmlUnitScriptable insertRow(Object index)
        Inserts a new row at the specified index in the element's row collection. If the index is -1 or there is no index specified, then the row is appended at the end of the element's row collection.
        Parameters:
        index - specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection
        Returns:
        the newly-created row
        See Also:
        MSDN Documentation
      • insertRow

        public HtmlUnitScriptable insertRow(int index)
        Inserts a new row at the given position.
        Parameters:
        index - the index where the row should be inserted (0 <= index <= nbRows)
        Returns:
        the inserted row
      • getWidth_js

        public String getWidth_js()
        Returns the width property.
        Returns:
        the width property
      • setWidth_js

        public void setWidth_js(String width)
        Sets the width property.
        Parameters:
        width - the width property
      • getCellSpacing

        public String getCellSpacing()
        Returns the cellSpacing property.
        Returns:
        the cellSpacing property
      • setCellSpacing

        public void setCellSpacing(String cellSpacing)
        Sets the cellSpacing property.
        Parameters:
        cellSpacing - the cellSpacing property
      • getCellPadding

        public String getCellPadding()
        Returns the cellPadding property.
        Returns:
        the cellPadding property
      • setCellPadding

        public void setCellPadding(String cellPadding)
        Sets the cellPadding property.
        Parameters:
        cellPadding - the cellPadding property
      • getBorder

        public String getBorder()
        Gets the border property.
        Returns:
        the border property
      • setBorder

        public void setBorder(String border)
        Sets the border property.
        Parameters:
        border - the border property
      • getBgColor

        public String getBgColor()
        Returns the value of the bgColor property.
        Returns:
        the value of the bgColor property
        See Also:
        MSDN Documentation
      • setBgColor

        public void setBgColor(String bgColor)
        Sets the value of the bgColor property.
        Parameters:
        bgColor - the value of the bgColor property
        See Also:
        MSDN Documentation
      • appendChild

        public Node appendChild(Object childObject)
        Adds a DOM node to the node.
        Overrides:
        appendChild in class Node
        Parameters:
        childObject - the node to add to this node
        Returns:
        the newly added child node
      • removeChild

        public Node removeChild(Object childObject)
        Removes a DOM node from this node.
        Overrides:
        removeChild in class Node
        Parameters:
        childObject - the node to remove from this node
        Returns:
        the removed child node
      • getSummary

        public String getSummary()
        Gets the summary property.
        Returns:
        the property
      • setSummary

        public void setSummary(String summary)
        Sets the summary property.
        Parameters:
        summary - the new property
      • getRules

        public String getRules()
        Gets the rules property.
        Returns:
        the property
      • setRules

        public void setRules(String rules)
        Sets the rules property.
        Parameters:
        rules - the new property
      • getAlign

        public String getAlign()
        Returns the value of the align property.
        Returns:
        the value of the align property
      • setAlign

        public void setAlign(String align)
        Sets the value of the align property.
        Parameters:
        align - the value of the align property
      • deleteRow

        public void deleteRow(int rowIndex)
        Deletes the row at the specified index.
        Parameters:
        rowIndex - the zero-based index of the row to delete
        See Also:
        MSDN Documentation
      • getRows

        public HTMLCollection getRows()
        Returns the rows in the element.
        Returns:
        the rows in the element
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /