Package ui

Class DriveAssignmentsDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class DriveAssignmentsDialog extends JDialog
Popup window to ask for drive assignments (e.g. NFA1_ is what directory?) There is a fixed size of 8 drive assignments that may be set.
See Also:
  • Constructor Details

    • DriveAssignmentsDialog

      public DriveAssignmentsDialog(Frame parent, boolean modal, String[] presets, String deviceName, boolean mustBeDir)
      Creates new modal dialog DriveAssignmentsDialog
      Parameters:
      parent - my main Frame
      modal - is dialog modal or not (it should be).
      presets - a string array with exactly 8 elements containing the current values of the options.
      deviceName - name of device to get drive assignments for.
      mustBeDir - flag whether files to select must be directories or not.
  • Method Details

    • adoptChanges

      public boolean adoptChanges(String[] oldnames, int x, int y)
      This is called to show this dialog (do NOT use set.Visible directly).
      Parameters:
      oldnames - a String array with 8 elements. If there aren't 8 elements : premature exit!
      x - and...
      y - ... where to show the dialogue
      Returns:
      true if changes accepted, false if not.
    • getOptions

      public String[] getOptions()
      Returns the current options array.
      Returns:
      the current options array.