Class StarGroupSelectionPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class StarGroupSelectionPane extends JPanel
This class represents a widget that permits a star group to be selected from a pop-up list and a star in that group from another pop-up list.
See Also:
  • Constructor Details

    • StarGroupSelectionPane

      public StarGroupSelectionPane(JTextField starField)
      Constructor
      Parameters:
      starField - An optional star field to be cleared when a group star is selected.
    • StarGroupSelectionPane

      public StarGroupSelectionPane(JTextField starField, boolean clearStarField)
      Constructor
      Parameters:
      starField - An optional star field to be cleared or set when a group star is selected.
      clearStarField - Whether to clear (true) or set (false) the star field.
  • Method Details

    • populateStarListForSelectedGroup

      public void populateStarListForSelectedGroup()
      Populate the star list combo-box given the currently selected star group.
    • addGroup

      public void addGroup(String groupName)
      Add the specified group (to the map and visually) if it does not exist.
      Parameters:
      groupName - The group to add.
    • removeGroup

      public void removeGroup(String groupName)
      Remove the specified group (from the map and visually) if it exists.
      Parameters:
      groupName - The group to remove.
    • addStar

      public void addStar(String groupName, String starName, String auid)
      Add the specified group-star-AUID triple.
      Parameters:
      groupName - The group to add.
      starName - The star to add to the specified group.
      auid - The AUID of the star to be added.
    • removeStar

      public void removeStar(String groupName, String starName)
      Remove the specified star in the specified group.
      Parameters:
      groupName - The group to add.
      starName -
    • resetGroups

      public void resetGroups()
      Clear the groups in the star group selector list.
    • refreshGroups

      public void refreshGroups()
      Refresh the groups in the star group selector list. Only groups with stars will be "refreshed".
    • selectAndRefreshStarsInGroup

      public void selectAndRefreshStarsInGroup(String groupName)
      Select the specified group and refresh its stars.
      Parameters:
      groupName - The group to select.
    • getStarGroups

      public StarGroups getStarGroups()
      Returns:
      the starGroups
    • getSelectedStarGroupName

      public String getSelectedStarGroupName()
      Returns:
      the selectedStarGroup
    • getSelectedStarName

      public String getSelectedStarName()
      Returns:
      the selectedStarName
    • getSelectedAUID

      public String getSelectedAUID()
      Returns:
      the selectedAUID