Class GenericText

All Implemented Interfaces:
Serializable, NodeEventTarget, ExtendedNode, NodeXBL, XBLManagerData, CharacterData, EventTarget, Node, Text

public class GenericText extends AbstractText
This class provides a generic implementation of the Text interface.
See Also:
  • Field Details

    • readonly

      protected boolean readonly
      Is this element immutable?
  • Constructor Details

    • GenericText

      protected GenericText()
      Creates a new uninitialized Text object.
    • GenericText

      public GenericText(String value, AbstractDocument owner)
      Creates a new Text object.
  • Method Details

    • getNodeName

      public String getNodeName()
      DOM: Implements Node.getNodeName().
      Returns:
      getNodeName().
    • getNodeType

      public short getNodeType()
      DOM: Implements Node.getNodeType().
      Returns:
      Node.TEXT_NODE
    • isReadonly

      public boolean isReadonly()
      Tests whether this node is readonly.
    • setReadonly

      public void setReadonly(boolean v)
      Sets this node readonly attribute.
    • createTextNode

      protected Text createTextNode(String text)
      Creates a text node of the current type.
      Specified by:
      createTextNode in class AbstractText
    • newNode

      protected Node newNode()
      Returns a new uninitialized instance of this object's class.
      Specified by:
      newNode in class AbstractNode