org.biopax.paxtools.command
Class AbstractAddRemoveCommand

java.lang.Object
  extended by org.biopax.paxtools.command.AbstractAddRemoveCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AddCommand, RemoveCommand

public abstract class AbstractAddRemoveCommand
extends java.lang.Object
implements Command


Constructor Summary
AbstractAddRemoveCommand(Model model, java.util.Set<BioPAXElement> bpes)
           
 
Method Summary
 boolean canUndo()
           
 boolean redo()
           
protected abstract  void redoAction(BioPAXElement bpe)
           
 boolean undo()
           
protected abstract  void undoAction(BioPAXElement bpe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAddRemoveCommand

public AbstractAddRemoveCommand(Model model,
                                java.util.Set<BioPAXElement> bpes)
Method Detail

undo

public boolean undo()
Specified by:
undo in interface Command

undoAction

protected abstract void undoAction(BioPAXElement bpe)

canUndo

public boolean canUndo()

redo

public boolean redo()
Specified by:
redo in interface Command

redoAction

protected abstract void redoAction(BioPAXElement bpe)


Copyright © 2011 BioPAX. All Rights Reserved.