Class ElementListener.Adapter

  • All Implemented Interfaces:
    ElementListener
    Enclosing interface:
    ElementListener

    @Deprecated
    public static class ElementListener.Adapter
    extends java.lang.Object
    implements ElementListener
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • nodeInserted

        public void nodeInserted​(Element element,
                                 int index)
        Deprecated.
        Description copied from interface: ElementListener
        Called when a node has been inserted into an element.
        Specified by:
        nodeInserted in interface ElementListener
        Parameters:
        element - The element that has changed.
        index - Where in the element's node sequence the new one was inserted.
      • nodesRemoved

        public void nodesRemoved​(Element element,
                                 int index,
                                 Sequence<Node> nodes)
        Deprecated.
        Description copied from interface: ElementListener
        Called when nodes have been removed from an element.
        Specified by:
        nodesRemoved in interface ElementListener
        Parameters:
        element - The element that changed.
        index - The starting index of where nodes were removed.
        nodes - The actual sequence of removed nodes.
      • fontChanged

        public void fontChanged​(Element element,
                                java.awt.Font previousFont)
        Deprecated.
        Description copied from interface: ElementListener
        Called when the font has changed.
        Specified by:
        fontChanged in interface ElementListener
        Parameters:
        element - The element that changed.
        previousFont - What the font used to be.
      • backgroundColorChanged

        public void backgroundColorChanged​(Element element,
                                           java.awt.Color previousBackgroundColor)
        Deprecated.
        Description copied from interface: ElementListener
        Called when the background color has changed.
        Specified by:
        backgroundColorChanged in interface ElementListener
        Parameters:
        element - The element that changed.
        previousBackgroundColor - What the background color was before the change.
      • foregroundColorChanged

        public void foregroundColorChanged​(Element element,
                                           java.awt.Color previousForegroundColor)
        Deprecated.
        Description copied from interface: ElementListener
        Called when the foreground color has changed.
        Specified by:
        foregroundColorChanged in interface ElementListener
        Parameters:
        element - The element whose color changed.
        previousForegroundColor - The old foreground color.
      • underlineChanged

        public void underlineChanged​(Element element)
        Deprecated.
        Description copied from interface: ElementListener
        Called when underline style has changed.
        Specified by:
        underlineChanged in interface ElementListener
        Parameters:
        element - The element that changed.
      • strikethroughChanged

        public void strikethroughChanged​(Element element)
        Deprecated.
        Description copied from interface: ElementListener
        Called when strikethrough style has changed.
        Specified by:
        strikethroughChanged in interface ElementListener
        Parameters:
        element - The element that changed.