fr.inria.oadymppac.io
Class FileLoaderThread

java.lang.Object
  extended byfr.inria.oadymppac.widget.SwingWorker
      extended byfr.inria.oadymppac.io.FileLoaderThread
All Implemented Interfaces:
Properties
Direct Known Subclasses:
FasterFileLoaderThread

public class FileLoaderThread
extends SwingWorker
implements Properties

A Thread class to load file in the application It us in fact the swingWorker specific thread implementation

Author:
raf

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.utils.Properties
logger
 
Constructor Summary
FileLoaderThread(Properties properties, java.io.File file)
           
 
Method Summary
 void addListener(EventListener listener)
          Add another trace event Listener
 java.lang.Object construct()
          Construct a strucutre of the parsed document
 Properties getProperties()
           
 java.lang.Object getProperty(java.lang.String property)
          Get a property form the property list used to configure the thread
 boolean isInterrupted()
           
 void setComplementListener(SingleComplementEventListener complementListener)
          Set the complemnt Event listener for the thread
 void setControlListener(SingleControlEventListener controlListener)
          Set the control Event listener for the thread
 void setHeadListener(SingleHeadEventListener headListener)
          Set the header Event listener for the thread
 void setInterrupted(boolean interrupted)
          Indicates that the user stopped manually the parsing process (using the cancel button of the Progress Monitor)
 void setProperties(Properties properties)
          Ste the property list used to configure the thread
 void setProperty(java.lang.String property, java.lang.Object value)
          Set/add a property inside the table used to configure the thread
 void setProvidableListener(SingleProvideEventListener providableListener)
          Set the Header provide Event listener for the thread
 void setProvidedListener(SingleProvideEventListener providedListener)
          Set the trace provide Event listener for the thread
 void setSolverListener(EventListener solverListener)
          Set the trace Event listener for the thread
 
Methods inherited from class fr.inria.oadymppac.widget.SwingWorker
finished, get, interrupt, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileLoaderThread

public FileLoaderThread(Properties properties,
                        java.io.File file)
Method Detail

construct

public java.lang.Object construct()
Construct a strucutre of the parsed document

Specified by:
construct in class SwingWorker
See Also:
fr.emn.oadymppac.widgets.SwingWorker#construct()

setComplementListener

public void setComplementListener(SingleComplementEventListener complementListener)
Set the complemnt Event listener for the thread

Parameters:
complementListener - The complementListener to set.

setControlListener

public void setControlListener(SingleControlEventListener controlListener)
Set the control Event listener for the thread

Parameters:
controlListener - The controlListener to set.

setHeadListener

public void setHeadListener(SingleHeadEventListener headListener)
Set the header Event listener for the thread

Parameters:
headListener - The headListener to set.

setProvidableListener

public void setProvidableListener(SingleProvideEventListener providableListener)
Set the Header provide Event listener for the thread

Parameters:
providableListener - The providableListener to set.

setProvidedListener

public void setProvidedListener(SingleProvideEventListener providedListener)
Set the trace provide Event listener for the thread

Parameters:
providedListener - The providedListener to set.

setSolverListener

public void setSolverListener(EventListener solverListener)
Set the trace Event listener for the thread

Parameters:
solverListener - The solverListener to set.

addListener

public void addListener(EventListener listener)
Add another trace event Listener


getProperties

public Properties getProperties()
Specified by:
getProperties in interface Properties
Returns:
Returns the properties.

setProperties

public void setProperties(Properties properties)
Ste the property list used to configure the thread

Specified by:
setProperties in interface Properties
Parameters:
properties - The properties to set.

getProperty

public java.lang.Object getProperty(java.lang.String property)
Get a property form the property list used to configure the thread

Specified by:
getProperty in interface Properties
Parameters:
property -
Returns:

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Set/add a property inside the table used to configure the thread

Specified by:
setProperty in interface Properties
Parameters:
property -
value -

isInterrupted

public boolean isInterrupted()
Returns:
Returns if th user has interruptedthe parser

setInterrupted

public void setInterrupted(boolean interrupted)
Indicates that the user stopped manually the parsing process (using the cancel button of the Progress Monitor)

Parameters:
interrupted - The interrupted to set.