public abstract class AbstractCommand extends Object implements Command
DELETE, INSERT, UPDATE
Constructor and Description |
---|
AbstractCommand(String description)
Creates a new AbstractCommand.
|
Modifier and Type | Method and Description |
---|---|
Date |
getDate()
Returns a String with the date in which this command was created or
redone.
|
String |
getDescription()
Returns this command description
|
String |
toString() |
protected void |
updateDate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType
public AbstractCommand(String description)
description
- of the commandpublic Date getDate()
UndoRedoInfo
getDate
in interface UndoRedoInfo
public String getDescription()
UndoRedoInfo
getDescription
in interface UndoRedoInfo
protected void updateDate()