org.stringer.ui
Class TreeSelectionThreadListener

java.lang.Object
  |
  +--org.stringer.thread.AbstractThreadListener
        |
        +--org.stringer.ui.TreeSelectionThreadListener
All Implemented Interfaces:
IThreadListener

public class TreeSelectionThreadListener
extends AbstractThreadListener


Field Summary
(package private) static org.apache.log4j.Logger logger
           
(package private)  Stringer parent
           
(package private)  javax.swing.JTree tree
           
 
Fields inherited from class org.stringer.thread.AbstractThreadListener
count, monitor, progressBar, subscriptionMap
 
Constructor Summary
TreeSelectionThreadListener(Stringer parent)
           
 
Method Summary
 void beginUnit(java.lang.Object o)
          Mark a node in the JTree as a "work in progress" node by setting its isWorking state to true.
 void complete(java.lang.Object o)
          Called when the job is complete.
 void endUnit(java.lang.Object o)
          Called at the end of processing for a give item.
 
Methods inherited from class org.stringer.thread.AbstractThreadListener
begin, canceled, getProgressMonitor, getSubscriptionMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger

tree

javax.swing.JTree tree

parent

Stringer parent
Constructor Detail

TreeSelectionThreadListener

public TreeSelectionThreadListener(Stringer parent)
Method Detail

beginUnit

public void beginUnit(java.lang.Object o)
Mark a node in the JTree as a "work in progress" node by setting its isWorking state to true. This will cause the node to be redrawn with an icon that indicates that the node is busy.

Specified by:
beginUnit in interface IThreadListener
Overrides:
beginUnit in class AbstractThreadListener

complete

public void complete(java.lang.Object o)
Description copied from class: AbstractThreadListener
Called when the job is complete.

Specified by:
complete in interface IThreadListener
Overrides:
complete in class AbstractThreadListener

endUnit

public void endUnit(java.lang.Object o)
Description copied from interface: IThreadListener
Called at the end of processing for a give item. This provides for fine-grained reporting of thread activity.

Specified by:
endUnit in interface IThreadListener
Overrides:
endUnit in class AbstractThreadListener


Copyright © R. Kevin Cole. All Rights Reserved.