/*
* Created on 2004/12/02
* Author aki@www.xucker.jpn.org
* License Apache2.0 or Common Public License
*/
package org.jpn.xucker.commons.undo;
/**
*
*
*/
public class DeleteCommand extends AbstractCommand {
Deletable deletable;
public Deletable getDeletable() {
return deletable;
}
public void setDeletable(Deletable deletable) {
this.deletable = deletable;
}
/* (non-Javadoc)
* @see treeapp.generator.menu.command.Command#redo()
*/
public void execute() {
// TODO Auto-generated method stub
deletable.command_delete(target,object);
}
/* (non-Javadoc)
* @see treeapp.generator.menu.command.Command#undo()
*/
public void unexecute() {
deletable.command_addAt(target,object,index);
}
}
|