jimm.datavision.gui.cmd
Class ScriptingCommand

java.lang.Object
  extended by jimm.datavision.gui.cmd.CommandAdapter
      extended by jimm.datavision.gui.cmd.ScriptingCommand
All Implemented Interfaces:
Command, Nameable

public class ScriptingCommand
extends CommandAdapter

Performs changes to a report's scripting language information.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  java.lang.String newDefaultLang
           
protected  java.util.Map newLangs
           
protected  java.lang.String origDefaultLang
           
protected  java.util.Map origLangs
           
protected  Scripting scripting
           
 
Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter
name
 
Constructor Summary
ScriptingCommand(Scripting scripting, java.lang.String newDefaultLang, java.util.Map newLangs)
           
 
Method Summary
 void perform()
          Performs the command.
 void undo()
          Undoes the command.
 
Methods inherited from class jimm.datavision.gui.cmd.CommandAdapter
getName, redo, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scripting

protected Scripting scripting

newDefaultLang

protected java.lang.String newDefaultLang

newLangs

protected java.util.Map newLangs

origDefaultLang

protected java.lang.String origDefaultLang

origLangs

protected java.util.Map origLangs
Constructor Detail

ScriptingCommand

public ScriptingCommand(Scripting scripting,
                        java.lang.String newDefaultLang,
                        java.util.Map newLangs)
Method Detail

perform

public void perform()
Description copied from class: CommandAdapter
Performs the command. The default implementation does nothing.

Specified by:
perform in interface Command
Overrides:
perform in class CommandAdapter

undo

public void undo()
Description copied from class: CommandAdapter
Undoes the command. The default implementation does nothing.

Specified by:
undo in interface Command
Overrides:
undo in class CommandAdapter