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

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

 class InGameInputHandler.ShowNegotiationDialogSwingTask
extends InGameInputHandler.SwingTask

This class displays a negotiation dialog.


Field Summary
private  DiplomaticTrade proposal
           
private  Settlement settlement
           
private  Unit unit
           
 
Constructor Summary
InGameInputHandler.ShowNegotiationDialogSwingTask(Unit unit, Settlement settlement, DiplomaticTrade proposal)
          Constructor.
 
Method Summary
protected  java.lang.Object doWork()
          Override this method to do the actual work.
 DiplomaticTrade select()
          Show dialog and wait for selection.
 
Methods inherited from class net.sf.freecol.client.control.InGameInputHandler.SwingTask
getResult, invokeAndWait, invokeLater, 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.ShowNegotiationDialogSwingTask

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

Parameters:
unit - The unit which init the negotiation.
settlement - The settlement where the unit has made the proposal
proposal - The proposal made by unit's owner.
Method Detail

select

public DiplomaticTrade select()
Show dialog and wait for selection.

Returns:
selection.

doWork

protected java.lang.Object doWork()
Description copied from class: InGameInputHandler.SwingTask
Override this method to do the actual work.

Specified by:
doWork in class InGameInputHandler.SwingTask
Returns:
result.