ca.sqlpower.architect.swingui
Class PlayPen.AddObjectsTask

java.lang.Object
  extended by ca.sqlpower.swingui.SPSwingWorker
      extended by ca.sqlpower.swingui.MonitorableWorker
          extended by ca.sqlpower.architect.swingui.PlayPen.AddObjectsTask
All Implemented Interfaces:
ca.sqlpower.util.Monitorable, java.lang.Runnable
Enclosing class:
PlayPen

protected class PlayPen.AddObjectsTask
extends ca.sqlpower.swingui.MonitorableWorker


Constructor Summary
PlayPen.AddObjectsTask(java.util.List<SQLObject> sqlObjects, java.awt.Point preferredLocation, javax.swing.ProgressMonitor pm, ArchitectSwingSession session)
           
 
Method Summary
 void cleanup()
          Displays error messages or invokes the next process in the chain on a new thread.
 void doStuff()
          Makes sure all the stuff we want to add is populated.
 java.lang.Integer getJobSize()
           
 java.lang.String getMessage()
           
 int getProgress()
           
 boolean hasStarted()
           
 boolean isCanceled()
          Combines the MonitorableWorker's canceled flag with the ProgressMonitor's.
 boolean isFinished()
           
 
Methods inherited from class ca.sqlpower.swingui.SPSwingWorker
addTaskTerminationListener, getCleanupExceptionMessage, getDoStuffException, getNextProcess, isCancelled, kill, removeTaskTerminationListener, run, setCancelled, setCleanupExceptionMessage, setDoStuffException, setNextProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.sqlpower.util.Monitorable
isCancelled, setCancelled
 

Constructor Detail

PlayPen.AddObjectsTask

public PlayPen.AddObjectsTask(java.util.List<SQLObject> sqlObjects,
                              java.awt.Point preferredLocation,
                              javax.swing.ProgressMonitor pm,
                              ArchitectSwingSession session)
Method Detail

getProgress

public int getProgress()

getJobSize

public java.lang.Integer getJobSize()

isFinished

public boolean isFinished()

getMessage

public java.lang.String getMessage()

isCanceled

public boolean isCanceled()
Combines the MonitorableWorker's canceled flag with the ProgressMonitor's.

Overrides:
isCanceled in class ca.sqlpower.swingui.SPSwingWorker

doStuff

public void doStuff()
Makes sure all the stuff we want to add is populated.

Specified by:
doStuff in class ca.sqlpower.swingui.SPSwingWorker

cleanup

public void cleanup()
Displays error messages or invokes the next process in the chain on a new thread. The run method asks swing to invoke this method on the event dispatch thread after it's done.

Specified by:
cleanup in class ca.sqlpower.swingui.SPSwingWorker

hasStarted

public boolean hasStarted()


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca