de.qfs.apps.qflog.logview.command
Class CommandSaveLog

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--de.qfs.lib.command.Command
              |
              +--de.qfs.apps.qflog.logview.command.CommandSaveLog

public class CommandSaveLog
extends de.qfs.lib.command.Command
implements de.qfs.lib.command.Invokable

Save or restore a LogView's or LogFrame's Logs.

Version:
$Revision: 1.7 $
Author:
Gregor Schmid
See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CommandSaveLog(java.lang.Object source, java.awt.Frame parent, LogView view, java.io.File file, boolean save, boolean all)
          Create a new CommandSaveLog for a LogView.
CommandSaveLog(java.lang.Object source, LogFrame frame, java.io.File file, boolean save, boolean all)
          Create a new CommandSaveLog for a LogFrame.
 
Method Summary
 java.lang.Object invoke()
           
 
Methods inherited from class de.qfs.lib.command.Command
isHandled, setHandled
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandSaveLog

public CommandSaveLog(java.lang.Object source,
                      LogFrame frame,
                      java.io.File file,
                      boolean save,
                      boolean all)
Create a new CommandSaveLog for a LogFrame.
Parameters:
source - The source of the command.
frame - The LogFrame whose logs should be saved.
file - The file to save in / load from.
save - True to save, false to restore.
all - True to save all messages, false to save only the visible ones.

CommandSaveLog

public CommandSaveLog(java.lang.Object source,
                      java.awt.Frame parent,
                      LogView view,
                      java.io.File file,
                      boolean save,
                      boolean all)
Create a new CommandSaveLog for a LogView.
Parameters:
source - The source of the command.
parent - A parent frame for the file dialog.
view - The LogView whose logs should be saved.
file - The file to save in / load from.
save - True to save, false to restore.
all - True to save all messages, false to save only the visible ones.
Method Detail

invoke

public java.lang.Object invoke()
                        throws de.qfs.lib.command.CommandException
Specified by:
invoke in interface de.qfs.lib.command.Invokable