|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeModel
org.apache.jmeter.gui.tree.JMeterTreeModel
public class JMeterTreeModel
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
|---|
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
|---|---|
JMeterTreeModel()
|
|
JMeterTreeModel(Object o)
Deprecated. - only for use by JMeter class! |
|
JMeterTreeModel(TestElement tp,
TestElement wb)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMeterTreeModel(TestElement tp,
TestElement wb)
public JMeterTreeModel()
@Deprecated public JMeterTreeModel(Object o)
o - - dummy| Method Detail |
|---|
public List<JMeterTreeNode> getNodesOfType(Class<?> type)
type - The type of nodes, which are to be collected
type, or an empty listpublic JMeterTreeNode getNodeOf(TestElement userObject)
userObject - The object to be found in this tree
userObject
public 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.
current
IllegalUserActionException - when current is not an instance of
AbstractConfigGui and no instance of TestPlan
or WorkBench could be found in the
subTree
public JMeterTreeNode addComponent(TestElement component,
JMeterTreeNode node)
throws IllegalUserActionException
TestElement to a JMeterTreeNode
component - The TestElement to be used as data for the newly created notenode - The JMeterTreeNode into which the newly created node is to be inserted
JMeterTreeNode for the given component
IllegalUserActionException - when the user object for the node is not an instance
of AbstractConfigGuipublic void removeNodeFromParent(JMeterTreeNode node)
public HashTree getCurrentSubTree(JMeterTreeNode node)
JMeterTreeNode
node - The JMeterTreeNode from which the sub tree is to be taken
public HashTree getTestPlan()
TestPlan from the root of this tree
TestPlan found at the root of this treepublic HashTree getWorkBench()
WorkBench from the root of this tree
WorkBench 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 node
|
Apache JMeter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||