Class DocumentAdapter

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

    public abstract class DocumentAdapter
    extends java.lang.Object
    implements javax.swing.event.DocumentListener
    Adapter class that merges all document updates.
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentAdapter()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void changedUpdate​(javax.swing.event.DocumentEvent e)  
      static java.lang.String getText​(javax.swing.text.Document doc)
      Text extraction from the Java "Document" class is braindead, throws non-RuntimeException: Bloat, bloat, bloat.
      void insertUpdate​(javax.swing.event.DocumentEvent e)  
      void removeUpdate​(javax.swing.event.DocumentEvent e)  
      abstract void update​(javax.swing.event.DocumentEvent e)
      Merged update call.
      • Methods inherited from class java.lang.Object

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

      • DocumentAdapter

        public DocumentAdapter()
    • 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
      • update

        public abstract void update​(javax.swing.event.DocumentEvent e)
        Merged update call.
        Parameters:
        e - The event.
      • getText

        public static final java.lang.String getText​(javax.swing.text.Document doc)
        Text extraction from the Java "Document" class is braindead, throws non-RuntimeException: Bloat, bloat, bloat.
        Parameters:
        doc - The document.
        Returns:
        The extracted String.