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

Class CharacterData

    • Constructor Detail

      • CharacterData

        public CharacterData()
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
        Overrides:
        jsConstructor in class Node
      • getData

        public String getData()
        Gets the JavaScript property data for this character data.
        Returns:
        the String of data
      • setData

        public void setData(String newValue)
        Sets the JavaScript property data for this character data.
        Parameters:
        newValue - the new String of data
      • getLength

        public int getLength()
        Gets the number of character in the character data.
        Returns:
        the number of characters
      • appendData

        public void appendData(String arg)
        Append a string to character data.
        Parameters:
        arg - the string to be appended to the character data
      • deleteData

        public void deleteData(int offset,
         int count)
        Delete characters from character data.
        Parameters:
        offset - the position of the first character to be deleted
        count - the number of characters to be deleted
      • insertData

        public void insertData(int offset,
         String arg)
        Insert a string into character data.
        Parameters:
        offset - the position within the first character at which the string is to be inserted.
        arg - the string to insert
      • replaceData

        public void replaceData(int offset,
         int count,
         String arg)
        Replace characters of character data with a string.
        Parameters:
        offset - the position within the first character at which the string is to be replaced.
        count - the number of characters to be replaced
        arg - the string that replaces the count characters beginning at the character at offset.
      • substringData

        public String substringData(int offset,
         int count)
        Extract a substring from character data.
        Parameters:
        offset - the position of the first character to be extracted
        count - the number of characters to be extracted
        Returns:
        a string that consists of the count characters of the character data starting from the character at position offset
      • getNextElementSibling

        public Element getNextElementSibling()
        Returns the next element sibling.
        Returns:
        the next element sibling
      • getPreviousElementSibling

        public Element getPreviousElementSibling()
        Returns the previous element sibling.
        Returns:
        the previous element sibling
Skip navigation links

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

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