org.apache.batik.apps.svgbrowser

Class AbstractUndoableCommand

public abstract class AbstractUndoableCommand extends Object implements UndoableCommand

Represents abstract undoable/redoable command. Concrete commands should extend this class
Field Summary
protected Stringname
The command name.
Method Summary
voidexecute()
StringgetName()
voidredo()
voidsetName(String name)
Sets the command name.
booleanshouldExecute()
voidundo()

Field Detail

name

protected String name
The command name.

Method Detail

execute

public void execute()

getName

public String getName()

redo

public void redo()

setName

public void setName(String name)
Sets the command name.

Parameters: name Name to set

shouldExecute

public boolean shouldExecute()

undo

public void undo()
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.