Package smsqmulator

Class ClipboardMonitorThread

java.lang.Object
java.lang.Thread
smsqmulator.ClipboardMonitorThread
All Implemented Interfaces:
Runnable

public class ClipboardMonitorThread extends Thread
A thread to monitor changes from the clipboard, by comparing current content with old content.
  • Constructor Details

    • ClipboardMonitorThread

      public ClipboardMonitorThread(ClipboardXfer cbxfer, String m)
      Create this object.
      Parameters:
      cbxfer - the object which handles transfer
      m - String already in the clipboard when this is created.
  • Method Details

    • cancel

      public void cancel()
      Stop this thread.
    • run

      public void run()
      This checks every half second if the text in the clipboard has changed.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread