1 | private TreePath currentPath;↵ | | 1 | private TreePath currentPath;↵
|
|
2 | private ActionListener actionHandler;↵ | | 2 | private ActionListener actionHandler;↵
|
|
3 | private JMeterTreeModel model;↵ | | 3 | private ReportTreeModel model;↵
|
|
4 | private JTree tree;↵ | | 4 | private JTree tree;↵
|
|
5 | private boolean dragging = false;↵ | | 5 | private boolean dragging = false;↵
|
|
6 | private JMeterTreeNode[] draggedNodes;↵ | | 6 | private ReportTreeNode[] draggedNodes;↵
|
|
7 | private JLabel dragIcon = new JLabel(JMeterUtils.getImage("leafnode.gif")); // $NON-NLS-1$↵ | | 7 | private JLabel dragIcon = new JLabel(JMeterUtils.getImage("leafnode.gif"));↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * Constructor for the JMeterTreeListener object.↵ | | 9 | * Constructor for the JMeterTreeListener object.↵
|
10 | */↵ | | 10 | */↵
|
11 | public JMeterTreeListener(JMeterTreeModel model) {↵ | | 11 | public ReportTreeListener(ReportTreeModel model) {↵
|
12 | this.model = model;↵ | | 12 | this.model = model;↵
|
13 | dragIcon.validate();↵ | | 13 | dragIcon.validate();↵
|
14 | dragIcon.setVisible(true);↵ | | 14 | dragIcon.setVisible(true);↵
|
15 | }↵ | | 15 | }↵
|
|
16 | public JMeterTreeListener() {↵ | | 16 | public ReportTreeListener() {↵
|
17 | dragIcon.validate();↵ | | 17 | dragIcon.validate();↵
|
18 | dragIcon.setVisible(true);↵ | | 18 | dragIcon.setVisible(true);↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public void setModel(JMeterTreeModel m) {↵ | | 20 | public void setModel(ReportTreeModel m) {↵
|
21 | model = m;↵ | | 21 | model = m;↵
|
22 | }↵ | | 22 | }↵
|
|
23 | /**↵ | | 23 | /**↵
|
24 | * Sets the ActionHandler attribute of the JMeterTreeListener object.↵ | | 24 | * Sets the ActionHandler attribute of the JMeterTreeListener object.↵
|
25 | * ↵ | | 25 | * ↵
|
26 | * @param ah↵ | | 26 | * @param ah↵
|
27 | * the new ActionHandler value↵ | | 27 | * the new ActionHandler value↵
|
28 | */↵ | | 28 | */↵
|
29 | public void setActionHandler(ActionListener ah) {↵ | | 29 | public void setActionHandler(ActionListener ah) {↵
|
30 | actionHandler = ah;↵ | | 30 | actionHandler = ah;↵
|
31 | }↵ | | 31 | }↵
|
|
32 | /**↵ | | 32 | /**↵
|
33 | * Sets the JTree attribute of the JMeterTreeListener object.↵ | | 33 | * Sets the JTree attribute of the JMeterTreeListener object.↵
|
34 | * ↵ | | 34 | * ↵
|
35 | * @param tree↵ | | 35 | * @param tree↵
|
36 | * the new JTree value↵ | | 36 | * the new JTree value↵
|
37 | */↵ | | 37 | */↵
|
38 | public void setJTree(JTree tree) {↵ | | 38 | public void setJTree(JTree tree) {↵
|
39 | this.tree = tree;↵ | | 39 | this.tree = tree;↵
|
40 | }↵ | | 40 | }↵
|
|
41 | /**↵ | | 41 | /**↵
|
42 | * Sets the EndWindow attribute of the JMeterTreeListener object.↵ | | 42 | * Sets the EndWindow attribute of the JMeterTreeListener object.↵
|
43 | * ↵ | | 43 | * ↵
|
44 | * @param window↵ | | 44 | * @param window↵
|
45 | * the new EndWindow value↵ | | 45 | * the new EndWindow value↵
|
46 | */↵ | | 46 | */↵
|
47 | public void setEndWindow(Container window) {↵ | | 47 | public void setEndWindow(Container window) {↵
|
48 | // endWindow = window;↵ | | 48 | // endWindow = window;↵
|
49 | }↵ | | 49 | }↵
|
|
50 | /**↵ | | 50 | /**↵
|
51 | * Gets the JTree attribute of the JMeterTreeListener object.↵ | | 51 | * Gets the JTree attribute of the JMeterTreeListener object.↵
|
52 | * ↵ | | 52 | * ↵
|
53 | * @return tree the current JTree value.↵ | | 53 | * @return tree the current JTree value.↵
|
54 | */↵ | | 54 | */↵
|
55 | public JTree getJTree() {↵ | | 55 | public JTree getJTree() {↵
|
56 | return tree | | 56 | return tree
|