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

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

 class InGameInputHandler.ShowMonarchPanelSwingTask
extends InGameInputHandler.SwingTask

This class shows the monarch panel.


Field Summary
private  Monarch.MonarchAction action
           
private  StringTemplate replace
           
 
Constructor Summary
InGameInputHandler.ShowMonarchPanelSwingTask(Monarch.MonarchAction action, StringTemplate replace)
          Constructor.
 
Method Summary
 boolean confirm()
          Show dialog and wait for selection.
protected  java.lang.Object doWork()
          Override this method to do the actual work.
 
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

action

private Monarch.MonarchAction action

replace

private StringTemplate replace
Constructor Detail

InGameInputHandler.ShowMonarchPanelSwingTask

public InGameInputHandler.ShowMonarchPanelSwingTask(Monarch.MonarchAction action,
                                                    StringTemplate replace)
Constructor.

Parameters:
action - The action key.
replace - The replacement values.
Method Detail

confirm

public boolean confirm()
Show dialog and wait for selection.

Returns:
true if OK, false if Cancel.

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.