org.robokind.api.animation.editor.history
Class DefaultHistoryAction

java.lang.Object
  extended by org.robokind.api.animation.editor.history.DefaultHistoryAction
All Implemented Interfaces:
HistoryAction

public class DefaultHistoryAction
extends Object
implements HistoryAction

Author:
Matthew Stevenson

Constructor Summary
DefaultHistoryAction(String name, EditorAction redo, EditorAction undo, boolean actionPerformed)
           
 
Method Summary
 boolean getActionPerformed()
           
 String getName()
           
 void redo(Object invoker)
           
 void toggle(Object invoker)
           
 void undo(Object invoker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHistoryAction

public DefaultHistoryAction(String name,
                            EditorAction redo,
                            EditorAction undo,
                            boolean actionPerformed)
Parameters:
name -
redo -
undo -
actionPerformed -
Method Detail

getName

public String getName()
Specified by:
getName in interface HistoryAction
Returns:

toggle

public void toggle(Object invoker)
Specified by:
toggle in interface HistoryAction
Parameters:
invoker -

undo

public void undo(Object invoker)
Specified by:
undo in interface HistoryAction
Parameters:
invoker -

redo

public void redo(Object invoker)
Specified by:
redo in interface HistoryAction
Parameters:
invoker -

getActionPerformed

public boolean getActionPerformed()
Specified by:
getActionPerformed in interface HistoryAction
Returns:


Copyright © 2011-2013. All Rights Reserved.