org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.AttributeRemovedCommand

public static class HistoryBrowserInterface.AttributeRemovedCommand extends AbstractUndoableCommand

Removes the attribute of an element (MutationEvent.REMOVAL)
Field Summary
protected StringattributeName
The attribute name.
protected ElementcontextElement
The context element.
protected StringnamespaceURI
The namespaceURI.
protected StringprevValue
The previous attribute value.
Constructor Summary
AttributeRemovedCommand(String commandName, Element contextElement, String attributeName, String prevAttributeValue, String namespaceURI)
Constructor.
Method Summary
voidexecute()
voidredo()
booleanshouldExecute()
voidundo()

Field Detail

attributeName

protected String attributeName
The attribute name.

contextElement

protected Element contextElement
The context element.

namespaceURI

protected String namespaceURI
The namespaceURI.

prevValue

protected String prevValue
The previous attribute value.

Constructor Detail

AttributeRemovedCommand

public AttributeRemovedCommand(String commandName, Element contextElement, String attributeName, String prevAttributeValue, String namespaceURI)
Constructor.

Parameters: commandName The name of this command. contextElement The context element attributeName The attribute name prevAttributeValue The previous attribute value namespaceURI The namespaceURI

Method Detail

execute

public void execute()

redo

public void redo()

shouldExecute

public boolean shouldExecute()

undo

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