Class OverlayGroupSavePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class OverlayGroupSavePanel extends JPanel
The OverlayGroupSavePanel shows a list of overlays that are to be saved as a group, and allows the user to choose the group name or use an existing name.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • OverlayGroupSavePanel

      public OverlayGroupSavePanel(List overlayList, List groupNameList)
      Creates a new save panel.
      Parameters:
      overlayList - the overlay list to be saved as a group.
      groupNameList - the group name list to choose a name from.
  • Method Details

    • getGroup

      public String getGroup()
      Gets the selected group name.
    • contains

      public boolean contains(String group)
      Returns true if the specified group name exists in the list.
    • showDialog

      public static String showDialog(Component parent, String title, List overlayList, List groupList)
      Shows a modal save dialog and blocks until the dialog is hidden.
      Parameters:
      parent - the component to use for the dialog parent.
      title - the dialog title string.
      overlayList - the overlay list to be saved as a group.
      groupList - the group list to choose a name from.
      Returns:
      the new overlay group name, or null if the save was cancelled.