com.colorpicker.swing
Class ColorPicker.HexUpdateThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.colorpicker.swing.ColorPicker.HexUpdateThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ColorPicker

 class ColorPicker.HexUpdateThread
extends java.lang.Thread

This thread will wait a second or two before committing the text in the hex TextField. This gives the user a chance to finish typing... but if the user is just waiting for something to happen, this makes sure after a second or two something happens.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  long myStamp
           
(package private)  java.lang.String text
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ColorPicker.HexUpdateThread(long stamp, java.lang.String s)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myStamp

long myStamp

text

java.lang.String text
Constructor Detail

ColorPicker.HexUpdateThread

public ColorPicker.HexUpdateThread(long stamp,
                                   java.lang.String s)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread