1 18 19 package org.apache.jmeter.reporters; 20 21 22 import org.apache.jmeter.testelement.AbstractTestElement; 23 import org.apache.jmeter.visualizers.Visualizer; 24 25 26 30 31 public abstract class AbstractListenerElement extends AbstractTestElement 32 { 33 private Visualizer listener; 34 35 public AbstractListenerElement() 36 {} 37 38 protected Visualizer getVisualizer() 39 { 40 return listener; 41 } 42 43 public void setListener(Visualizer vis) 44 { 45 listener = vis; 46 } 47 48 public Object clone() 49 { 50 AbstractListenerElement clone = (AbstractListenerElement) super.clone(); 51 52 clone.setListener(getVisualizer()); 53 return clone; 54 } 55 } 56 | Popular Tags |