org.ceryle.tm
Class OccurrenceTitler

java.lang.Object
  extended by java.lang.Thread
      extended by org.ceryle.tm.OccurrenceTitler
All Implemented Interfaces:
Runnable

public class OccurrenceTitler
extends Thread

Extends Thread to return a String that may be considered as the title of a provided Occurrence. This may involve resolving the Occurrence reference, if it uses a Locator. The returned value is obtained from getTitle() after a ChangeListener has fired notification that it is available.

Since:
JDK1.4
Version:
$Id: OccurrenceTitler.java,v 3.7 2007-06-15 12:09:32 altheim Exp $
Author:
Murray Altheim

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
OccurrenceTitler(Occurrence occurrence, ChangeListener listener)
          Constructor with the Occurrence to query for a title, and a ChangeListener which will notify interested parties with the title has been obtained.
 
Method Summary
 String getTitle()
           
 void run()
           
protected  void setOccurrenceTitle(Occurrence occur, String title)
          Set the title and fire a ChangeEvent.
 
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
 

Constructor Detail

OccurrenceTitler

public OccurrenceTitler(Occurrence occurrence,
                        ChangeListener listener)
Constructor with the Occurrence to query for a title, and a ChangeListener which will notify interested parties with the title has been obtained.

Method Detail

run

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

getTitle

public String getTitle()

setOccurrenceTitle

protected void setOccurrenceTitle(Occurrence occur,
                                  String title)
Set the title and fire a ChangeEvent.



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.