public class JMeterTreeModel extends DefaultTreeModel
asksAllowsChildren, listenerList, root| Constructor and Description |
|---|
JMeterTreeModel() |
JMeterTreeModel(Object o)
Deprecated.
- only for use by JMeter class!
|
JMeterTreeModel(TestElement tp) |
JMeterTreeModel(TestElement tp,
TestElement wb)
Deprecated.
since 4.0
|
| Modifier and Type | Method and Description |
|---|---|
JMeterTreeNode |
addComponent(TestElement component,
JMeterTreeNode node)
Add a
TestElement to a JMeterTreeNode |
HashTree |
addSubTree(HashTree subTree,
JMeterTreeNode current)
Adds the sub tree at the given node.
|
void |
clearTestPlan()
Clear the test plan, and use default node for test plan.
|
void |
clearTestPlan(TestElement testPlan)
Clear the test plan, and use specified node for test plan
N.B.
|
HashTree |
getCurrentSubTree(JMeterTreeNode node)
Get the current sub tree for a
JMeterTreeNode |
JMeterTreeNode |
getNodeOf(TestElement userObject)
Get the node for a given TestElement object.
|
List<JMeterTreeNode> |
getNodesOfType(Class<?> type)
Returns a list of tree nodes that hold objects of the given class type.
|
HashTree |
getTestPlan()
Get the
TestPlan from the root of this tree |
void |
removeNodeFromParent(JMeterTreeNode node) |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged@Deprecated public JMeterTreeModel(TestElement tp, TestElement wb)
tp - - Test Planwb - - WorkBenchpublic JMeterTreeModel(TestElement tp)
public JMeterTreeModel()
@Deprecated public JMeterTreeModel(Object o)
o - - dummypublic List<JMeterTreeNode> getNodesOfType(Class<?> type)
type - The type of nodes, which are to be collectedtype, or an empty listpublic JMeterTreeNode getNodeOf(TestElement userObject)
userObject - The object to be found in this treeuserObjectpublic HashTree addSubTree(HashTree subTree, JMeterTreeNode current) throws IllegalUserActionException
subTree - The HashTree which is to be inserted into
currentcurrent - The node in which the subTree is to be inserted.
Will be overridden, when an instance of TestPlancurrentIllegalUserActionException - when current is not an instance of
AbstractConfigGui and no instance of TestPlan
subTreepublic JMeterTreeNode addComponent(TestElement component, JMeterTreeNode node) throws IllegalUserActionException
TestElement to a JMeterTreeNodecomponent - The TestElement to be used as data for the newly created nodenode - The JMeterTreeNode into which the newly created node is to be insertedJMeterTreeNode for the given componentIllegalUserActionException - when the user object for the node is not an instance
of AbstractConfigGuipublic void removeNodeFromParent(JMeterTreeNode node)
public HashTree getCurrentSubTree(JMeterTreeNode node)
JMeterTreeNodenode - The JMeterTreeNode from which the sub tree is to be takenpublic HashTree getTestPlan()
TestPlan from the root of this treeTestPlan found at the root of this treepublic void clearTestPlan()
GuiPackage.clearTestPlan()public void clearTestPlan(TestElement testPlan)
GuiPackage.clearTestPlan(TestElement)testPlan - the node to use as the testplan top nodeCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.