Class SessionDateEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
ca.phon.app.session.editor.undo.SessionUndoableEdit
ca.phon.app.session.editor.undo.SessionDateEdit
- All Implemented Interfaces:
IExtendable,Serializable,UndoableEdit
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
ConstructorsConstructorDescriptionSessionDateEdit(SessionEditor editor, LocalDate newDate, LocalDate prevDate) SessionDateEdit(Session session, EditorEventManager editorEventManager, LocalDate newDate, LocalDate prevDate) -
Method Summary
Methods inherited from class ca.phon.app.session.editor.undo.SessionUndoableEdit
getEditorEventManager, getExtension, getExtensions, getSession, getSource, putExtension, redo, removeExtension, setSourceMethods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, die, getPresentationName, replaceEdit, toString
-
Constructor Details
-
SessionDateEdit
-
SessionDateEdit
public SessionDateEdit(Session session, EditorEventManager editorEventManager, LocalDate newDate, LocalDate prevDate)
-
-
Method Details
-
getNewDate
-
getPrevDate
-
canRedo
public boolean canRedo()- Specified by:
canRedoin interfaceUndoableEdit- Overrides:
canRedoin classSessionUndoableEdit
-
canUndo
public boolean canUndo()- Specified by:
canUndoin interfaceUndoableEdit- Overrides:
canUndoin classSessionUndoableEdit
-
getRedoPresentationName
- Specified by:
getRedoPresentationNamein interfaceUndoableEdit- Overrides:
getRedoPresentationNamein classAbstractUndoableEdit
-
getUndoPresentationName
- Specified by:
getUndoPresentationNamein interfaceUndoableEdit- Overrides:
getUndoPresentationNamein classAbstractUndoableEdit
-
isSignificant
public boolean isSignificant()- Specified by:
isSignificantin interfaceUndoableEdit- Overrides:
isSignificantin classAbstractUndoableEdit
-
undo
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin 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:
doItin classSessionUndoableEdit
-