wt.clients.tools.transfer
Class TransferProgressWatcher

java.lang.Object
  extended byjava.lang.Thread
      extended bywt.util.WTThread
          extended bywt.clients.tools.transfer.TransferProgressWatcher
All Implemented Interfaces:
Runnable

public class TransferProgressWatcher
extends WTThread

Import/Export progress monitor and display This class is used to display progress information about work being done on the server. It also provides a means to cancel the operation.


Field Summary
(package private)  GridBagConstraints constraints
           
(package private)  WTContext context
           
(package private)  JDialog jd
           
(package private)  GridBagLayout jdgb
           
(package private)  JLabel jdLabel
           
(package private)  Point location
           
(package private)  FileWriter logFileWriter
           
(package private)  String oldMsg
           
 String operation_message
           
 JProgressBar progress_bar
           
(package private)  JButton progressButton
           
 WTThread task
           
(package private)  JTextArea taskOutput
           
 Timer timer
           
(package private)  JScrollPane toScrollPane
           
 TransferProgressCount tpc
           
 TransferFeedback tpo
           
 String varobject
           
 
Fields inherited from class wt.util.WTThread
CREATED, DONE, PROGRESS_COUNT, PROGRESS_PERCENT, RUNNING, STATE, STATUS
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TransferProgressWatcher()
           
TransferProgressWatcher(WTThread t, String mess)
           
TransferProgressWatcher(WTThread t, String mess, FileWriter fw)
           
 
Method Summary
(package private)  void buildConstraints(GridBagConstraints gbc, int x, int y, int w, int h, double wx, double wy)
          Utility method to aid in the creation of gridbag layout
 void done()
           
 void setLocation(Point a_point)
           
 void setMessage(String mess)
           
 void setThread(WTThread t)
           
 void start()
           
 void stop_me()
           
 void update_display()
           
 
Methods inherited from class wt.util.WTThread
addPropertyChangeListener, cancel, currentProgressCount, currentProgressPercent, currentStatus, firePropertyChange, firePropertyChange, getProgressCount, getProgressPercent, getState, getStatus, interrupt, isInterrupted, ready, removePropertyChangeListener, run, setInterruptHandler, setProgressCount, setProgressPercent, setStatus, start
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupted, isAlive, isDaemon, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

varobject

public String varobject

task

public WTThread task

timer

public Timer timer

operation_message

public String operation_message

tpc

public TransferProgressCount tpc

tpo

public TransferFeedback tpo

progress_bar

public JProgressBar progress_bar

context

WTContext context

jd

JDialog jd

jdgb

GridBagLayout jdgb

constraints

GridBagConstraints constraints

progressButton

JButton progressButton

jdLabel

JLabel jdLabel

taskOutput

JTextArea taskOutput

toScrollPane

JScrollPane toScrollPane

oldMsg

String oldMsg

logFileWriter

FileWriter logFileWriter

location

Point location
Constructor Detail

TransferProgressWatcher

public TransferProgressWatcher()

TransferProgressWatcher

public TransferProgressWatcher(WTThread t,
                               String mess)

TransferProgressWatcher

public TransferProgressWatcher(WTThread t,
                               String mess,
                               FileWriter fw)
Method Detail

setThread

public void setThread(WTThread t)

setMessage

public void setMessage(String mess)

start

public void start()

done

public void done()

stop_me

public void stop_me()

update_display

public void update_display()

buildConstraints

void buildConstraints(GridBagConstraints gbc,
                      int x,
                      int y,
                      int w,
                      int h,
                      double wx,
                      double wy)
Utility method to aid in the creation of gridbag layout


setLocation

public void setLocation(Point a_point)