Package jmri.jmrix.bidib.netbidib
Class NetBiDiBPairingRequestDialog
- java.lang.Object
-
- jmri.jmrix.bidib.netbidib.NetBiDiBPairingRequestDialog
-
public class NetBiDiBPairingRequestDialog extends java.lang.Object
This dialog is presented to the user if netBiDiB pairing is required. It informs the user about the remote device and waits until the pairing is accepted on the remote side. In this case, the dialog should be removed by the calling program. If the request timed out, is is closed an the calling program is informed by an ActionListener.
-
-
Constructor Summary
Constructors Constructor Description NetBiDiBPairingRequestDialog(org.bidib.jbidibc.messages.helpers.Context context, BiDiBPortController portController, java.awt.event.ActionListener listener)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Stop timer and remove dialogvoid
hide()
Stop timer and hide dialogvoid
show()
Show the dialog, setup listeners for the button and for the window close event.
-
-
-
Constructor Detail
-
NetBiDiBPairingRequestDialog
public NetBiDiBPairingRequestDialog(org.bidib.jbidibc.messages.helpers.Context context, BiDiBPortController portController, java.awt.event.ActionListener listener)
Constructor.- Parameters:
context
- to transfer several parameters to show on the dialogportController
- to transfer the port hostname and port numberlistener
- listing to the cancel event
-
-