org.apache.batik.apps.svgbrowser

Class HistoryBrowserInterface.AttributeModifiedCommand

public static class HistoryBrowserInterface.AttributeModifiedCommand extends AbstractUndoableCommand

Modifies the attribute of an element (MutationEvent.MODIFICATION)
Field Summary
protected StringattributeName
The attribute name.
protected ElementcontextElement
The context element.
protected StringnamespaceURI
The namespaceURI.
protected StringnewAttributeValue
New attribute value.
protected StringprevAttributeValue
Previous attribute value.
Constructor Summary
AttributeModifiedCommand(String commandName, Element contextElement, String attributeName, String prevAttributeValue, 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.

newAttributeValue

protected String newAttributeValue
New attribute value.

prevAttributeValue

protected String prevAttributeValue
Previous attribute value.

Constructor Detail

AttributeModifiedCommand

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

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