Class ReceiversPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SettingsListener

public class ReceiversPanel extends JPanel implements SettingsListener
This panel is used to manage all the Receivers configured within Log4j
Author:
Paul Smith <psmith@apache.org>, Scott Deboy <sdeboy@apache.org>
See Also:
  • Constructor Details

    • ReceiversPanel

      public ReceiversPanel()
  • Method Details

    • getReceiverTreeModel

      protected ReceiversTreeModel getReceiverTreeModel()
    • updateCurrentlySelectedNodeInDispatchThread

      protected void updateCurrentlySelectedNodeInDispatchThread()
    • updateReceiverTreeInDispatchThread

      public void updateReceiverTreeInDispatchThread()
      Ensures that the Receiver tree is updated with the latest information and that this operation occurs in the Swing Event Dispatch thread.
    • setVisible

      public void setVisible(boolean aFlag)
      Overrides:
      setVisible in class JComponent
    • loadSettings

      public void loadSettings(LoadSettingsEvent event)
      Description copied from interface: SettingsListener
      When a request to load Settings has been requested, this method will be invoked by the SettingsManager. The implementing component can query the event for settings, and modify it's internal state based on these settings.
      Specified by:
      loadSettings in interface SettingsListener
      Parameters:
      event -
    • saveSettings

      public void saveSettings(SaveSettingsEvent event)
      Saves all the receivers which are active at shut down as a configuration file which can be loaded when Chainsaw will be restarted.
      Specified by:
      saveSettings in interface SettingsListener