Class JavaLanguageSupport.Listener

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.CaretListener
    Enclosing class:
    JavaLanguageSupport

    private class JavaLanguageSupport.Listener
    extends java.lang.Object
    implements javax.swing.event.CaretListener, java.awt.event.ActionListener
    Listens for various events in a text area editing Java (in particular, caret events, so we can track the "active" code block).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.Timer t  
      private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea  
    • Constructor Summary

      Constructors 
      Constructor Description
      Listener​(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      void caretUpdate​(javax.swing.event.CaretEvent e)  
      void uninstall()
      Should be called whenever Java language support is removed from a text area.
      • Methods inherited from class java.lang.Object

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

      • textArea

        private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea
      • t

        private javax.swing.Timer t
    • Constructor Detail

      • Listener

        Listener​(org.fife.ui.rsyntaxtextarea.RSyntaxTextArea textArea)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • caretUpdate

        public void caretUpdate​(javax.swing.event.CaretEvent e)
        Specified by:
        caretUpdate in interface javax.swing.event.CaretListener
      • uninstall

        public void uninstall()
        Should be called whenever Java language support is removed from a text area.