Package org.apache.jmeter.gui.action
Class CheckDirty
- java.lang.Object
-
- org.apache.jmeter.gui.action.AbstractAction
-
- org.apache.jmeter.gui.action.CheckDirty
-
- All Implemented Interfaces:
ActionListener,EventListener,Command,HashTreeTraverser
public class CheckDirty extends AbstractAction implements HashTreeTraverser, ActionListener
Check if the TestPlan has been changed since it was last saved
-
-
Constructor Summary
Constructors Constructor Description CheckDirty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent e)voidaddNode(Object node, HashTree subTree)The tree traverses itself depth-first, calling addNode for each object it encounters as it goes.voiddoAction(ActionEvent e)Set<String>getActionNames()voidprocessPath()Process path is called when a leaf is reached.voidsubtractNode()Indicates traversal has moved up a step, and the visitor should remove the top node from it's stack structure.-
Methods inherited from class org.apache.jmeter.gui.action.AbstractAction
popupShouldSave
-
-
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformedin interfaceActionListener
-
doAction
public void doAction(ActionEvent e)
- Specified by:
doActionin interfaceCommand- Overrides:
doActionin classAbstractAction- See Also:
Command.doAction(ActionEvent)
-
addNode
public void addNode(Object node, HashTree subTree)
The tree traverses itself depth-first, calling addNode for each object it encounters as it goes.- Specified by:
addNodein interfaceHashTreeTraverser- Parameters:
node- the node currently encounteredsubTree- the HashTree under the node encountered
-
subtractNode
public void subtractNode()
Indicates traversal has moved up a step, and the visitor should remove the top node from it's stack structure.- Specified by:
subtractNodein interfaceHashTreeTraverser
-
processPath
public void processPath()
Process path is called when a leaf is reached. If a visitor wishes to generate Lists of path elements to each leaf, it should keep a Stack data structure of nodes passed to it with addNode, and removing top items for every subtractNode() call.- Specified by:
processPathin interfaceHashTreeTraverser
-
getActionNames
public Set<String> getActionNames()
- Specified by:
getActionNamesin interfaceCommand- Specified by:
getActionNamesin classAbstractAction- See Also:
Command.getActionNames()
-
-