Class MainGui.MessagingPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
MainGui

public static class MainGui.MessagingPanel extends JPanel
This panel prompts for the information needed for sending an APRS text message.
Author:
Andrew Pavlin, KA2DDO
See Also:
  • Constructor Details

    • MessagingPanel

      public MessagingPanel(JComboBox cbStationId)
      Create a MessagingPanel using a JComboBox pre-loaded wih all the allowable station callsigns.
      Parameters:
      cbStationId - JComboBox loaded with Strings and StationState objects of the messageable stations
    • MessagingPanel

      public MessagingPanel(JComboBox cbStationId, boolean isPortrait)
      Create a MessagingPanel using a JComboBox pre-loaded wih all the allowable station callsigns.
      Parameters:
      cbStationId - JComboBox loaded with Strings and StationState objects of the messageable stations
      isPortrait - boolean true if components should be laid out for a narrow screen/window in portrait layout, false for landscape layout
  • Method Details

    • setFont

      public void setFont(Font font)
      Overrides:
      setFont in class JComponent
    • getStandardDigipeatPaths

      public String[] getStandardDigipeatPaths()
      Get the standard digipeating paths the dialog was pre-loaded with.
      Returns:
      array of Strings containing standard digipeat paths
      See Also:
    • getRelayPath

      public String getRelayPath()
      Get the digipeating path selected by the user.
      Returns:
      String of the chosen digipeat path
    • setRelayPath

      public void setRelayPath(String path)
      Set the digipeating path.
      Parameters:
      path - String of the chosen digipeat path
    • getMsgText

      public String getMsgText()
      Get the message text to be transmitted.
      Returns:
      String to send
    • setMsgText

      public void setMsgText(String text)
      Pre-load the message text editing field with the specified string.
      Parameters:
      text - String to replace the contents of the text editing field
    • getMsgTextWidget

      public JTextField getMsgTextWidget()
      Get the widget used for entering the text message. Needed when alternate keybaord is in use.
      Returns:
      JTextField for the message text