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
SpecialUndoableEdit
with 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 String
getPresentationName()
Runnable
getUIUpdate()
void
redo()
void
setPresentationName(String presentationName)
void
setUIUpdate(Runnable uiUpdate)
String
toString()
void
undo()
-
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:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-
redo
public void redo() throws CannotRedoException
- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
- Throws:
CannotRedoException
-
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName
in interfaceUndoableEdit
- Overrides:
getPresentationName
in classAbstractUndoableEdit
-
setPresentationName
public void setPresentationName(String presentationName)
-
toString
public String toString()
- Overrides:
toString
in classAbstractUndoableEdit
-
-