de.qfs.apps.qflog.logview.command
Class CommandSaveConfiguration
java.lang.Object
|
+--java.util.EventObject
|
+--de.qfs.lib.command.Command
|
+--de.qfs.apps.qflog.logview.command.CommandSaveConfiguration
- public class CommandSaveConfiguration
- extends de.qfs.lib.command.Command
- implements de.qfs.lib.command.Invokable
Save or restore a LogView's or LogFrame's Configuration.
- Version:
- $Revision: 1.6 $
- Author:
- Gregor Schmid
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Method Summary |
java.lang.Object |
invoke()
Invoke the command. |
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 |
CommandSaveConfiguration
public CommandSaveConfiguration(java.lang.Object source,
LogFrame frame,
boolean save)
- Create a new CommandSaveConfiguration for a LogFrame.
- Parameters:
source
- The source of the command.frame
- The LogFrame whose configuration should be saved.save
- True to save, false to restore.
CommandSaveConfiguration
public CommandSaveConfiguration(java.lang.Object source,
java.awt.Frame parent,
LogView view,
boolean save)
- Create a new CommandSaveConfiguration for a LogView.
- Parameters:
source
- The source of the command.parent
- A parent frame for the file dialog.view
- The LogView whose configuration should be saved.save
- True to save, false to restore.
invoke
public java.lang.Object invoke()
throws de.qfs.lib.command.CommandException
- Invoke the command.
- Specified by:
- invoke in interface de.qfs.lib.command.Invokable
- Returns:
- Always null.
- Throws:
- de.qfs.lib.command.CommandException - If an I/O error occurs.