Class MailerVisualizer

    • Constructor Detail

      • MailerVisualizer

        public MailerVisualizer()
        Constructs the MailerVisualizer and initializes its GUI.
    • Method Detail

      • getControlPanel

        public JPanel getControlPanel()
      • clearData

        public void clearData()
        Clears any stored sampling-informations.
        Specified by:
        clearData in interface Clearable
      • add

        public void add​(SampleResult res)
        Description copied from interface: Visualizer
        This method is called by sampling thread to inform the visualizer about the arrival of a new sample.
        Specified by:
        add in interface Visualizer
        Parameters:
        res - the newly arrived sample
      • getLabelResource

        public String getLabelResource()
        Description copied from interface: JMeterGUIComponent
        Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. The resource name is fixed, and does not vary with the selected language. Normally this method should be overriden in preference to overriding getStaticLabel(). However where the resource name is not available or required, getStaticLabel() may be overridden instead.
        Specified by:
        getLabelResource in interface JMeterGUIComponent
        Returns:
        the resource name
      • getAttributesTitle

        public String getAttributesTitle()
        Returns a String for the title of the attributes-panel as set up in the properties-file using the lookup-constant "mailer_attributes_panel".
        Returns:
        The title of the component.
      • actionPerformed

        public void actionPerformed​(ActionEvent e)
        Reacts on an ActionEvent (like pressing a button).
        Specified by:
        actionPerformed in interface ActionListener
        Parameters:
        e - The ActionEvent with information about the event and its source.
      • modifyTestElement

        public void modifyTestElement​(TestElement c)
        GUI components are responsible for populating TestElements they create with the data currently held in the GUI components. This method should overwrite whatever data is currently in the TestElement as it is called after a user has filled out the form elements in the gui with new information.
        Specified by:
        modifyTestElement in interface JMeterGUIComponent
        Overrides:
        modifyTestElement in class AbstractVisualizer
        Parameters:
        c - the TestElement to modify
      • stateChanged

        public void stateChanged​(ChangeEvent e)
        Invoked when the target of the listener has changed its state. This implementation assumes that the target is the FilePanel, and will update the result collector for the new filename.
        Specified by:
        stateChanged in interface ChangeListener
        Overrides:
        stateChanged in class AbstractVisualizer
        Parameters:
        e - the event that has occurred