Class ReceiverConfigurationPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

class ReceiverConfigurationPanel extends JPanel
A panel providing receiver configuration options
  • Field Details

    • logger

      private final org.apache.log4j.Logger logger
    • panelModel

      private final ReceiverConfigurationPanel.PanelModel panelModel
    • networkReceiverPortComboBox

      private JComboBox<String> networkReceiverPortComboBox
    • networkReceiverClassNameComboBox

      private JComboBox<String> networkReceiverClassNameComboBox
    • networkReceiverClassNameComboBoxModel

      private DefaultComboBoxModel<String> networkReceiverClassNameComboBoxModel
    • networkReceiverPortComboBoxModel

      private DefaultComboBoxModel<String> networkReceiverPortComboBoxModel
    • browseLog4jConfigButton

      private JButton browseLog4jConfigButton
    • log4jConfigURLTextField

      private JTextField log4jConfigURLTextField
    • browseLogFileButton

      private JButton browseLogFileButton
    • logFileFormatTypeComboBox

      private JComboBox<String> logFileFormatTypeComboBox
    • logFileFormatComboBox

      private JComboBox<String> logFileFormatComboBox
    • logFileFormatTimestampFormatComboBox

      private JComboBox<String> logFileFormatTimestampFormatComboBox
    • logFileURLTextField

      private JTextField logFileURLTextField
    • logFileFormatComboBoxModel

      private DefaultComboBoxModel<String> logFileFormatComboBoxModel
    • logFileFormatTimestampFormatComboBoxModel

      private DefaultComboBoxModel<String> logFileFormatTimestampFormatComboBoxModel
    • browseForAnExistingConfigurationButton

      private JButton browseForAnExistingConfigurationButton
    • existingConfigurationComboBoxModel

      private DefaultComboBoxModel<String> existingConfigurationComboBoxModel
    • existingConfigurationComboBox

      private JComboBox<String> existingConfigurationComboBox
    • dontwarnIfNoReceiver

      private JCheckBox dontwarnIfNoReceiver
    • saveButton

      private JButton saveButton
    • okButton

      private JButton okButton
    • cancelButton

      private JButton cancelButton
    • log4jConfigReceiverRadioButton

      private JRadioButton log4jConfigReceiverRadioButton
    • logFileReceiverRadioButton

      private JRadioButton logFileReceiverRadioButton
    • networkReceiverRadioButton

      private JRadioButton networkReceiverRadioButton
    • useExistingConfigurationRadioButton

      private JRadioButton useExistingConfigurationRadioButton
    • buttonGroup

      private ButtonGroup buttonGroup
    • lowerPanel

      private JPanel lowerPanel
    • networkReceiverPanel

      private final JPanel networkReceiverPanel
    • logFileReceiverPanel

      private final JPanel logFileReceiverPanel
    • log4jConfigReceiverPanel

      private final JPanel log4jConfigReceiverPanel
    • useExistingConfigurationPanel

      private final JPanel useExistingConfigurationPanel
    • dontWarnAndOKPanel

      private final JPanel dontWarnAndOKPanel
    • bottomDescriptionPanel

      private final JPanel bottomDescriptionPanel
    • completionActionListener

      private ActionListener completionActionListener
    • dialog

      private Container dialog
  • Constructor Details

    • ReceiverConfigurationPanel

      ReceiverConfigurationPanel()
  • Method Details

    • buildDontWarnAndOKPanel

      private JPanel buildDontWarnAndOKPanel()
    • buildBottomDescriptionPanel

      private JPanel buildBottomDescriptionPanel()
    • buildNetworkReceiverPanel

      private JPanel buildNetworkReceiverPanel()
    • buildLog4jConfigReceiverPanel

      private JPanel buildLog4jConfigReceiverPanel()
    • buildLogFileReceiverPanel

      private JPanel buildLogFileReceiverPanel()
    • seedLogFileFormatComboBoxModel

      private void seedLogFileFormatComboBoxModel()
    • seedLogFileFormatTimestampComboBoxModel

      private void seedLogFileFormatTimestampComboBoxModel()
    • buildUseExistingConfigurationPanel

      private JPanel buildUseExistingConfigurationPanel()
    • getModel

      Returns the current Model/state of the chosen options by the user.
      Returns:
      model
    • setCompletionActionListener

      void setCompletionActionListener(ActionListener actionListener)
      Clients of this panel can configure the ActionListener to be used when the user presses the OK button, so they can read back this Panel's model top determine what to do.
      Parameters:
      actionListener - listener which will be notified that ok was selected
    • updateEnabledState

      private void updateEnabledState(Component component)
    • browseConfig

      private URL browseConfig() throws MalformedURLException
      Returns the URL chosen by the user for a Configuration file or null if they cancelled.
      Throws:
      MalformedURLException
    • browseFile

      private URL browseFile(String title, boolean loadDialog) throws MalformedURLException
      Returns the URL chosen by the user for a Configuration file or null if they cancelled.
      Throws:
      MalformedURLException
    • main

      public static void main(String[] args)
    • isDontWarnMeAgain

      public final boolean isDontWarnMeAgain()
      Returns:
      Returns the dontWarnMeAgain.
    • setDialog

      public void setDialog(Container dialog)