Class Replace

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener

    public class Replace
    extends java.lang.Object
    implements java.awt.event.ActionListener
    Action listener for "replace".
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  Replace.ReplaceDialog
      The replace dialog implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      Replace()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      boolean replace​(@NotNull JEditTextArea textArea)
      Replace the next occurrence of textToFind with textToReplace.
      • Methods inherited from class java.lang.Object

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

      • Replace

        public Replace()
    • Method Detail

      • actionPerformed

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

        public boolean replace​(@NotNull
                               @NotNull JEditTextArea textArea)
        Replace the next occurrence of textToFind with textToReplace.
        Parameters:
        textArea - the text area to affect
        Returns:
        true if a match was found, or false if no match was found