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.Runnable
A wrapper class for non-modal dialogs.
-
-
Field Summary
Fields Modifier and Type Field Description private FreeColDialog<T>
fcd
The dialog to show.private DialogHandler<T>
handler
The handler for the dialog response.private SwingGUI.PopupPosition
pos
A 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 void
run()
-
-
-
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
- APopupPosition
for the dialog.handler
- TheDialogHandler
to call when run.
-
-