com.jaxfront.core.util.undo
Class CompoundEditWrapper

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by javax.swing.undo.CompoundEdit
          extended by com.jaxfront.core.util.undo.CompoundEditWrapper
All Implemented Interfaces:
JAXFrontUndoableEdit, java.io.Serializable, javax.swing.undo.UndoableEdit

public class CompoundEditWrapper
extends javax.swing.undo.CompoundEdit
implements JAXFrontUndoableEdit

See Also:
Serialized Form

Constructor Summary
CompoundEditWrapper()
           
CompoundEditWrapper(JAXFrontUndoManager manager)
           
CompoundEditWrapper(JAXFrontUndoManager manager, org.w3c.dom.Element serializedChilds)
           
 
Method Summary
 boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
           
 void end()
           
 java.lang.String getInfo()
           
 void macroRedo()
           
 void macroUndo()
           
 void redo()
           
 void serialize(java.io.PrintWriter writer)
           
 void setFirst(boolean b)
           
 void setLast(boolean b)
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.CompoundEdit
canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isInProgress, isSignificant, toString
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
replaceEdit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.undo.UndoableEdit
canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
 

Constructor Detail

CompoundEditWrapper

public CompoundEditWrapper()

CompoundEditWrapper

public CompoundEditWrapper(JAXFrontUndoManager manager)

CompoundEditWrapper

public CompoundEditWrapper(JAXFrontUndoManager manager,
                           org.w3c.dom.Element serializedChilds)
Method Detail

serialize

public void serialize(java.io.PrintWriter writer)
Specified by:
serialize in interface JAXFrontUndoableEdit

undo

public void undo()
          throws javax.swing.undo.CannotUndoException
Specified by:
undo in interface javax.swing.undo.UndoableEdit
Overrides:
undo in class javax.swing.undo.CompoundEdit
Throws:
javax.swing.undo.CannotUndoException

redo

public void redo()
Specified by:
redo in interface javax.swing.undo.UndoableEdit
Overrides:
redo in class javax.swing.undo.CompoundEdit

macroUndo

public void macroUndo()
               throws javax.swing.undo.CannotUndoException
Throws:
javax.swing.undo.CannotUndoException

macroRedo

public void macroRedo()

end

public void end()
Overrides:
end in class javax.swing.undo.CompoundEdit

setLast

public void setLast(boolean b)
Specified by:
setLast in interface JAXFrontUndoableEdit

addEdit

public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
Specified by:
addEdit in interface javax.swing.undo.UndoableEdit
Overrides:
addEdit in class javax.swing.undo.CompoundEdit

setFirst

public void setFirst(boolean b)
Specified by:
setFirst in interface JAXFrontUndoableEdit

getInfo

public java.lang.String getInfo()
Specified by:
getInfo in interface JAXFrontUndoableEdit