org.jbpm.formbuilder.client.options
Class UndoRedoManager

java.lang.Object
  extended by org.jbpm.formbuilder.client.options.UndoRedoManager

public class UndoRedoManager
extends Object

Handles undo / redo actions


Method Summary
 boolean canRedo()
           
 boolean canUndo()
           
static UndoRedoManager getInstance()
           
 void redo()
          gets the next action in the history and redoes it
protected  void syncAdd(UndoableEvent event)
           
 void undo()
          gets the previous action in the history and reverts it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UndoRedoManager getInstance()

syncAdd

protected void syncAdd(UndoableEvent event)

undo

public void undo()
gets the previous action in the history and reverts it


redo

public void redo()
gets the next action in the history and redoes it


canUndo

public boolean canUndo()

canRedo

public boolean canRedo()


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.