|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
eu.beesoft.gantt.undo.UndoStep
public class UndoStep
Represents one undo / redo step. Each object which can be changed in this
step, should be registered in this instance via calling
registerObject(Object)
method.
Field Summary |
---|
Fields inherited from class javax.swing.undo.CompoundEdit |
---|
edits |
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
RedoName, UndoName |
Constructor Summary | |
---|---|
UndoStep()
Creates a new instance of UndoStep. |
Method Summary | |
---|---|
void |
end()
Gets the post-edit state of the required objects and ends the edit. |
void |
registerObject(java.lang.Object object)
Registers object to store / restore its state. |
Methods inherited from class javax.swing.undo.CompoundEdit |
---|
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isInProgress, isSignificant, lastEdit, redo, toString, undo |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
replaceEdit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UndoStep()
Method Detail |
---|
public void registerObject(java.lang.Object object)
If given object
does not implement interface
StateEditable
, the object
is
covered by StateEditableObject
to make it eligibly for undo /
redo operations.
Then is object registered and its pre-state is obtained.
object
- - object to registerpublic void end()
end
in class javax.swing.undo.CompoundEdit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |