public class VersionController
extends java.lang.Object
Constructor and Description |
---|
VersionController() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormerContent()
Returns former content, check hasFormerContent() before.
|
boolean |
hasFormerContent()
Indicates whether or not there is former content available.
|
void |
interpret(java.awt.event.KeyEvent e,
java.lang.String content,
Undoable undoable)
Delegates key event handling to this class in order to check what to do: create a new version or undo.
|
void |
notifyChange(java.lang.String newContent,
boolean delay) |
void |
reset(java.lang.String content)
Indicates the beginning of versioning.
|
public void reset(java.lang.String content)
content
- the initial contentpublic void interpret(java.awt.event.KeyEvent e, java.lang.String content, Undoable undoable)
e
- the current key eventcontent
- the current content of the classundoable
- the interface to call the undo functionpublic void notifyChange(java.lang.String newContent, boolean delay)
public boolean hasFormerContent()
public java.lang.String getFormerContent()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de