Class DocumentConsumerAdapter

  • All Implemented Interfaces:
    java.util.EventListener, javax.swing.event.DocumentListener

    public class DocumentConsumerAdapter
    extends java.lang.Object
    implements javax.swing.event.DocumentListener
    Passes the document text to a Consumer whenever the document changes.
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentConsumerAdapter​(java.util.function.Consumer<java.lang.String> consumer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void changedUpdate​(javax.swing.event.DocumentEvent e)  
      void insertUpdate​(javax.swing.event.DocumentEvent e)  
      void removeUpdate​(javax.swing.event.DocumentEvent e)  
      • Methods inherited from class java.lang.Object

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

      • DocumentConsumerAdapter

        public DocumentConsumerAdapter​(java.util.function.Consumer<java.lang.String> consumer)
    • Method Detail

      • insertUpdate

        public void insertUpdate​(javax.swing.event.DocumentEvent e)
        Specified by:
        insertUpdate in interface javax.swing.event.DocumentListener
      • removeUpdate

        public void removeUpdate​(javax.swing.event.DocumentEvent e)
        Specified by:
        removeUpdate in interface javax.swing.event.DocumentListener
      • changedUpdate

        public void changedUpdate​(javax.swing.event.DocumentEvent e)
        Specified by:
        changedUpdate in interface javax.swing.event.DocumentListener