net.sf.freecol.client.control
Class InGameInputHandler.DiplomacySwingTask

java.lang.Object
  extended by net.sf.freecol.client.control.InGameInputHandler.SwingTask
      extended by net.sf.freecol.client.control.InGameInputHandler.NoResultCanvasSwingTask
          extended by net.sf.freecol.client.control.InGameInputHandler.DiplomacySwingTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
InGameInputHandler

 class InGameInputHandler.DiplomacySwingTask
extends InGameInputHandler.NoResultCanvasSwingTask

This class displays a negotiation dialog and acts on the result.


Field Summary
private  DiplomaticTrade proposal
           
private  Settlement settlement
           
private  Unit unit
           
 
Constructor Summary
InGameInputHandler.DiplomacySwingTask(Unit unit, Settlement settlement, DiplomaticTrade proposal)
          Constructor.
 
Method Summary
protected  void doWork(Canvas canvas)
           
 
Methods inherited from class net.sf.freecol.client.control.InGameInputHandler.NoResultCanvasSwingTask
doWork
 
Methods inherited from class net.sf.freecol.client.control.InGameInputHandler.SwingTask
getResult, invokeAndWait, invokeLater, invokeSpecial, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

private Unit unit

settlement

private Settlement settlement

proposal

private DiplomaticTrade proposal
Constructor Detail

InGameInputHandler.DiplomacySwingTask

public InGameInputHandler.DiplomacySwingTask(Unit unit,
                                             Settlement settlement,
                                             DiplomaticTrade proposal)
Constructor.

Parameters:
unit - The unit which is negotiating.
settlement - The settlement to negotiate with.
proposal - The proposal made by the unit owner.
Method Detail

doWork

protected void doWork(Canvas canvas)
Specified by:
doWork in class InGameInputHandler.NoResultCanvasSwingTask