Class PortEditor

All Implemented Interfaces:
ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, AncestorListener, HasHelpTag

public class PortEditor extends JPanel implements ItemListener, AncestorListener, HasHelpTag
This class provides the GUI infrastructure for configuring a interface port.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • PortEditor

      public PortEditor(ResourceBundle msgBundle, PortConfig config, boolean portTypeIsEditable)
      Create a PortEditor panel loaded with all currently supported port driver GUI panels.
      Parameters:
      msgBundle - ResourceBundle for current locale of core YAAC
      config - the PortConfig object to pass to the editor panes
      portTypeIsEditable - boolean true if the user is allowed to change the portType (for new ports) or false if the port type cannot be changed (for existing ports associated with a driver class)
  • Method Details

    • getHelpTag

      public String getHelpTag()
      Get the help tag associated with the current port type.
      Specified by:
      getHelpTag in interface HasHelpTag
      Returns:
      help tag String
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      Do not call. Invoked when an item has been selected or deselected by the user.
      Specified by:
      itemStateChanged in interface ItemListener
    • ancestorAdded

      public void ancestorAdded(AncestorEvent event)
      Do not call. Called when the source or one of its ancestors is made visible either by setVisible(true) being called or by its being added to the component hierarchy. The method is only called if the source has actually become visible. For this to be true all its parents must be visible and it must be in a hierarchy rooted at a Window.
      Specified by:
      ancestorAdded in interface AncestorListener
    • ancestorRemoved

      public void ancestorRemoved(AncestorEvent event)
      Do not call. Called when the source or one of its ancestors is made invisible either by setVisible(false) being called or by its being remove from the component hierarchy. The method is only called if the source has actually become invisible. For this to be true at least one of its parents must by invisible or it is not in a hierarchy rooted at a Window
      Specified by:
      ancestorRemoved in interface AncestorListener
    • ancestorMoved

      public void ancestorMoved(AncestorEvent event)
      Do not call. Called when either the source or one of its ancestors is moved.
      Specified by:
      ancestorMoved in interface AncestorListener