Class AddTierEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
ca.phon.app.session.editor.undo.SessionUndoableEdit
ca.phon.app.session.editor.undo.AddTierEdit
- All Implemented Interfaces:
IExtendable
,Serializable
,UndoableEdit
Add a new tier to the session. This will also add a new empty tier
to each record. Some tiers such as Word Intervals and Phone Intervals
will be populated and locked when added.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
Constructor Summary
ConstructorsConstructorDescriptionAddTierEdit
(SessionEditor editor, TierDescription tierDesc, TierViewItem tvi) AddTierEdit
(SessionEditor editor, TierDescription tierDesc, TierViewItem tvi, int index) AddTierEdit
(Session session, EditorEventManager editorEventManager, TierDescription tierDesc, TierViewItem tvi) AddTierEdit
(Session session, EditorEventManager editorEventManager, TierDescription tierDesc, TierViewItem tvi, int index) -
Method Summary
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
-
AddTierEdit
-
AddTierEdit
public AddTierEdit(Session session, EditorEventManager editorEventManager, TierDescription tierDesc, TierViewItem tvi) -
AddTierEdit
-
AddTierEdit
public AddTierEdit(Session session, EditorEventManager editorEventManager, TierDescription tierDesc, TierViewItem tvi, int index)
-
-
Method Details
-
getRedoPresentationName
- Specified by:
getRedoPresentationName
in interfaceUndoableEdit
- Overrides:
getRedoPresentationName
in classAbstractUndoableEdit
-
getUndoPresentationName
- Specified by:
getUndoPresentationName
in interfaceUndoableEdit
- Overrides:
getUndoPresentationName
in classAbstractUndoableEdit
-
undo
- Specified by:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-
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
-