Package ca.phon.app.session.editor.undo
Class AddRecordEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
ca.phon.app.session.editor.undo.SessionEditorUndoableEdit
ca.phon.app.session.editor.undo.AddRecordEdit
- All Implemented Interfaces:
IExtendable
,Serializable
,UndoableEdit
Edit performed when a new record is added.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
Constructor Summary
ConstructorDescriptionAddRecordEdit
(SessionEditor editor) AddRecordEdit
(SessionEditor editor, Record record) AddRecordEdit
(SessionEditor editor, Record record, int index) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doIt()
'Do' the specified action.boolean
void
setFireEvent
(boolean fireEvent) void
undo()
Methods inherited from class ca.phon.app.session.editor.undo.SessionEditorUndoableEdit
canRedo, canUndo, getEditor, getExtension, getExtensions, getSource, isSignificant, putExtension, redo, removeExtension, setSource
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, die, getPresentationName, replaceEdit, toString
-
Constructor Details
-
AddRecordEdit
-
AddRecordEdit
-
AddRecordEdit
-
-
Method Details
-
setFireEvent
public void setFireEvent(boolean fireEvent) -
isFireEvent
public boolean isFireEvent() -
getUndoPresentationName
- Specified by:
getUndoPresentationName
in interfaceUndoableEdit
- Overrides:
getUndoPresentationName
in classAbstractUndoableEdit
-
getRedoPresentationName
- Specified by:
getRedoPresentationName
in interfaceUndoableEdit
- Overrides:
getRedoPresentationName
in classAbstractUndoableEdit
-
getRecord
-
undo
public void undo()- Specified by:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classSessionEditorUndoableEdit
-
doIt
public void doIt()Description copied from class:SessionEditorUndoableEdit
'Do' the specified action. The method is called by the EditorUnsoSupport when new edits are posted.- Specified by:
doIt
in classSessionEditorUndoableEdit
-