Class FileLoadAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    class FileLoadAction
    extends javax.swing.AbstractAction
    Allows the user to specify a particular file to open and import the events into a new tab.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Decoder decoder
      This action must have a reference to a LogUI window so that it can append the events it loads
      private static org.apache.log4j.Logger LOG  
      private LogUI parent  
      private boolean remoteURL  
      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Constructor Summary

      Constructors 
      Constructor Description
      FileLoadAction​(LogUI parent, Decoder decoder, java.lang.String title, boolean isRemoteURL)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      static void importURL​(ChainsawAppenderHandler handler, Decoder decoder, java.lang.String name, java.net.URL url)
      Imports a URL into Chainsaw, by using the Decoder, and using the name value as the Application key which (usually) determines the Tab name
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Field Detail

      • LOG

        private static final org.apache.log4j.Logger LOG
      • decoder

        Decoder decoder
        This action must have a reference to a LogUI window so that it can append the events it loads
      • parent

        private LogUI parent
      • remoteURL

        private boolean remoteURL
    • Constructor Detail

      • FileLoadAction

        public FileLoadAction​(LogUI parent,
                              Decoder decoder,
                              java.lang.String title,
                              boolean isRemoteURL)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
      • importURL

        public static void importURL​(ChainsawAppenderHandler handler,
                                     Decoder decoder,
                                     java.lang.String name,
                                     java.net.URL url)
        Imports a URL into Chainsaw, by using the Decoder, and using the name value as the Application key which (usually) determines the Tab name
        Parameters:
        name -
        url - URL to import