Class FeaturePropertyChangedUndoableEdit

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.undo.UndoableEdit

    public class FeaturePropertyChangedUndoableEdit
    extends NFEAtomicUndoableEdit
    Atomic undoable edit implementation that performs the undo/redo actions when a feature's property has changed.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.undo.AbstractUndoableEdit

        RedoName, UndoName
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void redo()  
      void undo()  
      • Methods inherited from class javax.swing.undo.AbstractUndoableEdit

        addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FeaturePropertyChangedUndoableEdit

        public FeaturePropertyChangedUndoableEdit​(NFEModel model,
                                                  NFEFeature feature,
                                                  java.lang.String propertyName,
                                                  java.lang.Object previousValue)
    • Method Detail

      • 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.AbstractUndoableEdit
        Throws:
        javax.swing.undo.CannotUndoException
      • redo

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