Class TLcdDAFIFRegionChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TLcdDAFIFRegionChooser extends JPanel
A panel with a list of ICAO regions to choose from.
See Also:
  • Constructor Details

    • TLcdDAFIFRegionChooser

      public TLcdDAFIFRegionChooser()
      Constructs a new region chooser panel.
    • TLcdDAFIFRegionChooser

      public TLcdDAFIFRegionChooser(ILcdStringTranslator aTranslator)
      Construct a new region chooser panel. The given translator will be used to translate the 'ICAO Regions' label used in this panel.
      Parameters:
      aTranslator - A valid translator, or null if no translation is required.
  • Method Details

    • setDAFIFTypes

      public void setDAFIFTypes(Vector aDAFIFTypes)
      Sets the list of DAFIF type loaders from which the available region codes and country names will be extracted, and which will be updated when the user changes the selection in the panel.
      Parameters:
      aDAFIFTypes - A Vector containing valid TLcdDAFIFTypeLoader objects.
    • applyChanges

      public void applyChanges()
      Applies the changes from the panel to the list of DAFIF type loaders.
      See Also:
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • setSelectedContinents

      public void setSelectedContinents(String[] aContintents)
      Sets the specified continents active. This method allows you to programmatorically set the state of the check-boxes in the continents list. All other continents not contained in aContinents will be deselected.
      Parameters:
      aContintents - The names of the continents that should be selected.
    • getSelectedContinents

      public String[] getSelectedContinents()
      Returns the checked continents. This method allows you to retrieve the state of the check-boxes in the continents list.
      Returns:
      An array with the names of the continents that have been selected.
    • selectAllContinents

      public void selectAllContinents(boolean aSelected)
      Sets all check-boxes in the continent list to the specified state.
      Parameters:
      aSelected - Sets whether all continents should be selected (true) or deselected (false)
    • setSelectedRegions

      public void setSelectedRegions(String[] aRegions)
      Selects the specified regions. This method allows you to programmatorically set the state of the check-boxes in the regions list. Please note that the regions can only be selected when the continent to which they belong has already been selected. You can set the selected continents using setSelectedContinents(java.lang.String[]), or through the user interface. All other regions not contained in aRegions will be deselected.
      Parameters:
      aRegions - An array with the ICAO codes of the regions that should be selected
    • getSelectedRegions

      public String[] getSelectedRegions()
      Returns an array with the ICAO codes of the selected regions. This method allows you to check the state of the check-boxes in the regions list.
      Returns:
      An array with the ICAO codes of the selected regions.