Package org.fxmisc.undo.impl
Class UndoManagerImpl.UndoPositionImpl
- java.lang.Object
-
- org.fxmisc.undo.impl.UndoManagerImpl.UndoPositionImpl
-
- All Implemented Interfaces:
UndoManager.UndoPosition
- Enclosing class:
- UndoManagerImpl<C>
private class UndoManagerImpl.UndoPositionImpl extends java.lang.Object implements UndoManager.UndoPosition
-
-
Field Summary
Fields Modifier and Type Field Description private ChangeQueue.QueuePositionqueuePos
-
Constructor Summary
Constructors Constructor Description UndoPositionImpl(ChangeQueue.QueuePosition queuePos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid()Checks whether this history position is still valid.voidmark()Sets the mark of the underlying UndoManager at this position.
-
-
-
Field Detail
-
queuePos
private final ChangeQueue.QueuePosition queuePos
-
-
Constructor Detail
-
UndoPositionImpl
UndoPositionImpl(ChangeQueue.QueuePosition queuePos)
-
-
Method Detail
-
mark
public void mark()
Description copied from interface:UndoManager.UndoPositionSets the mark of the underlying UndoManager at this position. The mark is set whether or not this position is valid. It is OK for an UndoManager to be marked at an invalid position.- Specified by:
markin interfaceUndoManager.UndoPosition
-
isValid
public boolean isValid()
Description copied from interface:UndoManager.UndoPositionChecks whether this history position is still valid. A position becomes invalid when- the change immediately preceding the position is undone and then discarded due to another incoming change; or
- the change immediately following the position is forgotten due to history size limit.
- Specified by:
isValidin interfaceUndoManager.UndoPosition
-
-