Class AddRecordEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
ca.phon.app.session.editor.undo.SessionUndoableEdit
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
ConstructorsConstructorDescriptionAddRecordEdit(SessionEditor editor) AddRecordEdit(SessionEditor editor, Record record) AddRecordEdit(SessionEditor editor, Record record, int elementIndex) AddRecordEdit(Session session, EditorEventManager editorEventManager) AddRecordEdit(Session session, EditorEventManager editorEventManager, Record record) AddRecordEdit(Session session, EditorEventManager editorEventManager, Record record, int elementIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoIt()'Do' the specified action.booleanvoidsetFireEvent(boolean fireEvent) voidundo()Methods inherited from class ca.phon.app.session.editor.undo.SessionUndoableEdit
canRedo, canUndo, getEditorEventManager, getExtension, getExtensions, getSession, getSource, putExtension, redo, removeExtension, setSourceMethods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, die, getPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
AddRecordEdit
-
AddRecordEdit
-
AddRecordEdit
-
AddRecordEdit
-
AddRecordEdit
-
AddRecordEdit
public AddRecordEdit(Session session, EditorEventManager editorEventManager, Record record, int elementIndex)
-
-
Method Details
-
setFireEvent
public void setFireEvent(boolean fireEvent) -
isFireEvent
public boolean isFireEvent() -
getUndoPresentationName
- Specified by:
getUndoPresentationNamein interfaceUndoableEdit- Overrides:
getUndoPresentationNamein classAbstractUndoableEdit
-
getRedoPresentationName
- Specified by:
getRedoPresentationNamein interfaceUndoableEdit- Overrides:
getRedoPresentationNamein classAbstractUndoableEdit
-
getRecord
-
undo
public void undo()- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit
-
doIt
public void doIt()Description copied from class:SessionUndoableEdit'Do' the specified action. The method is called by the EditorUnsoSupport when new edits are posted.- Specified by:
doItin classSessionUndoableEdit
-