Package org.fxmisc.undo
Interface UndoManager.UndoPosition
-
- All Known Implementing Classes:
UndoManagerImpl.UndoPositionImpl
- Enclosing interface:
- UndoManager<C>
public static interface UndoManager.UndoPositionRepresents a position in UndoManager's history.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
mark
void mark()
Sets 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.
-
isValid
boolean isValid()
Checks 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.
-
-