org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.AttributeAddedCommand

public static class HistoryBrowserInterface.AttributeAddedCommand extends AbstractUndoableCommand

Adds the attribute to an element (MutationEvent.ADDITION)
Field Summary
protected StringattributeName
The attribute name.
protected ElementcontextElement
The context element.
protected StringnamespaceURI
The namespaceURI.
protected StringnewValue
The attribute value.
Constructor Summary
AttributeAddedCommand(String commandName, Element contextElement, String attributeName, String newAttributeValue, 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.

newValue

protected String newValue
The attribute value.

Constructor Detail

AttributeAddedCommand

public AttributeAddedCommand(String commandName, Element contextElement, String attributeName, String newAttributeValue, String namespaceURI)
Constructor.

Parameters: commandName The name of this command. contextElement The context element attributeName The attribute name newAttributeValue The 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.