Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

medi.util
Class PreviewDispatcher  view PreviewDispatcher download PreviewDispatcher.java

java.lang.Object
  extended byjava.lang.Thread
      extended bymedi.util.PreviewDispatcher
All Implemented Interfaces:
java.lang.Runnable

public class PreviewDispatcher
extends java.lang.Thread

It is a class to dispatch preview classes.

Version:
0.3.1

Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.lang.Long dataID
           
private  java.util.HashMap ext2previewer
           
private  javax.swing.JLabel noClass
           
private  javax.swing.JLabel noMount
           
private  medi.swing.frame.PreviewFrame pframe
           
private  medi.plugin.AbstractPreviewer[] previewers
           
private  boolean processing
           
private  medi.db.AbstractProvider prv
           
private  boolean threadStopped
           
private  medi.db.util.VolumeMounter vmount
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PreviewDispatcher(java.lang.String str)
          Creates new PreviewDispatcher
 
Method Summary
private  void doPreview()
           
 void hideFrame()
          Hides the preview frame.
 boolean isFrameVisible()
          Checks if the frame is visible.
 void mountAndRetry()
          Mounts the volume and retry displaying the file.
 void preview(javatools.util.Clippable obj)
          Previews the object.
 void preview(java.lang.Long dataID)
          Previews a file.
private  void restartDispatch()
           
 void run()
          Thread's run method.
 void setProvider(medi.db.AbstractProvider pPrv)
          Sets the provider to use.
 void setVolumeMounter(medi.db.util.VolumeMounter pVmount)
          Sets the volume mounter.
 void showFrame()
          Shows the preview-frame.
 void stopAll()
          Stops the thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, 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

prv

private medi.db.AbstractProvider prv

previewers

private medi.plugin.AbstractPreviewer[] previewers

ext2previewer

private java.util.HashMap ext2previewer

pframe

private medi.swing.frame.PreviewFrame pframe

vmount

private medi.db.util.VolumeMounter vmount

noMount

private javax.swing.JLabel noMount

noClass

private javax.swing.JLabel noClass

dataID

private java.lang.Long dataID

processing

private boolean processing

threadStopped

private boolean threadStopped
Constructor Detail

PreviewDispatcher

public PreviewDispatcher(java.lang.String str)
Creates new PreviewDispatcher

Method Detail

setProvider

public void setProvider(medi.db.AbstractProvider pPrv)
                 throws javatools.db.DbException
Sets the provider to use.


setVolumeMounter

public void setVolumeMounter(medi.db.util.VolumeMounter pVmount)
Sets the volume mounter.


preview

public void preview(java.lang.Long dataID)
             throws javatools.db.DbException
Previews a file.


preview

public void preview(javatools.util.Clippable obj)
             throws javatools.db.DbException
Previews the object.


showFrame

public void showFrame()
Shows the preview-frame.


hideFrame

public void hideFrame()
Hides the preview frame.


isFrameVisible

public boolean isFrameVisible()
Checks if the frame is visible.


mountAndRetry

public void mountAndRetry()
                   throws javatools.db.DbException
Mounts the volume and retry displaying the file.


run

public void run()
Thread's run method.


stopAll

public void stopAll()
Stops the thread.


doPreview

private void doPreview()

restartDispatch

private void restartDispatch()