net.sf.freecol.client.control
Class InGameInputHandler.ShowNegotiationDialogSwingTask
java.lang.Object
net.sf.freecol.client.control.InGameInputHandler.SwingTask
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unit
private Unit unit
settlement
private Settlement settlement
proposal
private DiplomaticTrade proposal
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 proposalproposal - The proposal made by unit's owner.
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.