|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.apps.svgbrowser.AbstractUndoableCommand
org.apache.batik.apps.svgbrowser.HistoryBrowserInterface.AttributeModifiedCommand
public static class HistoryBrowserInterface.AttributeModifiedCommand
Modifies the attribute of an element (MutationEvent.MODIFICATION)
| Field Summary | |
|---|---|
protected java.lang.String |
attributeName
The attribute name. |
protected Element |
contextElement
The context element. |
protected java.lang.String |
namespaceURI
The namespaceURI. |
protected java.lang.String |
newAttributeValue
New attribute value. |
protected java.lang.String |
prevAttributeValue
Previous attribute value. |
| Fields inherited from class org.apache.batik.apps.svgbrowser.AbstractUndoableCommand |
|---|
name |
| Constructor Summary | |
|---|---|
HistoryBrowserInterface.AttributeModifiedCommand(java.lang.String commandName,
Element contextElement,
java.lang.String attributeName,
java.lang.String prevAttributeValue,
java.lang.String newAttributeValue,
java.lang.String namespaceURI)
Constructor. |
|
| Method Summary | |
|---|---|
void |
execute()
Executes this command. |
void |
redo()
Performs redo for this command. |
boolean |
shouldExecute()
Tests if the command can be executed. |
void |
undo()
Performs undo for this command. |
| Methods inherited from class org.apache.batik.apps.svgbrowser.AbstractUndoableCommand |
|---|
getName, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Element contextElement
protected java.lang.String attributeName
protected java.lang.String prevAttributeValue
protected java.lang.String newAttributeValue
protected java.lang.String namespaceURI
| Constructor Detail |
|---|
public HistoryBrowserInterface.AttributeModifiedCommand(java.lang.String commandName,
Element contextElement,
java.lang.String attributeName,
java.lang.String prevAttributeValue,
java.lang.String newAttributeValue,
java.lang.String namespaceURI)
commandName - The name of this command.contextElement - The context elementattributeName - The attribute nameprevAttributeValue - The previous attribute valuenewAttributeValue - The new attribute valuenamespaceURI - The namespaceURI| Method Detail |
|---|
public void execute()
UndoableCommand
execute in interface UndoableCommandexecute in class AbstractUndoableCommandpublic void undo()
UndoableCommand
undo in interface UndoableCommandundo in class AbstractUndoableCommandpublic void redo()
UndoableCommand
redo in interface UndoableCommandredo in class AbstractUndoableCommandpublic boolean shouldExecute()
UndoableCommand
shouldExecute in interface UndoableCommandshouldExecute in class AbstractUndoableCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||