Package net.sf.freecol.client.gui
Class Widgets.DialogCallback<T>
- java.lang.Object
-
- net.sf.freecol.client.gui.Widgets.DialogCallback<T>
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- Widgets
private class Widgets.DialogCallback<T> extends java.lang.Object implements java.lang.RunnableA wrapper class for non-modal dialogs.
-
-
Field Summary
Fields Modifier and Type Field Description private FreeColDialog<T>fcdThe dialog to show.private DialogHandler<T>handlerThe handler for the dialog response.private SwingGUI.PopupPositionposA rough position for the dialog.
-
Constructor Summary
Constructors Constructor Description DialogCallback(FreeColDialog<T> fcd, SwingGUI.PopupPosition pos, DialogHandler<T> handler)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()
-
-
-
Field Detail
-
fcd
private final FreeColDialog<T> fcd
The dialog to show.
-
pos
private final SwingGUI.PopupPosition pos
A rough position for the dialog.
-
handler
private final DialogHandler<T> handler
The handler for the dialog response.
-
-
Constructor Detail
-
DialogCallback
public DialogCallback(FreeColDialog<T> fcd, SwingGUI.PopupPosition pos, DialogHandler<T> handler)
Constructor.- Parameters:
fcd- The parentFreeColDialog.pos- APopupPositionfor the dialog.handler- TheDialogHandlerto call when run.
-
-