Package org.apache.jmeter.gui.tree
Class JMeterTreeListener
- java.lang.Object
-
- org.apache.jmeter.gui.tree.JMeterTreeListener
-
- All Implemented Interfaces:
KeyListener
,MouseListener
,EventListener
,TreeSelectionListener
public class JMeterTreeListener extends Object implements TreeSelectionListener, MouseListener, KeyListener
-
-
Constructor Summary
Constructors Constructor Description JMeterTreeListener()
Constructor for theJMeterTreeListener
objectJMeterTreeListener(JMeterTreeModel model)
Constructor for the JMeterTreeListener object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JMeterTreeNode
getCurrentNode()
Gets the CurrentNode attribute of the JMeterTreeListener object.JTree
getJTree()
Gets the JTree attribute of the JMeterTreeListener object.JMeterTreeNode[]
getSelectedNodes()
void
keyPressed(KeyEvent e)
void
keyReleased(KeyEvent e)
void
keyTyped(KeyEvent e)
void
mouseClicked(MouseEvent ev)
void
mouseEntered(MouseEvent e)
void
mouseExited(MouseEvent ev)
void
mousePressed(MouseEvent e)
void
mouseReleased(MouseEvent e)
TreePath
removedSelectedNode()
void
setActionHandler(ActionListener ah)
Sets the ActionHandler attribute of the JMeterTreeListener object.void
setEndWindow(Container window)
Sets the EndWindow attribute of the JMeterTreeListener object.void
setJTree(JTree tree)
Sets the JTree attribute of the JMeterTreeListener object.void
setModel(JMeterTreeModel m)
Set theJMeterTreeModel
for this listenervoid
valueChanged(TreeSelectionEvent e)
-
-
-
Constructor Detail
-
JMeterTreeListener
public JMeterTreeListener(JMeterTreeModel model)
Constructor for the JMeterTreeListener object.- Parameters:
model
- TheJMeterTreeModel
for this listener
-
JMeterTreeListener
public JMeterTreeListener()
Constructor for theJMeterTreeListener
object
-
-
Method Detail
-
setModel
public void setModel(JMeterTreeModel m)
Set theJMeterTreeModel
for this listener- Parameters:
m
- TheJMeterTreeModel
to be used
-
setActionHandler
public void setActionHandler(ActionListener ah)
Sets the ActionHandler attribute of the JMeterTreeListener object.- Parameters:
ah
- the new ActionHandler value
-
setJTree
public void setJTree(JTree tree)
Sets the JTree attribute of the JMeterTreeListener object.- Parameters:
tree
- the new JTree value
-
setEndWindow
public void setEndWindow(Container window)
Sets the EndWindow attribute of the JMeterTreeListener object.- Parameters:
window
- the new EndWindow value
-
getJTree
public JTree getJTree()
Gets the JTree attribute of the JMeterTreeListener object.- Returns:
- tree the current JTree value.
-
getCurrentNode
public JMeterTreeNode getCurrentNode()
Gets the CurrentNode attribute of the JMeterTreeListener object.- Returns:
- the CurrentNode value
-
getSelectedNodes
public JMeterTreeNode[] getSelectedNodes()
-
removedSelectedNode
public TreePath removedSelectedNode()
-
valueChanged
public void valueChanged(TreeSelectionEvent e)
- Specified by:
valueChanged
in interfaceTreeSelectionListener
-
mouseClicked
public void mouseClicked(MouseEvent ev)
- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interfaceMouseListener
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent ev)
- Specified by:
mouseExited
in interfaceMouseListener
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased
in interfaceKeyListener
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTyped
in interfaceKeyListener
-
-