Class ExportDialog

All Implemented Interfaces:
com.nt.udc.upgrade.ProgressIfc, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ExportDialog extends JDialog implements ActionListener, com.nt.udc.upgrade.ProgressIfc
This class provides a graphical interface that allows the user to control the configuration data export for the UDC upgrade process.
See Also:
  • Constructor Details

    • ExportDialog

      public ExportDialog(Frame owner, String title, AdminServerAPI api, File dir)
      Construct the dialog used to control the export portion of the UDC upgrade process.
      Parameters:
      owner - The container from which this dialog is called.
      title - The text to be displayed as the dialog title.
      api - An instance of AdminServerAPI, used to communicate with the AdminServer.
      dir - The UDC installation directory.
    • ExportDialog

      public ExportDialog(Frame owner, String title, AdminServerAPI api, File dir, Vector<String> nodeIds)
  • Method Details

    • showDialog

      public static void showDialog(JPanel owner, String title, AdminServerAPI api, File dir, Vector<String> nodeIds)
      Launch the Export dialog
      Parameters:
      owner - The container from which this dialog is called.
      title - The text to be displayed as the dialog title.
      api - An instance of AdminServerAPI, used to communicate with the AdminServer.
      dir - The UDC installation directory.
    • showDialog

      public static void showDialog(Frame owner, String title, AdminServerAPI api, File dir)
      Launch the Export dialog
      Parameters:
      owner - The container from which this dialog is called.
      title - The text to be displayed as the dialog title.
      api - An instance of AdminServerAPI, used to communicate with the AdminServer.
      dir - The UDC installation directory.
    • updateProgress

      public void updateProgress(String mesg, int percent)
      This method provides a callback method to the class which is performing the export so it can report the progress as it works.
      Specified by:
      updateProgress in interface com.nt.udc.upgrade.ProgressIfc
      Parameters:
      mesg - A String message providing information regarding the state, current actions, percent complete, etc.
      percent - An integer providing an indication regarding the completion percentage of the export.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Perform the necessary tasks depending upon the given event.
      Specified by:
      actionPerformed in interface ActionListener