Class NodeListener.Adapter

  • All Implemented Interfaces:
    NodeListener
    Enclosing interface:
    NodeListener

    @Deprecated
    public static class NodeListener.Adapter
    extends java.lang.Object
    implements NodeListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Default implementation of the NodeListener interface.
    • Constructor Summary

      Constructors 
      Constructor Description
      Adapter()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void nodeInserted​(Node node, int offset)
      Deprecated.
      Called when a child node has been inserted into a node.
      void nodesRemoved​(Node node, Sequence<Node> removed, int offset)
      Deprecated.
      Called when child nodes have been removed from a node.
      void offsetChanged​(Node node, int previousOffset)
      Deprecated.
      Called when a node's offset has changed within its parent element.
      void parentChanged​(Node node, Element previousParent)
      Deprecated.
      Called when a node's parent has changed, either as a result of being added to or removed from an element.
      void rangeInserted​(Node node, int offset, int span)
      Deprecated.
      Called when a text range has been inserted into a node.
      void rangeRemoved​(Node node, int offset, int characterCount, java.lang.CharSequence removedChars)
      Deprecated.
      Called when a text range has been removed from a node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • offsetChanged

        public void offsetChanged​(Node node,
                                  int previousOffset)
        Deprecated.
        Description copied from interface: NodeListener
        Called when a node's offset has changed within its parent element.
        Specified by:
        offsetChanged in interface NodeListener
        Parameters:
        node - The node that has been updated.
        previousOffset - The previous offset of this node.
      • parentChanged

        public void parentChanged​(Node node,
                                  Element previousParent)
        Deprecated.
        Description copied from interface: NodeListener
        Called when a node's parent has changed, either as a result of being added to or removed from an element.
        Specified by:
        parentChanged in interface NodeListener
        Parameters:
        node - The node that moved.
        previousParent - What the node's parent used to be.
      • nodeInserted

        public void nodeInserted​(Node node,
                                 int offset)
        Deprecated.
        Description copied from interface: NodeListener
        Called when a child node has been inserted into a node.
        Specified by:
        nodeInserted in interface NodeListener
        Parameters:
        node - The parent node that changed.
        offset - The offset where the child node was inserted.
      • nodesRemoved

        public void nodesRemoved​(Node node,
                                 Sequence<Node> removed,
                                 int offset)
        Deprecated.
        Description copied from interface: NodeListener
        Called when child nodes have been removed from a node.
        Specified by:
        nodesRemoved in interface NodeListener
        Parameters:
        node - The parent node.
        removed - The sequence of child nodes that were removed.
        offset - The starting offset of the removed nodes.
      • rangeInserted

        public void rangeInserted​(Node node,
                                  int offset,
                                  int span)
        Deprecated.
        Description copied from interface: NodeListener
        Called when a text range has been inserted into a node.
        Specified by:
        rangeInserted in interface NodeListener
        Parameters:
        node - The node where text was inserted.
        offset - The starting offset of the insertion.
        span - Count of characters inserted.
      • rangeRemoved

        public void rangeRemoved​(Node node,
                                 int offset,
                                 int characterCount,
                                 java.lang.CharSequence removedChars)
        Deprecated.
        Description copied from interface: NodeListener
        Called when a text range has been removed from a node.
        Specified by:
        rangeRemoved in interface NodeListener
        Parameters:
        node - The node where text was removed.
        offset - Starting offset of the text removal.
        characterCount - Count of characters removed.
        removedChars - (optional) Actual characters that were removed if the removal was directly from a text node, otherwise this will be null.