Package org.apache.log4j.chainsaw
Class FileLoadAction
java.lang.Object
javax.swing.AbstractAction
org.apache.log4j.chainsaw.FileLoadAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
Allows the user to specify a particular file to open and import the events
into a new tab.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Decoder
This action must have a reference to a LogUI window so that it can append the events it loadsprivate static final org.apache.log4j.Logger
private LogUI
private boolean
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
ConstructorsConstructorDescriptionFileLoadAction
(LogUI parent, Decoder decoder, String title, boolean isRemoteURL) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
importURL
(ChainsawAppenderHandler handler, Decoder decoder, String name, 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 nameMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
LOG
private static final org.apache.log4j.Logger LOG -
decoder
Decoder decoderThis action must have a reference to a LogUI window so that it can append the events it loads -
parent
-
remoteURL
private boolean remoteURL
-
-
Constructor Details
-
FileLoadAction
-
-
Method Details
-
actionPerformed
-
importURL
public static void importURL(ChainsawAppenderHandler handler, Decoder decoder, String name, 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
-