com.jaxfront.core.util.undo
Class ListUndoableEditWrapper

java.lang.Object
  extended by com.jaxfront.core.util.undo.JAXFrontUndoableEditWrapper
      extended by com.jaxfront.core.util.undo.ListUndoableEditWrapper
All Implemented Interfaces:
JAXFrontUndoableEdit, javax.swing.undo.UndoableEdit

public class ListUndoableEditWrapper
extends JAXFrontUndoableEditWrapper


Field Summary
static short ADD
           
static short DELETE
           
 
Constructor Summary
ListUndoableEditWrapper(JAXFrontUndoManager manager, java.lang.Object eventSource, ListType target, Type listItem, int index, short action)
           
ListUndoableEditWrapper(JAXFrontUndoManager manager, java.lang.Object eventSource, java.lang.String target, java.lang.String listItemValue, int index, short action)
           
 
Method Summary
 boolean canRedo()
           
 boolean canUndo()
           
 void die()
           
 java.lang.String getPresentationName()
           
 java.lang.String getRedoPresentationName()
           
 java.lang.String getUndoPresentationName()
           
 void redo()
           
 void serialize(java.io.PrintWriter writer)
           
 void undo()
           
 
Methods inherited from class com.jaxfront.core.util.undo.JAXFrontUndoableEditWrapper
addEdit, evalTargetType, getInfo, isSignificant, macroRedo, macroUndo, replaceEdit, setFirst, setIsInCompoundEdit, setLast, setSignificant, startBlocking, stopBlocking, visualizeRedo, visualizeUndo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELETE

public static final short DELETE
See Also:
Constant Field Values

ADD

public static final short ADD
See Also:
Constant Field Values
Constructor Detail

ListUndoableEditWrapper

public ListUndoableEditWrapper(JAXFrontUndoManager manager,
                               java.lang.Object eventSource,
                               ListType target,
                               Type listItem,
                               int index,
                               short action)

ListUndoableEditWrapper

public ListUndoableEditWrapper(JAXFrontUndoManager manager,
                               java.lang.Object eventSource,
                               java.lang.String target,
                               java.lang.String listItemValue,
                               int index,
                               short action)
Method Detail

die

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

getPresentationName

public java.lang.String getPresentationName()

getRedoPresentationName

public java.lang.String getRedoPresentationName()
Specified by:
getRedoPresentationName in interface javax.swing.undo.UndoableEdit
Overrides:
getRedoPresentationName in class JAXFrontUndoableEditWrapper

getUndoPresentationName

public java.lang.String getUndoPresentationName()
Specified by:
getUndoPresentationName in interface javax.swing.undo.UndoableEdit
Overrides:
getUndoPresentationName in class JAXFrontUndoableEditWrapper

redo

public void redo()
          throws javax.swing.undo.CannotRedoException
Specified by:
redo in interface javax.swing.undo.UndoableEdit
Overrides:
redo in class JAXFrontUndoableEditWrapper
Throws:
javax.swing.undo.CannotRedoException

undo

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

canRedo

public boolean canRedo()
Specified by:
canRedo in interface javax.swing.undo.UndoableEdit
Overrides:
canRedo in class JAXFrontUndoableEditWrapper

canUndo

public boolean canUndo()
Specified by:
canUndo in interface javax.swing.undo.UndoableEdit
Overrides:
canUndo in class JAXFrontUndoableEditWrapper

serialize

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