org.gvsig.tools.undo.command.impl
Class AbstractCommand
java.lang.Object
org.gvsig.tools.undo.command.impl.AbstractCommand
- All Implemented Interfaces:
- Command, UndoRedoInfo
- Direct Known Subclasses:
- CompoundCommand
public abstract class AbstractCommand
- extends Object
- implements Command
Base implementation for Commands.
- Author:
- Cèsar Ordiñana
Methods inherited from interface org.gvsig.tools.undo.command.Command |
redo, undo |
AbstractCommand
public AbstractCommand(String description)
- Creates a new AbstractCommand.
- Parameters:
description
- of the command
getDate
public Date getDate()
- Description copied from interface:
UndoRedoInfo
- Returns a String with the date in which this command was created or
redone.
- Specified by:
getDate
in interface UndoRedoInfo
- Returns:
- a String with the date in which this command was created or
redone
getDescription
public String getDescription()
- Description copied from interface:
UndoRedoInfo
- Returns this command description
- Specified by:
getDescription
in interface UndoRedoInfo
- Returns:
- a String with this command description
updateDate
protected void updateDate()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2004-2011 gvSIG. All Rights Reserved.