org.moyoman.client.reference
Class DeleteGamesSwingWorker

java.lang.Object
  |
  +--org.moyoman.client.reference.util.SwingWorker
        |
        +--org.moyoman.client.reference.DeleteGamesSwingWorker

public class DeleteGamesSwingWorker
extends SwingWorker

Provides an implementation of SwingWorker to perform the delete game action in a separate thread.

Since:
v0.02
Version:
v0.03
Author:
Jeffrey M. Thompson

Nested Class Summary
 
Nested classes inherited from class org.moyoman.client.reference.util.SwingWorker
 
Field Summary
private  CommandExecutor _commandExecutor
          Command executor.
private  String[] _gameIds
          The game IDs.
private  IMoyoman _owner
          The owner.
 
Fields inherited from class org.moyoman.client.reference.util.SwingWorker
 
Constructor Summary
DeleteGamesSwingWorker(IMoyoman owner, CommandExecutor commandExecutor, String[] gameIds)
          Construct this object with the given parameters.
 
Method Summary
 Object construct()
          Execute time-consuming code.
 void finished()
          Perform final actions on the event-dispatching thread.
 
Methods inherited from class org.moyoman.client.reference.util.SwingWorker
get, getValue, interrupt, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_commandExecutor

private CommandExecutor _commandExecutor
Command executor.


_owner

private IMoyoman _owner
The owner.


_gameIds

private String[] _gameIds
The game IDs.

Constructor Detail

DeleteGamesSwingWorker

public DeleteGamesSwingWorker(IMoyoman owner,
                              CommandExecutor commandExecutor,
                              String[] gameIds)
Construct this object with the given parameters.

Parameters:
owner - Moyoman owner.
commandExecutor - Command executor.
gameIds - Array of game IDs.
Since:
v0.02
Method Detail

construct

public Object construct()
Execute time-consuming code.

Specified by:
construct in class SwingWorker
Since:
v0.02

finished

public void finished()
Perform final actions on the event-dispatching thread.

Overrides:
finished in class SwingWorker
Since:
v0.02