|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.gui.UndoHistory
public class UndoHistory
This class serves storing Test Tree state and navigating through it to give the undo/redo ability for test plan changes
Nested Class Summary | |
---|---|
static interface |
UndoHistory.HistoryListener
Interface to be implemented by components interested in UndoHistory |
Constructor Summary | |
---|---|
UndoHistory()
|
Method Summary | |
---|---|
void |
add(JMeterTreeModel treeModel,
String comment)
Add tree model copy to the history This method relies on the rule that the record in history made AFTER change has been made to test plan |
boolean |
canRedo()
|
boolean |
canUndo()
|
void |
clear()
Clears the undo history |
void |
moveInHistory(int offset,
JMeterTreeModel acceptorModel)
Goes through undo history, changing GUI |
void |
registerHistoryListener(UndoHistory.HistoryListener listener)
Register HistoryListener |
void |
treeNodesChanged(TreeModelEvent tme)
Record the changes in the node as the undo step |
void |
treeNodesInserted(TreeModelEvent tme)
Record adding nodes as the undo step |
void |
treeNodesRemoved(TreeModelEvent tme)
Record deleting nodes as the undo step |
void |
treeStructureChanged(TreeModelEvent tme)
Record some other change |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndoHistory()
Method Detail |
---|
public void clear()
public void add(JMeterTreeModel treeModel, String comment)
treeModel
- JMeterTreeModelcomment
- Stringpublic void moveInHistory(int offset, JMeterTreeModel acceptorModel)
offset
- the direction to go to, usually -1 for undo or 1 for redoacceptorModel
- TreeModel to accept the changespublic boolean canRedo()
public boolean canUndo()
public void treeNodesChanged(TreeModelEvent tme)
treeNodesChanged
in interface TreeModelListener
tme
- public void treeNodesInserted(TreeModelEvent tme)
treeNodesInserted
in interface TreeModelListener
tme
- public void treeNodesRemoved(TreeModelEvent tme)
treeNodesRemoved
in interface TreeModelListener
tme
- public void treeStructureChanged(TreeModelEvent tme)
treeStructureChanged
in interface TreeModelListener
tme
- public void registerHistoryListener(UndoHistory.HistoryListener listener)
listener
-
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |