Class DigipeatPathPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DigipeatPathPanel extends JPanel
This class defines a GUI sub-panel for editing digipeat path choices.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • DigipeatPathPanel

      public DigipeatPathPanel(String panelTitle, String[] initialDigipeatPaths, boolean isSingleValue)
      Create a DigipeatPathPanel for editing a list of digipeater paths.
      Parameters:
      panelTitle - String of already-localized title to be displayed as the border title of this panel
      initialDigipeatPaths - String array of comma-delimited digipeat paths
      isSingleValue - boolean true if this editor should only allow a single path, false if an ordered list of paths for proportional pathing should be allowed
    • DigipeatPathPanel

      public DigipeatPathPanel(String panelTitle)
      Create a DigipeatPathPanel for editing a list of digipeater paths, initialized to the APRS-standard default path list..
      Parameters:
      panelTitle - String of already-localized title to be displayed as the border title of this panel
    • DigipeatPathPanel

      public DigipeatPathPanel(String panelTitle, String currentPath)
      Create a DigipeatPathPanel for editing a single digipeater path.
      Parameters:
      panelTitle - String of already-localized title to be displayed as the border title of this panel
      currentPath - String of comma-delimited digipeat path
  • Method Details

    • setDigipeatPaths

      public void setDigipeatPaths(String[] paths)
      Set the editor's current contents to the specified array of comma-delimited digipeat paths.
      Parameters:
      paths - String array of digipeat paths; if editor configured for single path, only the zeroth element of the array will be used
      Throws:
      ArrayIndexOutOfBoundsException - if in single path mode and the paths array has zero elements
    • getDigipeatPaths

      public String[] getDigipeatPaths()
      Get the current ordered array of comma-delimited digipeat paths displayed in the editor.
      Returns:
      String array of digipeat paths in proportional pathing order
    • getDigipeatPath

      public String getDigipeatPath()
      Get the current highest proportional-pathing precedence comma-delimited digipeat path displayed in the editor.
      Returns:
      String digipeat paths, or null if configured for multiple paths and there are no paths currently defined
    • addChangeListener

      public void addChangeListener(ChangeListener l)
      Register a ChangeListener to be informed of updates to the ordered list of digipeat paths in this editor.
      Parameters:
      l - ChangeListener to register
    • removeChangeListener

      public void removeChangeListener(ChangeListener l)
      Unregister a ChangeListener so updates to this editor will no longer be reported to it.
      Parameters:
      l - ChangeListener to unregister
    • getMinimumSize

      public Dimension getMinimumSize()
      If the minimum size has been set to a non-null value just returns it. If the UI delegate's getMinimumSize method returns a non-null value then return that; otherwise defer to the component's layout manager.
      Overrides:
      getMinimumSize in class JComponent
      Returns:
      the value of the minimumSize property
      See Also: