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 TypeMethodDescriptionvoid
doIt()
'Do' the specified action.boolean
void
setFireEvent
(boolean fireEvent) void
undo()
Methods inherited from class ca.phon.app.session.editor.undo.SessionUndoableEdit
canRedo, canUndo, getEditorEventManager, getExtension, getExtensions, getSession, getSource, putExtension, redo, removeExtension, setSource
Methods 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:
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 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:
doIt
in classSessionUndoableEdit
-