Package com.tagtraum.beatunes
Class Property.PropertyUndoableEdit<T>
- java.lang.Object
-
- javax.swing.undo.AbstractUndoableEdit
-
- com.tagtraum.beatunes.Property.PropertyUndoableEdit<T>
-
- Type Parameters:
T- type of property
- All Implemented Interfaces:
Serializable,UndoableEdit
public static class Property.PropertyUndoableEdit<T> extends AbstractUndoableEdit
SpecialUndoableEditwith modifiablegetPresentationName(). CallingsetPresentationName(String)allows for late localization.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPresentationName()RunnablegetUIUpdate()voidredo()voidsetPresentationName(String presentationName)voidsetUIUpdate(Runnable uiUpdate)StringtoString()voidundo()-
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit
-
-
-
-
Method Detail
-
getUIUpdate
public Runnable getUIUpdate()
- Returns:
- runnable
-
setUIUpdate
public void setUIUpdate(Runnable uiUpdate)
- Parameters:
uiUpdate- runnable
-
undo
public void undo() throws CannotUndoException- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
redo
public void redo() throws CannotRedoException- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotRedoException
-
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
setPresentationName
public void setPresentationName(String presentationName)
-
toString
public String toString()
- Overrides:
toStringin classAbstractUndoableEdit
-
-