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,
TestElement wb) |
| 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 and workbench.
|
void |
clearTestPlan(TestElement testPlan)
Clear the test plan, and use specified node for test plan and default node for workbench
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 |
HashTree |
getWorkBench()
Get the
WorkBench 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, valueForPathChangedpublic JMeterTreeModel(TestElement tp, TestElement wb)
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 TestPlan or
WorkBench is found in the subtree.currentIllegalUserActionException - when current is not an instance of
AbstractConfigGui and no instance of TestPlan
or WorkBench could be found in the
subTreepublic JMeterTreeNode addComponent(TestElement component, JMeterTreeNode node) throws IllegalUserActionException
TestElement to a JMeterTreeNodecomponent - The TestElement to be used as data for the newly created notenode - 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 HashTree getWorkBench()
WorkBench from the root of this treeWorkBench 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-2016 Apache Software Foundation. All Rights Reserved.