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 theJMeterTreeListenerobjectJMeterTreeListener(JMeterTreeModel model)Constructor for the JMeterTreeListener object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JMeterTreeNodegetCurrentNode()Gets the CurrentNode attribute of the JMeterTreeListener object.JTreegetJTree()Gets the JTree attribute of the JMeterTreeListener object.JMeterTreeNode[]getSelectedNodes()voidkeyPressed(KeyEvent e)voidkeyReleased(KeyEvent e)voidkeyTyped(KeyEvent e)voidmouseClicked(MouseEvent ev)voidmouseEntered(MouseEvent e)voidmouseExited(MouseEvent ev)voidmousePressed(MouseEvent e)voidmouseReleased(MouseEvent e)TreePathremovedSelectedNode()voidsetActionHandler(ActionListener ah)Sets the ActionHandler attribute of the JMeterTreeListener object.voidsetEndWindow(Container window)Sets the EndWindow attribute of the JMeterTreeListener object.voidsetJTree(JTree tree)Sets the JTree attribute of the JMeterTreeListener object.voidsetModel(JMeterTreeModel m)Set theJMeterTreeModelfor this listenervoidvalueChanged(TreeSelectionEvent e)
-
-
-
Constructor Detail
-
JMeterTreeListener
public JMeterTreeListener(JMeterTreeModel model)
Constructor for the JMeterTreeListener object.- Parameters:
model- TheJMeterTreeModelfor this listener
-
JMeterTreeListener
public JMeterTreeListener()
Constructor for theJMeterTreeListenerobject
-
-
Method Detail
-
setModel
public void setModel(JMeterTreeModel m)
Set theJMeterTreeModelfor this listener- Parameters:
m- TheJMeterTreeModelto 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:
valueChangedin interfaceTreeSelectionListener
-
mouseClicked
public void mouseClicked(MouseEvent ev)
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEnteredin interfaceMouseListener
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressedin interfaceMouseListener
-
mouseExited
public void mouseExited(MouseEvent ev)
- Specified by:
mouseExitedin interfaceMouseListener
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressedin interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleasedin interfaceKeyListener
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTypedin interfaceKeyListener
-
-