Package ca.phon.app.session.editor.undo
Class TierEdit<T>
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
ca.phon.app.session.editor.undo.SessionEditorUndoableEdit
ca.phon.app.session.editor.undo.TierEdit<T>
- All Implemented Interfaces:
IExtendable
,Serializable
,UndoableEdit
- Direct Known Subclasses:
BlindTierEdit
,IPALookupEdit
A change to the value of a group in a tier.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
Constructor Summary
ConstructorDescriptionTierEdit
(SessionEditor editor, Tier<T> tier, int groupIndex, T newValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
doIt()
'Do' the specified action.int
getTier()
boolean
void
setFireHardChangeOnUndo
(boolean fireHardChangeOnUndo) void
setOldValue
(T oldValue) 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
-
TierEdit
Constructor- Parameters:
editor
-tier
-groupIndex
-newValue
-
-
-
Method Details
-
getUndoPresentationName
- Specified by:
getUndoPresentationName
in interfaceUndoableEdit
- Overrides:
getUndoPresentationName
in classAbstractUndoableEdit
-
getRedoPresentationName
- Specified by:
getRedoPresentationName
in interfaceUndoableEdit
- Overrides:
getRedoPresentationName
in classAbstractUndoableEdit
-
getOldValue
-
setOldValue
-
getTier
-
getGroupIndex
public int getGroupIndex() -
getNewValue
-
isFireHardChangeOnUndo
public boolean isFireHardChangeOnUndo() -
setFireHardChangeOnUndo
public void setFireHardChangeOnUndo(boolean fireHardChangeOnUndo) -
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
-