org.gvsig.tools.undo.command.impl
Class AbstractCommand

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.gvsig.tools.undo.UndoRedoInfo
DELETE, INSERT, UPDATE
 
Constructor Summary
AbstractCommand(String description)
          Creates a new AbstractCommand.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gvsig.tools.undo.command.Command
redo, undo
 
Methods inherited from interface org.gvsig.tools.undo.UndoRedoInfo
getType
 

Constructor Detail

AbstractCommand

public AbstractCommand(String description)
Creates a new AbstractCommand.

Parameters:
description - of the command
Method Detail

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.