Package jmri.jmrix.bidib.netbidib
Class NetBiDiBPairingRequestDialog
java.lang.Object
jmri.jmrix.bidib.netbidib.NetBiDiBPairingRequestDialog
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
ConstructorsConstructorDescriptionNetBiDiBPairingRequestDialog(org.bidib.jbidibc.messages.helpers.Context context, BiDiBPortController portController, ActionListener listener) Constructor. -
Method Summary
-
Constructor Details
-
NetBiDiBPairingRequestDialog
public NetBiDiBPairingRequestDialog(org.bidib.jbidibc.messages.helpers.Context context, BiDiBPortController portController, 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
-
-
Method Details
-
show
Show the dialog, setup listeners for the button and for the window close event. Immediately return, this is not a modal dialog. -
dispose
Stop timer and remove dialog -
hide
Stop timer and hide dialog
-