Package io.github.jonestimd.swing
Class DocumentConsumerAdapter
- java.lang.Object
-
- io.github.jonestimd.swing.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 aConsumer
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)
-
-
-
Method Detail
-
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
insertUpdate
in interfacejavax.swing.event.DocumentListener
-
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
removeUpdate
in interfacejavax.swing.event.DocumentListener
-
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
changedUpdate
in interfacejavax.swing.event.DocumentListener
-
-