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 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 dialog
      portController - to transfer the port hostname and port number
      listener - listing to the cancel event
  • Method Details

    • show

      public void show()
      Show the dialog, setup listeners for the button and for the window close event. Immediately return, this is not a modal dialog.
    • dispose

      public void dispose()
      Stop timer and remove dialog
    • hide

      public void hide()
      Stop timer and hide dialog