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