Class ProtocolSelectionControls

java.lang.Object
org.ka2ddo.yaac.gui.io.ProtocolSelectionControls
All Implemented Interfaces:
ItemListener, EventListener

public class ProtocolSelectionControls extends Object implements ItemListener
This class implements the code needed to create with port configuration widgets to select AX.25 protocols should be permitted on a port.
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • createWidgets

      public static JPanel createWidgets(ResourceBundle msgBundle, PortConfig.Cfg cfg)
      Create a generic set of controls for enabling or disabling the protocols to be supported over the asscoiated AX.25 port interface.
      Parameters:
      msgBundle - ResourceBundle for obtaining localized label translations
      cfg - PortConfig.Cfg object to store protocol selection bits
      Returns:
      JPanel loaded with controls
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      DO NOT CALL. Handle state changes of an associated JCheckBox for the protocol selection controls.
      Specified by:
      itemStateChanged in interface ItemListener
      Parameters:
      e - ItemEvent identifying the checkbox